public interface ImageNodeLayout extends DataSetAboutToBeChangedListener
| Modifier and Type | Method and Description |
|---|---|
void |
datasetChanged(DataSetChangedEvent e)
Inform that there will be a change in the
DataSets |
void |
datasetsChanged(DataSetsChangedEvent e)
Inform that a Collection of changes coming up in the
DataSets. |
void |
doLayout()
Produce the layout based on the added DataSets.
|
ColorMap |
getColorsForDataSet(DataSetLink ds)
|
String |
getDataSetLabel(DataSetLink ds)
Get the label for a specific
DataSet used in this layout; |
Vector<? extends DataSetLink> |
getDatasetsInOrder()
Get the DataSets used in this Layout in the order of labeling
|
boolean |
isValid()
Check whether this
AutomaticNodeLayout is valid. |
void |
layoutLegendNode(Collection<NodeData> datacollection,
org.apache.batik.svggen.SVGGraphics2D svg)
Lay out the legend for a specific set of node data
|
void |
layoutNode(Collection<NodeData> datacollection,
org.apache.batik.svggen.SVGGraphics2D svg)
Layout a specific node in a given context.
|
boolean |
readLayout(DataSetManager dsm,
ObjectInputStream os,
Object currentobject)
Read a layout object from an
ObjectInputStream given the last object read (which is the first object of the layout) |
void |
writeLayout(ObjectOutputStream os)
Write all data that is relevant to restore this nodelayout to a
ObjectOutputStream |
boolean isValid()
AutomaticNodeLayout is valid. A Layout is valid, if its ImageNodeContainer contains
at least one DataSet.
Thus, by default a newly generated layout is invalid until a DataSet is added.void writeLayout(ObjectOutputStream os) throws IOException
ObjectOutputStreamos - The ObjectOutputStream to write the dlayout infromation toIOException - If errors occur with the given streamboolean readLayout(DataSetManager dsm, ObjectInputStream os, Object currentobject) throws IOException
ObjectInputStream given the last object read (which is the first object of the layout)dsm - the DataSetManager to get information about DataSets from.os - The ObjectInputStream to read fromcurrentobject - The last object read in the ObjectInputStream provided (the first object of the nodelayout saveIOException.IOException - If errors occur with the given streamvoid doLayout()
throws TooManyItemsException,
ContainerUnplaceableExcpetion,
DimensionMismatchException,
WrongDatasetTypeException
TooManyItemsException - If there are too many Items to layoutContainerUnplaceableExcpetion - If a container is not placeableDimensionMismatchException - If the given dimensions don't fit.WrongDatasetTypeException - IF the given Dataset does not it to the layoutString getDataSetLabel(DataSetLink ds)
DataSet used in this layout;ColorMap getColorsForDataSet(DataSetLink ds)
ds - - The requested DatasetColorMap associated with the DataSet in this AutomaticNodeLayoutVector<? extends DataSetLink> getDatasetsInOrder()
void layoutNode(Collection<NodeData> datacollection, org.apache.batik.svggen.SVGGraphics2D svg)
datacollection - The data to be used for drawingsvg - the SVGGraphics2D to draw invoid layoutLegendNode(Collection<NodeData> datacollection, org.apache.batik.svggen.SVGGraphics2D svg)
datacollection - The data to be used for drawingsvg - the SVGGraphics2D to draw invoid datasetChanged(DataSetChangedEvent e)
DataSetAboutToBeChangedListenerDataSetsdatasetChanged in interface DataSetAboutToBeChangedListenere - the DataSetChangedEvent to processvoid datasetsChanged(DataSetsChangedEvent e)
DataSetAboutToBeChangedListenerDataSets.datasetsChanged in interface DataSetAboutToBeChangedListenere - the DataSetChangedEvent to processCopyright © 2018. All rights reserved.