public abstract class ScatterDataSetProperties extends MultiArrayDataProperties
Constructor and Description |
---|
ScatterDataSetProperties() |
Modifier and Type | Method and Description |
---|---|
JPanel |
getDataSetDescriptionPane(JScrollPane Legend,
String DataSetLabel,
ColorMap map,
DataSet set)
Plot the Legend for this Dataset.
|
boolean |
getItemFlexibility()
Get information whether this dataset can be layouted flexibly or whether it has to obay the precisoe dimensions provided.
|
protected abstract int |
getLabelSize()
Get the size of labels for these Properties.
|
Localisation.Position |
getLocalisationPreference()
Get the preferred Localisation
Localisation.Position .CENTER, Localisation.Position .EDGE, Localisation.Position .FREE of this dataset. |
String |
getTypeName()
Get the type of DataSet (this can be used for display purposes
|
Collection<Class<? extends DataSet>> |
getWorkingClassTypes()
Get the DataSet class Types these Properties are supposed to work with.
|
DataContainer |
newContainerInstance(DataSet origin,
NodeData data)
|
void |
testValidity(DataSet set)
Test, whether the provided DataSet is valid to be used with these properties.
|
String |
toString()
Override the ToString Method
|
equals
public Localisation.Position getLocalisationPreference()
DataSetLayoutProperties
Localisation.Position
.CENTER, Localisation.Position
.EDGE, Localisation.Position
.FREE of this dataset.getLocalisationPreference
in class DataSetLayoutProperties
public boolean getItemFlexibility()
DataSetLayoutProperties
getItemFlexibility
in class DataSetLayoutProperties
public DataContainer newContainerInstance(DataSet origin, NodeData data)
DataSetLayoutProperties
newContainerInstance
in class DataSetLayoutProperties
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
public String getTypeName()
DataSetLayoutProperties
getTypeName
in class DataSetLayoutProperties
public String toString()
DataSetLayoutProperties
toString
in class DataSetLayoutProperties
public void testValidity(DataSet set) throws WrongFormat
DataSetLayoutProperties
testValidity
in class DataSetLayoutProperties
set
- the DataSet
to testWrongFormat
- if the supplied set cannot be used.public JPanel getDataSetDescriptionPane(JScrollPane Legend, String DataSetLabel, ColorMap map, DataSet set)
DataSetLayoutProperties
getDataSetDescriptionPane
in class DataSetLayoutProperties
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 DescriptionPaneprotected abstract int getLabelSize()
public Collection<Class<? extends DataSet>> getWorkingClassTypes()
DataSetLayoutProperties
getWorkingClassTypes
in class DataSetLayoutProperties
Copyright © 2018. All rights reserved.