Interface DataContainer
-
- All Known Implementing Classes:
AbstractArrayContainer
,MultiArrayContainer
public interface DataContainer
ADataContainer
is a class that is able to provide a specific ContainerLayout for a node.- Author:
- Thomas Pfau
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContainerLayout
createEmptyLayout()
Create a new Layout for this container.NodeData
getData()
Get theNodeData
associated with this ContainerDataSet
getDataSet()
Get the source Dataset this Container was build from.Rectangle
getMinimalSize()
A container should provide information on its size This dimension is assumed to simultaneously represent the number of items (i.e.Dimension
getPreferredSize(Dimension availablearea, IMAGENODEPROPERTIES.LayoutStyle style)
-
-
-
Method Detail
-
getMinimalSize
Rectangle getMinimalSize()
A container should provide information on its size This dimension is assumed to simultaneously represent the number of items (i.e. Dimension.x * Dimension.y = Number of items The maximal dimension allowed for a non flexible container is 10*10 in the center and 10*6 in the edges For a flexible container it is assumed, that the container can be rescaled and thus a maximal item count of 100 is allowed for center and 60 for edge containers- Returns:
- the minimal Size of this container (in units)
-
getDataSet
DataSet getDataSet()
Get the source Dataset this Container was build from.- Returns:
- the source dataset of this container
-
getPreferredSize
Dimension getPreferredSize(Dimension availablearea, IMAGENODEPROPERTIES.LayoutStyle style)
Get the preferred size (as a rectangle with Integer width and height, based on the available area provided The resultingRectangle
width must be smaller or equal to the providedRectangle
. The same applies to its height.- Parameters:
availablearea
- The area available to generate the layoutstyle
- the localisation (either CENTER or EDGE).- Returns:
- the preferred size within the provided rectangle
-
getData
NodeData getData()
Get theNodeData
associated with this Container- Returns:
- the
NodeData
for this container
-
createEmptyLayout
ContainerLayout createEmptyLayout()
Create a new Layout for this container.- Returns:
- an uninitialized
ContainerLayout
-
-