public class LabelledMarkerRenderer extends AbstractDataSetManagement<LabelledMarkerRenderer> implements Renderer
| Type | Property and Description |
|---|---|
BooleanProperty |
horizontalMarker |
StringProperty |
style |
BooleanProperty |
verticalMarker |
showInLegendPropertyshowInLegendProperty| Modifier and Type | Field and Description |
|---|---|
protected BooleanProperty |
horizontalMarker |
protected Paint |
strokeColorMarker |
protected double[] |
strokeDashPattern |
protected double |
strokeLineWidthMarker |
protected StringProperty |
style |
protected BooleanProperty |
verticalMarker |
showInLegend| Constructor and Description |
|---|
LabelledMarkerRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawHorizontalLabelledMarker(GraphicsContext gc,
XYChart chart,
DataSet dataSet,
int indexMin,
int indexMax)
Draws horizontal markers with horizontal (default) labels attached to the top
|
Canvas |
drawLegendSymbol(DataSet dataSet,
int dsIndex,
int width,
int height) |
protected void |
drawVerticalLabelledMarker(GraphicsContext gc,
XYChart chart,
DataSet dataSet,
int indexMin,
int indexMax)
Draws vertical markers with vertical (default) labels attached to the top
|
LabelledMarkerRenderer |
enableHorizontalMarker(boolean state) |
LabelledMarkerRenderer |
enableVerticalMarker(boolean state) |
String |
getStyle()
Gets the value of the property style.
|
protected LabelledMarkerRenderer |
getThis() |
BooleanProperty |
horizontalMarkerProperty() |
boolean |
isHorizontalMarker()
Gets the value of the property horizontalMarker.
|
boolean |
isVerticalMarker()
Gets the value of the property verticalMarker.
|
void |
render(GraphicsContext gc,
Chart chart,
int dataSetOffset,
ObservableList<DataSet> datasets) |
protected void |
setGraphicsContextAttributes(GraphicsContext gc,
String style) |
LabelledMarkerRenderer |
setStyle(String newStyle) |
StringProperty |
styleProperty() |
LabelledMarkerRenderer |
updateCSS() |
BooleanProperty |
verticalMarkerProperty() |
copyMetaData, getAxes, getDataSetCopy, getDatasets, getDatasetsCopy, getDatasetsCopy, getErrorDataSetCopy, getFirstAxis, setShowInLegend, showInLegend, showInLegendPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAxes, getDatasets, getDatasetsCopy, setShowInLegend, showInLegend, showInLegendPropertypublic BooleanProperty horizontalMarkerProperty
isHorizontalMarker()public StringProperty styleProperty
getStyle()public BooleanProperty verticalMarkerProperty
isVerticalMarker()protected final StringProperty style
protected final BooleanProperty verticalMarker
protected final BooleanProperty horizontalMarker
protected Paint strokeColorMarker
protected double strokeLineWidthMarker
protected double[] strokeDashPattern
protected void drawHorizontalLabelledMarker(GraphicsContext gc, XYChart chart, DataSet dataSet, int indexMin, int indexMax)
gc - the graphics context from the Canvas parentchart - instance of the calling chartdataSet - instance of the data set that is supposed to be drawnindexMin - minimum index of data set to be drawnindexMax - maximum index of data set to be drawnpublic 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 Canvasprotected void drawVerticalLabelledMarker(GraphicsContext gc, XYChart chart, DataSet dataSet, int indexMin, int indexMax)
gc - the graphics context from the Canvas parentchart - instance of the calling chartdataSet - instance of the data set that is supposed to be drawnindexMin - minimum index of data set to be drawnindexMax - maximum index of data set to be drawnpublic LabelledMarkerRenderer enableHorizontalMarker(boolean state)
public LabelledMarkerRenderer enableVerticalMarker(boolean state)
public String getStyle()
protected LabelledMarkerRenderer getThis()
getThis in class AbstractDataSetManagement<LabelledMarkerRenderer>public BooleanProperty horizontalMarkerProperty()
isHorizontalMarker()public boolean isHorizontalMarker()
public boolean isVerticalMarker()
public void render(GraphicsContext gc, Chart chart, int dataSetOffset, ObservableList<DataSet> datasets)
protected void setGraphicsContextAttributes(GraphicsContext gc, String style)
public LabelledMarkerRenderer setStyle(String newStyle)
public StringProperty styleProperty()
getStyle()public final LabelledMarkerRenderer updateCSS()
public BooleanProperty verticalMarkerProperty()
isVerticalMarker()Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.