public abstract class DataSetLayoutProperties extends Object implements IDAREService, Serializable
DataSetLayoutProperties
allow the use of a specific class of DataSet
s for multiple different layouts.
They contain information about localisation preferences and can provide different DataContainer
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 a DataSet
can be used with these properties and assume, that any request for a Container
will provide a dataset that matches.Modifier and Type | Field and Description |
---|---|
static long |
serialVersionUID |
Constructor and Description |
---|
DataSetLayoutProperties() |
Modifier and Type | Method and 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 Localisation
Localisation.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 purposes
|
abstract 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
|
public static final long serialVersionUID
public abstract Localisation.Position getLocalisationPreference()
Localisation.Position
.CENTER, Localisation.Position
.EDGE, Localisation.Position
.FREE of this dataset.public abstract boolean getItemFlexibility()
public abstract DataContainer newContainerInstance(DataSet origin, NodeData data) throws WrongDatasetTypeException
origin
- the DataSet
a new Container instance is created for. This DataSet
has to pass the testValididty Method, or the behaviour is undefined.data
- a node dataDataSet
and NodeData
WrongDatasetTypeException
- if a DataSet
of an incompatible type is supplied.public abstract String getTypeName()
public abstract void testValidity(DataSet set) throws WrongFormat
set
- the DataSet
to testWrongFormat
- if the supplied set cannot be used.public abstract JPanel getDataSetDescriptionPane(JScrollPane Legend, String DataSetLabel, ColorMap map, DataSet set)
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 DescriptionPanepublic abstract Collection<Class<? extends DataSet>> getWorkingClassTypes()
public boolean equals(Object o)
Copyright © 2018. All rights reserved.