Class SimFieldLocationTransformer
java.lang.Object
net.simplace.client.sim.graphpanel.transformer.SimFieldLocationTransformer
- All Implemented Interfaces:
org.apache.commons.collections15.Transformer<net.simplace.sim.util.FWSimFieldContainer, Point2D>
public class SimFieldLocationTransformer
extends Object
implements org.apache.commons.collections15.Transformer<net.simplace.sim.util.FWSimFieldContainer, Point2D>
Transforms a field container into its initial location: the vertical position depends on the content type
(resources top, SimComponents middle, outputs bottom), the horizontal position on the order number. This is used
as the backing Transformer for the LazyMap of the layouts.
- Author:
- Andreas Enders
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classComputes the location coordinates depending on content type and order number. -
Field Summary
FieldsModifier and TypeFieldDescriptionRelative vertical position (0..1) per content type.First order number per content type (subtracted from the order number for the horizontal position). -
Constructor Summary
ConstructorsConstructorDescriptionSimFieldLocationTransformer(Dimension aDimension) Creates an instance with the specified dimension. -
Method Summary
-
Field Details
-
MAIN_HEIGHT
-
MAIN_WIDTH
-
-
Constructor Details
-
SimFieldLocationTransformer
Creates an instance with the specified dimension.- Parameters:
aDimension- size of the graph area
-
-
Method Details
-
transform
-