com.nchart3d.NChart.NChartHair Class Reference

The NChartHair class provides methods to control the single line within crosshair. More...

Public Member Functions

boolean isVisible ()
 Flag determining if hair is visible (true) or not (false). More...
 
void setVisible (boolean visible)
 For details see isVisible().
 
boolean isHostsOnSAxis ()
 Flag determining if hair is hosted on secondary axis (true) or not (false). More...
 
void setHostsOnSAxis (boolean hostsOnSAxis)
 For details see isHostsOnSAxis().
 
double getValue ()
 Value the hair intersects its axis in. More...
 
void setValue (double value)
 For details see getValue().
 
int getFirstHalfColor ()
 The color of the first half of hair. More...
 
void setFirstHalfColor (int firstHalfColor)
 For details see getFirstHalfColor().
 
int getSecondHalfColor ()
 The color of the second half of hair. More...
 
void setSecondHalfColor (int secondHalfColor)
 For details see getSecondHalfColor().
 
void setColor (int color)
 Set color for both halves of hair. More...
 
boolean isDraggable ()
 Flag determining if hair can be dragged (true) or not (false). More...
 
void setDraggable (boolean isDraggable)
 For details see isDraggable().
 
boolean isSnapToMajorTicks ()
 Flag determining if hair should snap to major ticks while moving. More...
 
void setSnapToMajorTicks (boolean snapToMajorTicks)
 For details see isSnapToMajorTicks().
 
boolean isSnapToMinorTicks ()
 Flag determining if hair should snap to minor ticks while moving. More...
 
void setSnapToMinorTicks (boolean snapToMinorTicks)
 For details see isSnapToMinorTicks().
 
NChartTooltip getTooltip ()
 Tooltip of the hair. More...
 
void setTooltip (NChartTooltip tooltip)
 For details see getTooltip().
 
NChartCrosshairTooltipPosition getTooltipPosition ()
 Position of the hair's tooltip. More...
 
void setTooltipPosition (NChartCrosshairTooltipPosition tooltipPosition)
 For details see getTooltipPosition().
 

Detailed Description

The NChartHair class provides methods to control the single line within crosshair.

See also
NChartCrosshair

Member Function Documentation

int com.nchart3d.NChart.NChartHair.getFirstHalfColor ( )
inline

The color of the first half of hair.

If null, not displayed. The default value is null.

The color of the hairs part from the axis to the point it marks.

int com.nchart3d.NChart.NChartHair.getSecondHalfColor ( )
inline

The color of the second half of hair.

If null, not displayed. The default value is null.

The color of the hairs part from the the point it marks to the end of chart plot area.

NChartTooltip com.nchart3d.NChart.NChartHair.getTooltip ( )
inline

Tooltip of the hair.

The default value is null. To display tooltip you should set it before your updateData call.

NChartCrosshairTooltipPosition com.nchart3d.NChart.NChartHair.getTooltipPosition ( )
inline

Position of the hair's tooltip.

The default value is NChartCrosshairTooltipPosition.ByMax. For details see NChartCrosshairTooltipPosition.

double com.nchart3d.NChart.NChartHair.getValue ( )
inline

Value the hair intersects its axis in.

The default value is 0.

boolean com.nchart3d.NChart.NChartHair.isDraggable ( )
inline

Flag determining if hair can be dragged (true) or not (false).

The default value is true.

boolean com.nchart3d.NChart.NChartHair.isHostsOnSAxis ( )
inline

Flag determining if hair is hosted on secondary axis (true) or not (false).

The default value is false.

boolean com.nchart3d.NChart.NChartHair.isSnapToMajorTicks ( )
inline

Flag determining if hair should snap to major ticks while moving.

The default value is false.

boolean com.nchart3d.NChart.NChartHair.isSnapToMinorTicks ( )
inline

Flag determining if hair should snap to minor ticks while moving.

The default value is false.

boolean com.nchart3d.NChart.NChartHair.isVisible ( )
inline

Flag determining if hair is visible (true) or not (false).

The default value is true.

void com.nchart3d.NChart.NChartHair.setColor ( int  color)
inline

Set color for both halves of hair.

Parameters
color- color to set.
See also
NChartHair::getFirstHalfColor()
NChartHair::getSecondHalfColor()