Class DataSetLayoutProperties
- java.lang.Object
-
- idare.imagenode.Interfaces.Layout.DataSetLayoutProperties
-
- All Implemented Interfaces:
idare.imagenode.internal.IDAREService
,Serializable
- Direct Known Subclasses:
AbstractArrayDataSetProperties
,MultiArrayDataProperties
public abstract class DataSetLayoutProperties extends Object implements idare.imagenode.internal.IDAREService, Serializable
DataSetLayoutProperties
allow the use of a specific class ofDataSet
s for multiple different layouts. They contain information about localisation preferences and can provide differentDataContainer
s (and thus layouts). The DataSetProperties should be independent of the DataSet they are used with. i.e. they should be able to check, whether aDataSet
can 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 long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description DataSetLayoutProperties()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Two Datasetproperties are equal, if they have the same Type name.abstract JPanel
getDataSetDescriptionPane(JScrollPane Legend, String DataSetLabel, ColorMap map, DataSet set)
Plot the Legend for this Dataset.abstract boolean
getItemFlexibility()
Get information whether this dataset can be layouted flexibly or whether it has to obay the precisoe dimensions provided.abstract Localisation.Position
getLocalisationPreference()
Get the preferred LocalisationLocalisation.Position
.CENTER,Localisation.Position
.EDGE,Localisation.Position
.FREE of this dataset.abstract String
getTypeName()
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 DataContainer
newContainerInstance(DataSet origin, NodeData data)
abstract void
testValidity(DataSet set)
Test, whether the provided DataSet is valid to be used with these properties.String
toString()
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
- theDataSet
a new Container instance is created for. ThisDataSet
has to pass the testValididty Method, or the behaviour is undefined.data
- a node data- Returns:
- A new container for the given
DataSet
andNodeData
- Throws:
WrongDatasetTypeException
- if aDataSet
of 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
- theDataSet
to 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.
-
-