public class ResizeShapeContext extends ResizeContext implements IResizeShapeContext
DIRECTION_EAST, DIRECTION_NORTH, DIRECTION_NORTH_EAST, DIRECTION_NORTH_WEST, DIRECTION_SOUTH, DIRECTION_SOUTH_EAST, DIRECTION_SOUTH_WEST, DIRECTION_UNSPECIFIED, DIRECTION_WEST
Constructor and Description |
---|
ResizeShapeContext(Shape shape)
Creates a new
ResizeShapeContext . |
Modifier and Type | Method and Description |
---|---|
int |
getDirection()
Returns the specified direction.
|
PictogramElement |
getPictogramElement()
Gets the pictogram element.
|
Shape |
getShape()
Gets the shape.
|
void |
setDirection(int direction) |
java.lang.String |
toString() |
getHeight, getWidth, setHeight, setSize, setWidth
getX, getY, setLocation, setX, setY
getProperty, getPropertyKeys, putProperty
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getHeight, getWidth
getX, getY
getProperty, getPropertyKeys, putProperty
public ResizeShapeContext(Shape shape)
ResizeShapeContext
.shape
- the shapepublic Shape getShape()
getShape
in interface IResizeShapeContext
public PictogramElement getPictogramElement()
IPictogramElementContext
getPictogramElement
in interface IPictogramElementContext
public java.lang.String toString()
toString
in class AreaContext
public int getDirection()
IResizeShapeContext
IResizeShapeContext#NORTH
, IResizeShapeContext#NORTH_EAST
, etc.getDirection
in interface IResizeShapeContext
public void setDirection(int direction)