public class ChartCursorSettings extends AbstractChartObject
Cursor
class will be used.
Constructor and Description |
---|
ChartCursorSettings() |
Modifier and Type | Method and Description |
---|---|
ChartCursorSettings |
addCategoryBalloonDateFormats(DateFormat... categoryBalloonDateFormats)
Adds date formats.
|
BalloonPointerOrientation |
getBalloonPointerOrientation() |
java.lang.Boolean |
getBulletsEnabled() |
java.lang.Integer |
getBulletSize() |
java.lang.Double |
getCategoryBalloonAlpha() |
Color |
getCategoryBalloonColor() |
java.util.List<DateFormat> |
getCategoryBalloonDateFormats() |
java.lang.Boolean |
getCategoryBalloonEnabled() |
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 |
getGraphBulletSize() |
java.lang.Boolean |
getLeaveAfterTouch() |
java.lang.Boolean |
getLeaveCursor() |
java.lang.Boolean |
getOnePanelOnly() |
java.lang.Boolean |
getPan() |
java.lang.Boolean |
getSelectWithoutZooming() |
java.lang.Boolean |
getShowNextAvailable() |
java.lang.Boolean |
getValueBalloonsEnabled() |
java.lang.Double |
getValueLineAlpha() |
java.lang.Boolean |
getValueLineBalloonEnabled() |
java.lang.Boolean |
getValueLineEnabled() |
java.lang.Boolean |
getZoomable() |
ChartCursorSettings |
setBalloonPointerOrientation(BalloonPointerOrientation balloonPointerOrientation)
Sets orientation of value balloon pointer.
|
ChartCursorSettings |
setBulletsEnabled(java.lang.Boolean bulletsEnabled)
Specifies if bullet for each graph will follow the cursor.
|
ChartCursorSettings |
setBulletSize(java.lang.Integer bulletSize)
Sets size of bullets, following the cursor.
|
ChartCursorSettings |
setCategoryBalloonAlpha(java.lang.Double categoryBalloonAlpha)
Sets opacity of the category balloon.
|
ChartCursorSettings |
setCategoryBalloonColor(Color categoryBalloonColor)
Sets color of the category balloon.
|
ChartCursorSettings |
setCategoryBalloonDateFormats(java.util.List<DateFormat> categoryBalloonDateFormats)
Sets list of date formats.
|
ChartCursorSettings |
setCategoryBalloonEnabled(java.lang.Boolean categoryBalloonEnabled)
Specifies whether category balloon is enabled.
|
ChartCursorSettings |
setCategoryBalloonText(java.lang.String categoryBalloonText)
Sets category balloon text.
|
ChartCursorSettings |
setColor(Color color)
Sets text color.
|
ChartCursorSettings |
setCursorAlpha(java.lang.Double cursorAlpha)
Sets opacity of the cursor line.
|
ChartCursorSettings |
setCursorColor(Color cursorColor)
Sets color of the cursor line.
|
ChartCursorSettings |
setCursorPosition(CursorPosition cursorPosition)
Sets cursor position.
|
ChartCursorSettings |
setEnabled(java.lang.Boolean enabled)
Set enabled to false if you don't want chart cursor to appear in your charts.
|
ChartCursorSettings |
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.
|
ChartCursorSettings |
setGraphBulletSize(java.lang.Double graphBulletSize)
Sets size of a graph's bullet (if available) at the cursor position.
|
ChartCursorSettings |
setLeaveAfterTouch(java.lang.Boolean leaveAfterTouch)
Set leaveAfterTouch to false if cursor and balloons shouldn't remain after the user touches the chart.
|
ChartCursorSettings |
setLeaveCursor(java.lang.Boolean leaveCursor)
Set leaveCursor to true if cursor should be left at it's last position.
|
ChartCursorSettings |
setOnePanelOnly(java.lang.Boolean onePanelOnly)
Set onePanelOnly to true if stock chart should display value balloons on currently hovered panel only.
|
ChartCursorSettings |
setPan(java.lang.Boolean pan)
Set pan to true and the user will be able to pan the chart instead of zooming.
|
void |
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.
|
void |
setShowNextAvailable(java.lang.Boolean showNextAvailable)
If true, the graph will display balloon on next available data point if currently hovered item doesn't have
value for this graph.
|
ChartCursorSettings |
setValueBalloonsEnabled(java.lang.Boolean valueBalloonsEnabled)
Set valueBalloonsEnabled to true if value balloons should be enabled.
|
ChartCursorSettings |
setValueLineAlpha(java.lang.Double valueLineAlpha)
Sets opacity of value line.
|
ChartCursorSettings |
setValueLineBalloonEnabled(java.lang.Boolean valueLineBalloonEnabled)
Set valueLineBalloonEnabled to true if value balloon next to value axis labels should be displayed.
|
ChartCursorSettings |
setValueLineEnabled(java.lang.Boolean valueLineEnabled)
Set valueLineEnabled to true if cursor of serial chart should display horizontal (or vertical if chart is
rotated) line.
|
ChartCursorSettings |
setZoomable(java.lang.Boolean zoomable)
Set zoomable to true if the user should zoom-in the chart.
|
public BalloonPointerOrientation getBalloonPointerOrientation()
public ChartCursorSettings setBalloonPointerOrientation(BalloonPointerOrientation balloonPointerOrientation)
balloonPointerOrientation
- orientation of value balloon pointerpublic java.lang.Boolean getBulletsEnabled()
public ChartCursorSettings setBulletsEnabled(java.lang.Boolean bulletsEnabled)
bulletsEnabled
- bulletsEnabled optionpublic java.lang.Integer getBulletSize()
public ChartCursorSettings setBulletSize(java.lang.Integer bulletSize)
bulletSize
- bullet sizepublic java.lang.Double getCategoryBalloonAlpha()
public ChartCursorSettings setCategoryBalloonAlpha(java.lang.Double categoryBalloonAlpha)
categoryBalloonAlpha
- opacity of the category balloonpublic Color getCategoryBalloonColor()
public ChartCursorSettings setCategoryBalloonColor(Color categoryBalloonColor)
categoryBalloonColor
- color of the category balloonpublic java.util.List<DateFormat> getCategoryBalloonDateFormats()
public ChartCursorSettings setCategoryBalloonDateFormats(java.util.List<DateFormat> categoryBalloonDateFormats)
[{period:"YYYY", format:"YYYY"},
{period:"MM", format:"MMM, YYYY"},
{period:"WW", format:"MMM DD, YYYY"},
{period:"DD", format:"MMM DD, YYYY"},
{period:"hh", format:"JJ:NN"},
{period:"mm", format:"JJ:NN"},
{period:"ss", format:"JJ:NN:SS"},
{period:"fff", format:"JJ:NN:SS"}]
categoryBalloonDateFormats
- list of date formatspublic ChartCursorSettings addCategoryBalloonDateFormats(DateFormat... categoryBalloonDateFormats)
categoryBalloonDateFormats
- date formatspublic java.lang.Boolean getCategoryBalloonEnabled()
public ChartCursorSettings setCategoryBalloonEnabled(java.lang.Boolean categoryBalloonEnabled)
categoryBalloonEnabled
- categoryBalloonEnabled optionpublic java.lang.String getCategoryBalloonText()
public ChartCursorSettings setCategoryBalloonText(java.lang.String categoryBalloonText)
categoryBalloonText
- category balloon textpublic java.lang.Double getCursorAlpha()
public ChartCursorSettings setCursorAlpha(java.lang.Double cursorAlpha)
cursorAlpha
- opacity of the cursor linepublic Color getCursorColor()
public ChartCursorSettings setCursorColor(Color cursorColor)
cursorColor
- color of the cursor linepublic CursorPosition getCursorPosition()
public ChartCursorSettings setCursorPosition(CursorPosition cursorPosition)
cursorPosition
- cursor positionpublic java.lang.Boolean getEnabled()
public ChartCursorSettings setEnabled(java.lang.Boolean enabled)
enabled
- enabled optionpublic java.lang.Boolean getFullWidth()
public ChartCursorSettings setFullWidth(java.lang.Boolean fullWidth)
fullWidth
- fullWidth optionpublic java.lang.Double getGraphBulletSize()
public ChartCursorSettings setGraphBulletSize(java.lang.Double graphBulletSize)
graphBulletSize
- size of a graph's bulletpublic java.lang.Boolean getLeaveAfterTouch()
public ChartCursorSettings setLeaveAfterTouch(java.lang.Boolean leaveAfterTouch)
leaveAfterTouch
- leaveAfterTouch optionpublic java.lang.Boolean getLeaveCursor()
public ChartCursorSettings setLeaveCursor(java.lang.Boolean leaveCursor)
leaveCursor
- leaveCursor optionpublic java.lang.Boolean getOnePanelOnly()
public ChartCursorSettings setOnePanelOnly(java.lang.Boolean onePanelOnly)
onePanelOnly
- onePanelOnly optionpublic java.lang.Boolean getPan()
public ChartCursorSettings setPan(java.lang.Boolean pan)
pan
- pan optionpublic java.lang.Boolean getValueBalloonsEnabled()
public ChartCursorSettings setValueBalloonsEnabled(java.lang.Boolean valueBalloonsEnabled)
valueBalloonsEnabled
- valueBalloonsEnabled optionpublic java.lang.Double getValueLineAlpha()
public ChartCursorSettings setValueLineAlpha(java.lang.Double valueLineAlpha)
valueLineAlpha
- opacity of value linepublic java.lang.Boolean getValueLineBalloonEnabled()
public ChartCursorSettings setValueLineBalloonEnabled(java.lang.Boolean valueLineBalloonEnabled)
Cursor.valueLineAxis
to indicate which axis should display the balloon.
If not set the default value is false.valueLineBalloonEnabled
- valueLineBalloonEnabled optionpublic java.lang.Boolean getValueLineEnabled()
public ChartCursorSettings setValueLineEnabled(java.lang.Boolean valueLineEnabled)
Cursor.valueLineAxis
property. If not set the default value is false.valueLineEnabled
- valueLineEnabled optionpublic java.lang.Boolean getZoomable()
public ChartCursorSettings setZoomable(java.lang.Boolean zoomable)
zoomable
- zoomable optionpublic Color getColor()
public ChartCursorSettings setColor(Color color)
color
- text colorpublic java.lang.Boolean getSelectWithoutZooming()
public void setSelectWithoutZooming(java.lang.Boolean selectWithoutZooming)
selectWithoutZooming
- selectWithoutZooming optionpublic java.lang.Boolean getShowNextAvailable()
public void setShowNextAvailable(java.lang.Boolean showNextAvailable)
showNextAvailable
- showNextAvailable option