public class MetaDataRenderer extends AbstractMetaDataRendererParameter<MetaDataRenderer> implements Renderer
| Type | Property and Description |
|---|---|
BooleanProperty |
drawOnCanvas |
ObjectProperty<Side> |
infoBoxSide
whether renderer should draw info box in Side side, ...
|
BooleanProperty |
showInLegend
Sets whether DataSets attached to this renderer shall be shown in the legend
|
showErrorMessagesProperty, showInfoMessagesProperty, showWarningMessagesProperty, styleProperty| Modifier and Type | Class and Description |
|---|---|
protected class |
MetaDataRenderer.MetaLabel |
protected static class |
MetaDataRenderer.MsgType |
| Modifier and Type | Field and Description |
|---|---|
protected BorderPane |
borderPane |
protected Chart |
chart |
protected BooleanProperty |
drawOnCanvas |
protected HBox |
errorBox |
protected HBox |
infoBox |
protected ObjectProperty<Side> |
infoBoxSide |
protected FlowPane |
messageBox |
protected List<String> |
oldErrorMessages |
protected List<String> |
oldInfoMessages |
protected List<String> |
oldWarningMessages |
protected HBox |
warningBox |
DEFAULT_FONT, DEFAULT_FONT_SIZE, DEFAULT_GRID_DASH_PATTERM, DEFAULT_GRID_LINE_COLOR, DEFAULT_GRID_LINE_WIDTH, iconSize, imgIconError, imgIconInfo, imgIconWarning, showErrorMessages, showInfoMessages, showWarningMessages, strokeColorMarker, strokeDashPattern, strokeLineWidthMarker, style, STYLE_CLASS_LABELLED_MARKER| Constructor and Description |
|---|
MetaDataRenderer(Chart chart) |
| Modifier and Type | Method and Description |
|---|---|
Canvas |
drawLegendSymbol(DataSet dataSet,
int dsIndex,
int width,
int height) |
BooleanProperty |
drawOnCanvasProperty() |
ObservableList<Axis> |
getAxes() |
BorderPane |
getBorderPaneOnCanvas() |
ObservableList<DataSet> |
getDatasets() |
ObservableList<DataSet> |
getDatasetsCopy() |
protected List<DataSet> |
getDataSetsWithMetaData(List<DataSet> dataSets) |
HBox |
getErrorBox() |
HBox |
getInfoBox() |
Side |
getInfoBoxSide()
whether renderer should draw info box in Side side, ...
|
FlowPane |
getMessageBox() |
protected MetaDataRenderer |
getThis() |
HBox |
getWarningBox() |
ObjectProperty<Side> |
infoBoxSideProperty()
whether renderer should draw info box in Side side, ...
|
boolean |
isDrawOnCanvas()
Gets the value of the property drawOnCanvas.
|
void |
render(GraphicsContext gc,
Chart chart,
int dataSetOffset,
ObservableList<DataSet> datasets) |
void |
setDrawOnCanvas(boolean state)
Sets the value of the property drawOnCanvas.
|
MetaDataRenderer |
setInfoBoxSide(Side side)
whether renderer should draw info box in Side side, ...
|
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
|
protected void |
updateInfoBoxLocation() |
getStyle, isShowErrorMessages, isShowInfoMessages, isShowWarningMessages, setshowErrorMessages, setshowInfoMessages, setshowWarningMessages, setStyle, showErrorMessagesProperty, showInfoMessagesProperty, showWarningMessagesProperty, styleProperty, updateCSSpublic BooleanProperty drawOnCanvasProperty
isDrawOnCanvas(),
setDrawOnCanvas(boolean)public final ObjectProperty<Side> infoBoxSideProperty
getInfoBoxSide()public BooleanProperty showInLegendProperty
showInLegendProperty in interface Rendererprotected BorderPane borderPane
protected FlowPane messageBox
protected HBox infoBox
protected HBox warningBox
protected HBox errorBox
protected Chart chart
protected final BooleanProperty drawOnCanvas
protected final ObjectProperty<Side> infoBoxSide
public MetaDataRenderer(Chart chart)
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 BooleanProperty drawOnCanvasProperty()
isDrawOnCanvas(),
setDrawOnCanvas(boolean)public ObservableList<Axis> getAxes()
public BorderPane getBorderPaneOnCanvas()
public ObservableList<DataSet> getDatasets()
getDatasets in interface Rendererpublic ObservableList<DataSet> getDatasetsCopy()
getDatasetsCopy in interface Rendererpublic HBox getErrorBox()
public HBox getInfoBox()
public final Side getInfoBoxSide()
public FlowPane getMessageBox()
protected MetaDataRenderer getThis()
getThis in class AbstractMetaDataRendererParameter<MetaDataRenderer>public HBox getWarningBox()
public final ObjectProperty<Side> infoBoxSideProperty()
getInfoBoxSide()public boolean isDrawOnCanvas()
public void render(GraphicsContext gc, Chart chart, int dataSetOffset, ObservableList<DataSet> datasets)
public void setDrawOnCanvas(boolean state)
public final MetaDataRenderer setInfoBoxSide(Side side)
side - the side to drawpublic 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 Rendererprotected void updateInfoBoxLocation()
Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.