V
- The type of elements that are manipulated
public class Manipulation<V>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
TRANS_MOVE
Flag indicating the element was moved
|
static byte |
TRANS_PULL_LINE_END
Flag indicating the element was pulled from its end point
|
static byte |
TRANS_PULL_LINE_MID
Flag indicating the element was pulled from one of its middle points
|
static byte |
TRANS_PULL_LINE_START
Flag indicating the element was pulled from its start point
|
Constructor and Description |
---|
Manipulation(V element, byte transformFlags)
Allocates a new manipulation instance
|
Modifier and Type | Method and Description |
---|---|
void |
addChangeFlag(byte changeFlag)
Adds a flag which represents a transformation being performed in the manipulation
|
boolean |
containsTransformFlags(byte transformFlag)
Tells whether the manipulation contains the given transform flags
|
boolean |
equals(java.lang.Object obj) |
JGeometry |
getChangedGeometry()
Gets the element's geometry after the manipulation
|
V |
getElement()
Gets the manipulated element
|
byte |
getTransformFlags()
Gets all the transform flags of the manipulation
|
void |
setChangedGeometry(JGeometry changedGeometry)
Sets the element's geometry after the manipulation
|
void |
setElement(V element)
Sets the manipulated element
|
void |
setTransformFlags(byte transformFlags)
Overwrites the manipulation transform flags
|
public static byte TRANS_MOVE
public static byte TRANS_PULL_LINE_START
public static byte TRANS_PULL_LINE_END
public static byte TRANS_PULL_LINE_MID
public Manipulation(V element, byte transformFlags)
element
- the element being manipulatedtransformFlags
- the transform flags describing the manipulationpublic void addChangeFlag(byte changeFlag)
changeFlag
- a transform flagpublic boolean containsTransformFlags(byte transformFlag)
transformFlag
- transform flagspublic byte getTransformFlags()
public void setTransformFlags(byte transformFlags)
transformFlags
- transform flagspublic V getElement()
public void setElement(V element)
element
- the manipulated elementpublic JGeometry getChangedGeometry()
public void setChangedGeometry(JGeometry changedGeometry)
changedGeometry
- an SDO geometrypublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object