Package com.amalgamasimulation.charts
Interface IVerticalGuidelineOwner<VS extends IAbstractChartVisualSet,VSC extends AbstractVisualSetContainer<VS>>
- All Known Implementing Classes:
AbstractBarChart,AbstractGanttChart,AbstractLineChart,BarChart,HistogramChart,NumericGanttChart,NumericLineChart,TimeGanttChart,TimeLineChart
public interface IVerticalGuidelineOwner<VS extends IAbstractChartVisualSet,VSC extends AbstractVisualSetContainer<VS>>
Interface of vertical guideline property owners. Provides a set of methods
corresponding to it.
- Author:
- Aleksey Kirillov
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the action to be executed every time the vertical guideline visibility or position is changed.voidClear all the vertical guideline visibility or position changed actions.javafx.scene.paint.ColorReturns the current color of the vertical guideline.doubleReturns the current X-axis position of vertical guideline.doubleReturns the current width of the vertical guideline.Hides the currently displayed vertical guideline.booleanChecks whether vertical guideline is displayed.booleanChecks whether the vertical guideline label is drawn.booleanChecks whether vertical guideline is snapped to grid lines.booleanChecks whether the legend values are drawn.booleanChecks whether vertical guideline is drawn.voidRemoves the vertical guideline visibility or position changed action.setVerticalGuidelineColor(Color color) Sets the new color to the vertical guideline.setVerticalGuidelineColor(javafx.scene.paint.Color color) Sets the new color to the vertical guideline.setVerticalGuidelineLabelVisible(boolean visible) Specifies whether the vertical guideline label should be drawn.setVerticalGuidelineSnapToGridLines(boolean snapToGridLines) Specifies whether the vertical guideline should be snapped to grid lines.setVerticalGuidelineValuesVisible(boolean visible) Specifies whether the legend values of the applicable visual sets should be drawn when a vertical guideline is shown.setVerticalGuidelineVisible(boolean visible) Specifies whether the vertical guideline functionality should be enabled for the end users of this chart.setVerticalGuidelineWidth(double width) Sets the new width to the vertical guideline, in pixels.showVerticalGuidelineDisplayed(double position) Shows a vertical guideline at the specified X-axis position.
-
Method Details
-
setVerticalGuidelineVisible
Specifies whether the vertical guideline functionality should be enabled for the end users of this chart. This functionality allows the users to show and hide the vertical guideline by clicking on the chart contents area. Redraws this chart if visibility is changed.Vertical guideline functionality is enabled by default.
- Parameters:
visible-trueif vertical guideline functionality should be enabled,falseotherwise- Returns:
- reference to this object
-
setVerticalGuidelineLabelVisible
Specifies whether the vertical guideline label should be drawn. Istrueby default. Redraws this chart if visibility is changed.- Parameters:
visible- new vertical guideline label visibility- Returns:
- reference to this object
-
setVerticalGuidelineValuesVisible
Specifies whether the legend values of the applicable visual sets should be drawn when a vertical guideline is shown. The displayed values are the result of the intersection of the corresponding data elements with a vertical guideline. Istrueby default. Redraws this chart if visibility is changed.- Parameters:
visible-trueif the legend values should be drawn,falseotherwise- Returns:
- reference to this object
-
showVerticalGuidelineDisplayed
Shows a vertical guideline at the specified X-axis position. Redraws this chart.- Parameters:
position- specified X-axis position of the vertical guideline- Returns:
- reference to this object
-
setVerticalGuidelineColor
Sets the new color to the vertical guideline. Redraws this chart if color is changed.- Parameters:
color- new vertical guideline color- Returns:
- reference to this object
-
setVerticalGuidelineColor
Sets the new color to the vertical guideline. Redraws this chart if color is changed.- Parameters:
color- new vertical guideline color- Returns:
- reference to this object
-
setVerticalGuidelineWidth
Sets the new width to the vertical guideline, in pixels. Redraws this chart if width is changed.- Parameters:
width- new vertical guideline width, in pixels- Returns:
- reference to this object
-
isVerticalGuidelineVisible
boolean isVerticalGuidelineVisible()Checks whether vertical guideline is drawn.- Returns:
trueif vertical guideline is drawn,falseotherwise
-
isVerticalGuidelineLabelVisible
boolean isVerticalGuidelineLabelVisible()Checks whether the vertical guideline label is drawn.- Returns:
trueif the vertical guideline label is drawn,falseotherwise
-
isVerticalGuidelineValuesVisible
boolean isVerticalGuidelineValuesVisible()Checks whether the legend values are drawn.- Returns:
trueif the legend values are drawn,falseotherwise
-
getVerticalGuidelineColor
javafx.scene.paint.Color getVerticalGuidelineColor()Returns the current color of the vertical guideline.- Returns:
- the current color of the vertical guideline
-
getVerticalGuidelineWidth
double getVerticalGuidelineWidth()Returns the current width of the vertical guideline.- Returns:
- the current width of the vertical guideline
-
hideVerticalGuideline
Hides the currently displayed vertical guideline. Redraws this chart. Does nothing if the vertical guideline is not currently displayed.- Returns:
- reference to this object
-
isVerticalGuidelineDisplayed
boolean isVerticalGuidelineDisplayed()Checks whether vertical guideline is displayed.- Returns:
- true if vertical guideline is displayed
-
getVerticalGuidelinePosition
double getVerticalGuidelinePosition()Returns the current X-axis position of vertical guideline.- Returns:
- the current X-axis position of vertical guideline
-
addVerticalGuidelineChangeHandler
Adds the action to be executed every time the vertical guideline visibility or position is changed.- Parameters:
handler- new action to be executed every time the vertical guideline visibility or position is changed
-
removeVerticalGuidelineChangeHandler
Removes the vertical guideline visibility or position changed action.- Parameters:
handler- removed vertical guideline visibility or position changed action
-
clearVerticalGuidelineChangeHandlers
void clearVerticalGuidelineChangeHandlers()Clear all the vertical guideline visibility or position changed actions. -
setVerticalGuidelineSnapToGridLines
Specifies whether the vertical guideline should be snapped to grid lines.- Parameters:
snapToGridLines- new value of property vertical guideline snapped to grid lines- Returns:
- reference to this object
-
isVerticalGuidelineSnapToGridLines
boolean isVerticalGuidelineSnapToGridLines()Checks whether vertical guideline is snapped to grid lines.- Returns:
- true if vertical guideline is snapped to grid lines
-