Class Manipulation<V>
- java.lang.Object
-
- oracle.spatial.network.nfe.vis.mapcanvas.behavior.manipulate.Manipulation<V>
-
- Type Parameters:
V- The type of elements that are manipulated
public class Manipulation<V> extends java.lang.ObjectContains information regarding to how an element is manipulated
-
-
Field Summary
Fields Modifier and Type Field Description static byteTRANS_MOVEFlag indicating the element was movedstatic byteTRANS_PULL_LINE_ENDFlag indicating the element was pulled from its end pointstatic byteTRANS_PULL_LINE_MIDFlag indicating the element was pulled from one of its middle pointsstatic byteTRANS_PULL_LINE_STARTFlag indicating the element was pulled from its start point
-
Constructor Summary
Constructors Constructor Description Manipulation(V element, byte transformFlags)Allocates a new manipulation instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChangeFlag(byte changeFlag)Adds a flag which represents a transformation being performed in the manipulationbooleancontainsTransformFlags(byte transformFlag)Tells whether the manipulation contains the given transform flagsbooleanequals(java.lang.Object obj)JGeometrygetChangedGeometry()Gets the element's geometry after the manipulationVgetElement()Gets the manipulated elementbytegetTransformFlags()Gets all the transform flags of the manipulationvoidsetChangedGeometry(JGeometry changedGeometry)Sets the element's geometry after the manipulationvoidsetElement(V element)Sets the manipulated elementvoidsetTransformFlags(byte transformFlags)Overwrites the manipulation transform flags
-
-
-
Field Detail
-
TRANS_MOVE
public static byte TRANS_MOVE
Flag indicating the element was moved
-
TRANS_PULL_LINE_START
public static byte TRANS_PULL_LINE_START
Flag indicating the element was pulled from its start point
-
TRANS_PULL_LINE_END
public static byte TRANS_PULL_LINE_END
Flag indicating the element was pulled from its end point
-
TRANS_PULL_LINE_MID
public static byte TRANS_PULL_LINE_MID
Flag indicating the element was pulled from one of its middle points
-
-
Constructor Detail
-
Manipulation
public Manipulation(V element, byte transformFlags)
Allocates a new manipulation instance- Parameters:
element- the element being manipulatedtransformFlags- the transform flags describing the manipulation
-
-
Method Detail
-
addChangeFlag
public void addChangeFlag(byte changeFlag)
Adds a flag which represents a transformation being performed in the manipulation- Parameters:
changeFlag- a transform flag
-
containsTransformFlags
public boolean containsTransformFlags(byte transformFlag)
Tells whether the manipulation contains the given transform flags- Parameters:
transformFlag- transform flags- Returns:
-
getTransformFlags
public byte getTransformFlags()
Gets all the transform flags of the manipulation- Returns:
- transform flags
-
setTransformFlags
public void setTransformFlags(byte transformFlags)
Overwrites the manipulation transform flags- Parameters:
transformFlags- transform flags
-
getElement
public V getElement()
Gets the manipulated element- Returns:
- the manipulated element
-
setElement
public void setElement(V element)
Sets the manipulated element- Parameters:
element- the manipulated element
-
getChangedGeometry
public JGeometry getChangedGeometry()
Gets the element's geometry after the manipulation- Returns:
- an SDO geometry
-
setChangedGeometry
public void setChangedGeometry(JGeometry changedGeometry)
Sets the element's geometry after the manipulation- Parameters:
changedGeometry- an SDO geometry
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-