public class GraphContainerLayout extends MultiArrayContainerLayout
Modifier and Type | Field and Description |
---|---|
protected LegendLabel |
LabelForDataSet |
protected Path2D |
LegendAxes |
protected Rectangle2D |
LegendFrame |
protected Rectangle2D |
LegendLineArea |
protected Line2D |
LegendZeroLine |
protected Rectangle2D |
LineArea |
protected HashMap<String,Vector<Double>> |
LineHeaders |
protected Path2D |
NodeAxes |
protected Double |
xmaxval |
protected LegendLabel |
XMaxval |
protected Double |
xminval |
protected LegendLabel |
XMinval |
protected Double |
xrange |
protected Double |
ymaxval |
protected LegendLabel |
YMaxval |
protected Double |
yminval |
protected LegendLabel |
YMinval |
protected Double |
yrange |
protected LegendLabel |
YZeroval |
protected Line2D |
ZeroLine |
layoutarea
Constructor and Description |
---|
GraphContainerLayout()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
LayoutDataForNode(NodeData data,
org.apache.batik.svggen.SVGGraphics2D context,
boolean Legend,
ColorMap colors)
Layout the Data according to the previously generated layout
|
void |
setupLayout(NodeData data,
Rectangle area,
String DataSetLabel,
DataSetLayoutProperties props)
Setup the layout specific positions and data.
|
void |
updateLabel(String DatasetLabel)
Update the Label used in this Layout.
|
createLayout, determineDisplayRange, getLayoutArea, roundToCommonOrder, roundToOrder
protected Path2D LegendAxes
protected Path2D NodeAxes
protected Line2D ZeroLine
protected Line2D LegendZeroLine
protected Rectangle2D LegendFrame
protected LegendLabel LabelForDataSet
protected LegendLabel YMinval
protected LegendLabel YMaxval
protected LegendLabel YZeroval
protected LegendLabel XMinval
protected LegendLabel XMaxval
protected Double yminval
protected Double ymaxval
protected Double yrange
protected Double xminval
protected Double xmaxval
protected Double xrange
protected Rectangle2D LineArea
protected Rectangle2D LegendLineArea
public void setupLayout(NodeData data, Rectangle area, String DataSetLabel, DataSetLayoutProperties props) throws WrongDatasetTypeException
ContainerLayout
setupLayout
in class MultiArrayContainerLayout
data
- The nodeData to use to set up the layout.area
- the area in which to create the layoutDataSetLabel
- the label of the corresponding Dataset to display somewhere in the area.props
- the properties to use (commonly those from which the ContainerLayout
was created)WrongDatasetTypeException
- If an incompatible data set type was usedpublic void LayoutDataForNode(NodeData data, org.apache.batik.svggen.SVGGraphics2D context, boolean Legend, ColorMap colors)
ContainerLayout
LayoutDataForNode
in class MultiArrayContainerLayout
data
- the data to layoutcontext
- the graphics context in which to draw the layoutLegend
- whether this is a layout for the legend or not.colors
- The ColorMap to use for the layoutpublic void updateLabel(String DatasetLabel)
ContainerLayout
updateLabel
in class ContainerLayout
DatasetLabel
- The new label to be used for the DataSet
Copyright © 2018. All rights reserved.