public class Cursor extends AbstractChartObject
SerialChartModelImpl
charts it shows
the balloons of hovered data points.
Constructor and Description |
---|
Cursor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getAdjustment() |
java.lang.Double |
getAnimationDuration() |
java.lang.Boolean |
getAvoidBalloonOverlapping() |
java.lang.String |
getBalloonPointerOrientation() |
java.lang.Boolean |
getBulletsEnabled() |
java.lang.Integer |
getBulletSize() |
java.lang.Double |
getCategoryBalloonAlpha() |
Color |
getCategoryBalloonColor() |
java.lang.String |
getCategoryBalloonDateFormat() |
java.lang.Boolean |
getCategoryBalloonEnabled() |
JsFunction |
getCategoryBalloonFunction() |
java.lang.String |
getCategoryBalloonText() |
Color |
getColor() |
java.lang.Double |
getCursorAlpha() |
Color |
getCursorColor() |
CursorPosition |
getCursorPosition() |
java.lang.Boolean |
getEnabled() |
java.lang.Boolean |
getFullWidth() |
java.lang.Double |
getGraphBulletAlpha() |
java.lang.Double |
getGraphBulletSize() |
java.lang.Boolean |
getLeaveAfterTouch() |
java.lang.Boolean |
getLeaveCursor() |
java.lang.String |
getLimitToGraph() |
java.lang.Boolean |
getOneBalloonOnly() |
java.lang.Boolean |
getPan() |
java.lang.Double |
getSelectionAlpha() |
java.lang.Boolean |
getSelectWithoutZooming() |
java.lang.Boolean |
getShowNextAvailable() |
java.lang.Integer |
getTabIndex() |
java.lang.Boolean |
getValueBalloonsEnabled() |
java.lang.Double |
getValueLineAlpha() |
java.lang.String |
getValueLineAxis() |
java.lang.Boolean |
getValueLineBalloonEnabled() |
java.lang.Boolean |
getValueLineEnabled() |
java.lang.Boolean |
getValueZoomable() |
java.lang.Boolean |
getZoomable() |
Cursor |
setAdjustment(java.lang.Integer adjustment)
Sets adjustment.
|
Cursor |
setAnimationDuration(java.lang.Double animationDuration)
Sets duration of animation of a line, in seconds.
|
Cursor |
setAvoidBalloonOverlapping(java.lang.Boolean avoidBalloonOverlapping)
Specifies if cursor should arrange balloons so they won't overlap.
|
Cursor |
setBalloonPointerOrientation(java.lang.String balloonPointerOrientation)
Sets the balloon pointer orientation.
|
Cursor |
setBulletsEnabled(java.lang.Boolean bulletsEnabled)
Set bulletsEnabled to true if bullet for each graph should follow the cursor.
|
Cursor |
setBulletSize(java.lang.Integer bulletSize)
Sets bullet size, that following the cursor.
|
Cursor |
setCategoryBalloonAlpha(java.lang.Double categoryBalloonAlpha)
Sets opacity of the category balloon.
|
Cursor |
setCategoryBalloonColor(Color categoryBalloonColor)
Sets color of the category balloon.
|
Cursor |
setCategoryBalloonDateFormat(java.lang.String categoryBalloonDateFormat)
Sets category balloon date format (used only if category axis parses dates).
|
Cursor |
setCategoryBalloonEnabled(java.lang.Boolean categoryBalloonEnabled)
Set categoryBalloonEnabled to false if you want balloon shouldn't be enabled.
|
Cursor |
setCategoryBalloonFunction(JsFunction categoryBalloonFunction)
Sets JS function that format category balloon text.
|
Cursor |
setCategoryBalloonText(java.lang.String categoryBalloonText)
Sets category balloon text.
|
Cursor |
setColor(Color color)
Sets text color.
|
Cursor |
setCursorAlpha(java.lang.Double cursorAlpha)
Sets opacity of the cursor line.
|
Cursor |
setCursorColor(Color cursorColor)
Sets color of the cursor line.
|
Cursor |
setCursorPosition(CursorPosition cursorPosition)
Sets cursor position: on the beginning of the period (day, hour, etc) or in the middle (only when
CategoryAxis.parseDates is set to true). |
Cursor |
setEnabled(java.lang.Boolean enabled)
Set enabled to false if you want cursor shouldn't be enabled.
|
Cursor |
setFullWidth(java.lang.Boolean fullWidth)
Set to true if you want instead of a cursor line user should see a fill which width will always be equal to the
width of one data item.
|
Cursor |
setGraphBulletAlpha(java.lang.Double graphBulletAlpha)
Sets opacity of graph bullet.
|
Cursor |
setGraphBulletSize(java.lang.Double graphBulletSize)
Sets size of a graph's bullet (if available) at the cursor position.
|
Cursor |
setLeaveAfterTouch(java.lang.Boolean leaveAfterTouch)
Set leaveAfterTouch to false if cursor and balloons shouldn't remain after the user touches the chart.
|
Cursor |
setLeaveCursor(java.lang.Boolean leaveCursor)
Set leaveCursor to true if cursor should be left at it's last position.
|
Cursor |
setLimitToGraph(java.lang.String limitToGraph)
Sets an id of a graph.
|
Cursor |
setOneBalloonOnly(java.lang.Boolean oneBalloonOnly)
Set to oneBalloonOnly true if only one balloon at a time should be displayed.
|
Cursor |
setPan(java.lang.Boolean pan)
Set pan to true and the user will be able to pan the chart instead of zooming.
|
Cursor |
setSelectionAlpha(java.lang.Double selectionAlpha)
Sets opacity of the selection.
|
Cursor |
setSelectWithoutZooming(java.lang.Boolean selectWithoutZooming)
Set selectWithoutZooming to true if cursor should only mark selected area but not zoom-in after user releases
mouse button.
|
Cursor |
setShowNextAvailable(java.lang.Boolean showNextAvailable)
Set showNextAvailable to true if the graph should display balloon on next available data point if currently
hovered item doesn't have value for this graph.
|
void |
setTabIndex(java.lang.Integer tabIndex)
In case you set it to some number, the chart will set focus on chart cursor (works only with serial chart)
when user clicks tab key.
|
Cursor |
setValueBalloonsEnabled(java.lang.Boolean valueBalloonsEnabled)
Set valueBalloonsEnabled to false if you want value balloons will not be enabled.
|
Cursor |
setValueLineAlpha(java.lang.Double valueLineAlpha)
Sets opacity of value line.
|
Cursor |
setValueLineAxis(java.lang.String valueLineAxis)
Sets axis which should display the balloon.
|
Cursor |
setValueLineBalloonEnabled(java.lang.Boolean valueLineBalloonEnabled)
Set valueLineBalloonEnabled to true if value balloon next to value axes labels should be displayed.
|
Cursor |
setValueLineEnabled(java.lang.Boolean valueLineEnabled)
Set valueLineEnabled to true if cursor of serial chart should display horizontal (or vertical if chart is
rotated) line.
|
Cursor |
setValueZoomable(java.lang.Boolean valueZoomable)
Set valueZoomable to true if the user should zoom-in value axes of a serial chart.
|
Cursor |
setZoomable(java.lang.Boolean zoomable)
Set zoomable to true if the user should zoom-in the chart.
|
public java.lang.Integer getAdjustment()
public Cursor setAdjustment(java.lang.Integer adjustment)
adjustment
- adjustmentpublic java.lang.Boolean getAvoidBalloonOverlapping()
public Cursor setAvoidBalloonOverlapping(java.lang.Boolean avoidBalloonOverlapping)
avoidBalloonOverlapping
- avoidBalloonOverlapping optionpublic java.lang.String getBalloonPointerOrientation()
public Cursor setBalloonPointerOrientation(java.lang.String balloonPointerOrientation)
balloonPointerOrientation
- balloon pointer orientationpublic java.lang.Double getAnimationDuration()
public Cursor setAnimationDuration(java.lang.Double animationDuration)
animationDuration
- duration of animation of a line, in secondspublic java.lang.Boolean getBulletsEnabled()
public Cursor setBulletsEnabled(java.lang.Boolean bulletsEnabled)
bulletsEnabled
- bulletsEnabled optionpublic java.lang.Integer getBulletSize()
public Cursor setBulletSize(java.lang.Integer bulletSize)
bulletSize
- bullet sizepublic java.lang.Double getCategoryBalloonAlpha()
public Cursor setCategoryBalloonAlpha(java.lang.Double categoryBalloonAlpha)
categoryBalloonAlpha
- opacity of the category balloonpublic Color getCategoryBalloonColor()
public Cursor setCategoryBalloonColor(Color categoryBalloonColor)
categoryBalloonColor
- category balloon colorpublic java.lang.String getCategoryBalloonDateFormat()
public Cursor setCategoryBalloonDateFormat(java.lang.String categoryBalloonDateFormat)
categoryBalloonDateFormat
- category balloon date format stringpublic java.lang.Boolean getCategoryBalloonEnabled()
public Cursor setCategoryBalloonEnabled(java.lang.Boolean categoryBalloonEnabled)
categoryBalloonEnabled
- categoryBalloonEnabled optionpublic Color getColor()
public Cursor setColor(Color color)
color
- text colorpublic java.lang.Double getCursorAlpha()
public Cursor setCursorAlpha(java.lang.Double cursorAlpha)
cursorAlpha
- opacitypublic Color getCursorColor()
public Cursor setCursorColor(Color cursorColor)
cursorColor
- colorpublic CursorPosition getCursorPosition()
public Cursor setCursorPosition(CursorPosition cursorPosition)
CategoryAxis.parseDates
is set to true). If you want the cursor to follow mouse and not to glue to the
nearest data point, set "mouse" here. Possible values are: start, middle, mouse. If not set the default value
is MIDDLE.cursorPosition
- cursor positionpublic java.lang.Boolean getEnabled()
public Cursor setEnabled(java.lang.Boolean enabled)
enabled
- enabled optionpublic java.lang.Double getGraphBulletSize()
public Cursor setGraphBulletSize(java.lang.Double graphBulletSize)
graphBulletSize
- graph bullet sizepublic java.lang.Boolean getOneBalloonOnly()
public Cursor setOneBalloonOnly(java.lang.Boolean oneBalloonOnly)
oneBalloonOnly
- oneBalloonOnly optionpublic java.lang.Boolean getPan()
public Cursor setPan(java.lang.Boolean pan)
pan
- pan optionpublic java.lang.Double getSelectionAlpha()
public Cursor setSelectionAlpha(java.lang.Double selectionAlpha)
selectionAlpha
- opacitypublic java.lang.Boolean getSelectWithoutZooming()
public Cursor setSelectWithoutZooming(java.lang.Boolean selectWithoutZooming)
selectWithoutZooming
- selectWithoutZooming optionpublic java.lang.Boolean getShowNextAvailable()
public Cursor setShowNextAvailable(java.lang.Boolean showNextAvailable)
showNextAvailable
- showNextAvailable optionpublic java.lang.Boolean getValueBalloonsEnabled()
public Cursor setValueBalloonsEnabled(java.lang.Boolean valueBalloonsEnabled)
valueBalloonsEnabled
- valueBalloonsEnabled optionpublic java.lang.Boolean getZoomable()
public Cursor setZoomable(java.lang.Boolean zoomable)
zoomable
- zoomable optionpublic JsFunction getCategoryBalloonFunction()
public Cursor setCategoryBalloonFunction(JsFunction categoryBalloonFunction)
categoryBalloonFunction
- JS functionpublic java.lang.Boolean getFullWidth()
public Cursor setFullWidth(java.lang.Boolean fullWidth)
fullWidth
- fullWidth optionpublic java.lang.Double getGraphBulletAlpha()
public Cursor setGraphBulletAlpha(java.lang.Double graphBulletAlpha)
AbstractGraph.bulletAlpha
) and will set graphBulletAlpha to 1, the bullets will only appear at the
cursor's position.graphBulletAlpha
- opacity of graph bulletpublic java.lang.Double getValueLineAlpha()
public Cursor setValueLineAlpha(java.lang.Double valueLineAlpha)
valueLineAlpha
- opacity of value line.public java.lang.String getValueLineAxis()
public Cursor setValueLineAxis(java.lang.String valueLineAxis)
valueLineAxis
- value line axis idpublic java.lang.Boolean getValueLineBalloonEnabled()
public Cursor setValueLineBalloonEnabled(java.lang.Boolean valueLineBalloonEnabled)
valueLineBalloonEnabled
- valueLineBalloonEnabled optionpublic java.lang.Boolean getValueLineEnabled()
public Cursor setValueLineEnabled(java.lang.Boolean valueLineEnabled)
valueLineEnabled
- valueLineEnabled optionpublic java.lang.String getCategoryBalloonText()
public Cursor setCategoryBalloonText(java.lang.String categoryBalloonText)
categoryBalloonText
- category balloon textpublic java.lang.Boolean getLeaveAfterTouch()
public Cursor setLeaveAfterTouch(java.lang.Boolean leaveAfterTouch)
leaveAfterTouch
- leaveAfterTouch optionpublic java.lang.Boolean getLeaveCursor()
public Cursor setLeaveCursor(java.lang.Boolean leaveCursor)
leaveCursor
- leaveCursor optionpublic java.lang.String getLimitToGraph()
public Cursor setLimitToGraph(java.lang.String limitToGraph)
CategoryAxis
cursor line will be limited to this graph instead of being drawn
through full height of plot area. Note, this works with serial chart only. Also, cursorPosition must be set to
middle.limitToGraph
- id of a graphpublic java.lang.Boolean getValueZoomable()
public Cursor setValueZoomable(java.lang.Boolean valueZoomable)
valueZoomable
- valueZoomable optionpublic java.lang.Integer getTabIndex()
public void setTabIndex(java.lang.Integer tabIndex)
tabIndex
- tab index