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
|
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.
|
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.
|
inline |
Tooltip of the hair.
The default value is null. To display tooltip you should set it before your updateData call.
|
inline |
Position of the hair's tooltip.
The default value is NChartCrosshairTooltipPosition.ByMax. For details see NChartCrosshairTooltipPosition.
|
inline |
Value the hair intersects its axis in.
The default value is 0.
|
inline |
Flag determining if hair can be dragged (true) or not (false).
The default value is true.
|
inline |
Flag determining if hair is hosted on secondary axis (true) or not (false).
The default value is false.
|
inline |
Flag determining if hair should snap to major ticks while moving.
The default value is false.
|
inline |
Flag determining if hair should snap to minor ticks while moving.
The default value is false.
|
inline |
Flag determining if hair is visible (true) or not (false).
The default value is true.
|
inline |
Set color for both halves of hair.
- Parameters
-
color - color to set.
