public class GridRenderer extends Pane implements Renderer
| Type | Property and Description |
|---|---|
BooleanProperty |
drawOnTop
Indicates whether grid lines should be drawn on top or beneath graphs
|
BooleanProperty |
horizontalGridLinesVisible
Indicates whether horizontal major grid lines are visible or not.
|
BooleanProperty |
horizontalMinorGridLinesVisible
Indicates whether horizontal minor grid lines are visible or not.
|
BooleanProperty |
showInLegend
Sets whether DataSets attached to this renderer shall be shown in the legend
|
BooleanProperty |
verticalGridLinesVisible
Indicates whether vertical major grid lines are visible or not.
|
BooleanProperty |
verticalMinorGridLinesVisible
Indicates whether vertical minor grid lines are visible or not.
|
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthPropertyimpl_traversalEngineProperty, needsLayoutPropertyaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty| Modifier and Type | Field and Description |
|---|---|
protected ObservableList<Axis> |
axesList |
protected Chart |
baseChart |
USE_COMPUTED_SIZE, USE_PREF_SIZEBASELINE_OFFSET_SAME_AS_HEIGHT| Constructor and Description |
|---|
GridRenderer(XYChart chart) |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
applyGraphicsStyleFromLineStyle(GraphicsContext gc,
Line style) |
protected void |
drawEuclideanGrid(GraphicsContext gc,
XYChart xyChart) |
protected void |
drawHorizontalMajorGridLines(GraphicsContext gc,
Axis yAxis,
double xAxisWidthSnapped,
double yAxisHeight) |
protected void |
drawHorizontalMinorGridLines(GraphicsContext gc,
Axis yAxis,
double xAxisWidthSnapped,
double yAxisHeight) |
Canvas |
drawLegendSymbol(DataSet dataSet,
int dsIndex,
int width,
int height) |
BooleanProperty |
drawOnTopProperty()
Indicates whether grid lines should be drawn on top or beneath graphs
|
protected void |
drawPolarCircle(GraphicsContext gc,
Axis yAxis,
double yRange,
double xCentre,
double yCentre,
double maxRadius) |
protected void |
drawPolarGrid(GraphicsContext gc,
XYChart xyChart) |
protected void |
drawVerticalMajorGridLines(GraphicsContext gc,
Axis xAxis,
double xAxisWidth,
double yAxisHeightSnapped) |
protected void |
drawVerticalMinorGridLines(GraphicsContext gc,
Axis xAxis,
double xAxisWidth,
double yAxisHeightSnapped) |
ObservableList<Axis> |
getAxes() |
List<CssMetaData<? extends Styleable,?>> |
getCssMetaData() |
ObservableList<DataSet> |
getDatasets() |
ObservableList<DataSet> |
getDatasetsCopy() |
Line |
getHorizontalMajorGrid()
modify this to change drawing of horizontal major grid lines
|
Line |
getHorizontalMinorGrid()
modify this to change drawing of horizontal minor grid lines
|
Line |
getVerticalMajorGrid()
modify this to change drawing of vertical major grid lines
|
Line |
getVerticalMinorGrid()
modify this to change drawing of vertical minor grid lines
|
BooleanProperty |
horizontalGridLinesVisibleProperty()
Indicates whether horizontal major grid lines are visible or not.
|
BooleanProperty |
horizontalMinorGridLinesVisibleProperty()
Indicates whether horizontal minor grid lines are visible or not.
|
boolean |
isDrawOnTop()
Indicates whether grid lines should be drawn on top or beneath graphs
|
void |
render(GraphicsContext gc,
Chart chart,
int dataSetOffset,
ObservableList<DataSet> datasets) |
void |
setDrawOnTop(boolean state)
Indicates whether grid lines should be drawn on top or beneath graphs
|
Renderer |
setShowInLegend(boolean state)
Sets whether DataSets attached to this renderer shall be shown in the legend
|
boolean |
showInLegend()
Sets whether DataSets attached to this renderer shall be shown in the legend
|
BooleanProperty |
showInLegendProperty()
Sets whether DataSets attached to this renderer shall be shown in the legend
|
BooleanProperty |
verticalGridLinesVisibleProperty()
Indicates whether vertical major grid lines are visible or not.
|
BooleanProperty |
verticalMinorGridLinesVisibleProperty()
Indicates whether vertical minor grid lines are visible or not.
|
getChildrenbackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBackground, getBorder, getClassCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace, snapToPixelProperty, widthPropertygetBaselineOffset, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processCSS, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, layoutChildren, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBoundsaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_cssGetFocusTraversableInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visiblePropertypublic final BooleanProperty drawOnTopProperty
isDrawOnTop(),
setDrawOnTop(boolean)public final BooleanProperty horizontalGridLinesVisibleProperty
public final BooleanProperty horizontalMinorGridLinesVisibleProperty
public BooleanProperty showInLegendProperty
showInLegendProperty in interface Rendererpublic final BooleanProperty verticalGridLinesVisibleProperty
public final BooleanProperty verticalMinorGridLinesVisibleProperty
protected final Chart baseChart
protected final ObservableList<Axis> axesList
public GridRenderer(XYChart chart)
protected void drawEuclideanGrid(GraphicsContext gc, XYChart xyChart)
protected void drawHorizontalMajorGridLines(GraphicsContext gc, Axis yAxis, double xAxisWidthSnapped, double yAxisHeight)
protected void drawHorizontalMinorGridLines(GraphicsContext gc, Axis yAxis, double xAxisWidthSnapped, double yAxisHeight)
public Canvas drawLegendSymbol(DataSet dataSet, int dsIndex, int width, int height)
drawLegendSymbol in interface RendererdataSet - the data set for which the representative icon should be generateddsIndex - index within renderer setwidth - requested width of the returning Canvasheight - requested height of the returning Canvaspublic final BooleanProperty drawOnTopProperty()
isDrawOnTop(),
setDrawOnTop(boolean)protected void drawPolarCircle(GraphicsContext gc, Axis yAxis, double yRange, double xCentre, double yCentre, double maxRadius)
protected void drawPolarGrid(GraphicsContext gc, XYChart xyChart)
protected void drawVerticalMajorGridLines(GraphicsContext gc, Axis xAxis, double xAxisWidth, double yAxisHeightSnapped)
protected void drawVerticalMinorGridLines(GraphicsContext gc, Axis xAxis, double xAxisWidth, double yAxisHeightSnapped)
public ObservableList<Axis> getAxes()
public List<CssMetaData<? extends Styleable,?>> getCssMetaData()
getCssMetaData in interface StyleablegetCssMetaData in class Regionpublic ObservableList<DataSet> getDatasets()
getDatasets in interface Rendererpublic ObservableList<DataSet> getDatasetsCopy()
getDatasetsCopy in interface Rendererpublic Line getHorizontalMajorGrid()
public Line getHorizontalMinorGrid()
public Line getVerticalMajorGrid()
public Line getVerticalMinorGrid()
public final BooleanProperty horizontalGridLinesVisibleProperty()
public final BooleanProperty horizontalMinorGridLinesVisibleProperty()
public final boolean isDrawOnTop()
public void render(GraphicsContext gc, Chart chart, int dataSetOffset, ObservableList<DataSet> datasets)
public final void setDrawOnTop(boolean state)
state - true: draw on toppublic Renderer setShowInLegend(boolean state)
RenderersetShowInLegend in interface Rendererstate - true (default) if data sets are supposed to be drawnpublic boolean showInLegend()
RenderershowInLegend in interface Rendererpublic BooleanProperty showInLegendProperty()
RenderershowInLegendProperty in interface Rendererpublic final BooleanProperty verticalGridLinesVisibleProperty()
public final BooleanProperty verticalMinorGridLinesVisibleProperty()
protected static void applyGraphicsStyleFromLineStyle(GraphicsContext gc, Line style)
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.