public class ScatterContainerLayout extends MultiArrayContainerLayout
| Modifier and Type | Class and Description | 
|---|---|
protected class  | 
ScatterContainerLayout.LabelAndPosition
A Class that provides Label and position of the label 
 | 
| Modifier and Type | Field and Description | 
|---|---|
protected HashMap<Comparable,ScatterContainerLayout.LabelAndPosition> | 
itemxPositions  | 
protected LegendLabel | 
LabelForDataSet  | 
protected int | 
labelSize  | 
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 boolean | 
numericHeaders  | 
protected Vector<LegendLabel> | 
XLabels  | 
protected Double | 
xmaxval  | 
protected Double | 
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 | 
|---|
ScatterContainerLayout(int LabelSize)
Default Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Path2D | 
createMarker(String itemID,
            Point2D center,
            double size)
Plot a Marker for the given ID 
 The chosen marker depends on the hash code of the itemID provided. 
 | 
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, roundToOrderprotected 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 Vector<LegendLabel> XLabels
protected Double yminval
protected Double ymaxval
protected Double yrange
protected Double xminval
protected Double xmaxval
protected Double xrange
protected Rectangle2D LineArea
protected Rectangle2D LegendLineArea
protected HashMap<Comparable,ScatterContainerLayout.LabelAndPosition> itemxPositions
protected int labelSize
protected boolean numericHeaders
public ScatterContainerLayout(int LabelSize)
LabelSize - the labelsize to usepublic void setupLayout(NodeData data, Rectangle area, String DataSetLabel, DataSetLayoutProperties props) throws WrongDatasetTypeException
ContainerLayoutsetupLayout in class MultiArrayContainerLayoutdata - 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)
ContainerLayoutLayoutDataForNode in class MultiArrayContainerLayoutdata - 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 static Path2D createMarker(String itemID, Point2D center, double size)
itemID - the itemID to obtain the hash fromcenter - the center of the markersize - the size of the marker (total extension)public void updateLabel(String DatasetLabel)
ContainerLayoutupdateLabel in class ContainerLayoutDatasetLabel - The new label to be used for the DataSetCopyright © 2018. All rights reserved.