Class DataSetLayoutProperties
- java.lang.Object
 - 
- idare.imagenode.Interfaces.Layout.DataSetLayoutProperties
 
 
- 
- All Implemented Interfaces:
 IDAREService,Serializable
- Direct Known Subclasses:
 AbstractArrayDataSetProperties,MultiArrayDataProperties
public abstract class DataSetLayoutProperties extends Object implements IDAREService, Serializable
DataSetLayoutPropertiesallow the use of a specific class ofDataSets for multiple different layouts. They contain information about localisation preferences and can provide differentDataContainers (and thus layouts). The DataSetProperties should be independent of the DataSet they are used with. i.e. they should be able to check, whether aDataSetcan be used with these properties and assume, that any request for a Container will provide a dataset that matches.- Author:
 - Thomas Pfau
 - See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static longserialVersionUID 
- 
Constructor Summary
Constructors Constructor Description DataSetLayoutProperties() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Two Datasetproperties are equal, if they have the same Type name.abstract JPanelgetDataSetDescriptionPane(JScrollPane Legend, String DataSetLabel, ColorMap map, DataSet set)Plot the Legend for this Dataset.abstract booleangetItemFlexibility()Get information whether this dataset can be layouted flexibly or whether it has to obay the precisoe dimensions provided.abstract Localisation.PositiongetLocalisationPreference()Get the preferred LocalisationLocalisation.Position.CENTER,Localisation.Position.EDGE,Localisation.Position.FREE of this dataset.abstract StringgetTypeName()Get the type of DataSet (this can be used for display purposesabstract Collection<Class<? extends DataSet>>getWorkingClassTypes()Get the DataSet class Types these Properties are supposed to work with.abstract DataContainernewContainerInstance(DataSet origin, NodeData data)abstract voidtestValidity(DataSet set)Test, whether the provided DataSet is valid to be used with these properties.StringtoString()Override the ToString Method 
 - 
 
- 
- 
Field Detail
- 
serialVersionUID
public static final long serialVersionUID
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getLocalisationPreference
public abstract Localisation.Position getLocalisationPreference()
Get the preferred LocalisationLocalisation.Position.CENTER,Localisation.Position.EDGE,Localisation.Position.FREE of this dataset.- Returns:
 - the preferred Localisation
 
 
- 
getItemFlexibility
public abstract boolean getItemFlexibility()
Get information whether this dataset can be layouted flexibly or whether it has to obay the precisoe dimensions provided.- Returns:
 - whether this container has a flexible layout.
 
 
- 
newContainerInstance
public abstract DataContainer newContainerInstance(DataSet origin, NodeData data) throws WrongDatasetTypeException
- Parameters:
 origin- theDataSeta new Container instance is created for. ThisDataSethas to pass the testValididty Method, or the behaviour is undefined.data- a node data- Returns:
 - A new container for the given 
DataSetandNodeData - Throws:
 WrongDatasetTypeException- if aDataSetof an incompatible type is supplied.
 
- 
getTypeName
public abstract String getTypeName()
Get the type of DataSet (this can be used for display purposes- Returns:
 - the type name of these properties
 
 
- 
testValidity
public abstract void testValidity(DataSet set) throws WrongFormat
Test, whether the provided DataSet is valid to be used with these properties.- Parameters:
 set- theDataSetto test- Throws:
 WrongFormat- if the supplied set cannot be used.
 
- 
getDataSetDescriptionPane
public abstract JPanel getDataSetDescriptionPane(JScrollPane Legend, String DataSetLabel, ColorMap map, DataSet set)
Plot the Legend for this Dataset.- Parameters:
 Legend- The Legend the returned Panel will be added to (to listen to resize events.DataSetLabel- the Label of the DataSet these properties are used formap- the colormap used for the corresponding datasetset- the dataset for which to generate a DescriptionPane- Returns:
 - a JPanel that contains descriptive information about the provided dataset and its visualisation.
 
 
- 
getWorkingClassTypes
public abstract Collection<Class<? extends DataSet>> getWorkingClassTypes()
Get the DataSet class Types these Properties are supposed to work with.- Returns:
 - All Classes these properties can be used for.
 
 
- 
equals
public boolean equals(Object o)
Two Datasetproperties are equal, if they have the same Type name. 
 - 
 
 -