Class SimFieldLocationTransformer
java.lang.Object
net.simplace.client.sim.graphpanel.transformer.SimFieldLocationTransformer
- All Implemented Interfaces:
org.apache.commons.collections15.Transformer<FWSimFieldContainer,
Point2D>
public class SimFieldLocationTransformer
extends Object
implements org.apache.commons.collections15.Transformer<FWSimFieldContainer,Point2D>
Transforms the input type into a random location within the bounds of the Dimension property. This is used as the backing Transformer for the LazyMap for many Layouts, and provides a random location for unmapped vertices the first time they are accessed.
- Author:
- Andreas Enders
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Different variables have different identifies to be able to devide them within within the debugging phase of the software developping process. -
Field Summary
Modifier and TypeFieldDescriptionstatic final Map<FWSimVariable.CONTENT_TYPE,
Double> static final Map<FWSimVariable.CONTENT_TYPE,
Integer> -
Constructor Summary
ConstructorDescriptionSimFieldLocationTransformer
(Dimension aDimension) Creates an instance with the specified dimension and random seed. -
Method Summary
-
Field Details
-
MAIN_HEIGHT
-
MAIN_WIDTH
-
-
Constructor Details
-
SimFieldLocationTransformer
Creates an instance with the specified dimension and random seed.- Parameters:
aDimension
-
-
-
Method Details
-
transform
- Specified by:
transform
in interfaceorg.apache.commons.collections15.Transformer<FWSimFieldContainer,
Point2D> - See Also:
-
Transformer.transform(java.lang.Object)
-