Class ResizeShapeContext
- java.lang.Object
-
- org.eclipse.graphiti.PropertyBag
-
- org.eclipse.graphiti.internal.features.context.impl.base.DefaultContext
-
- org.eclipse.graphiti.features.context.impl.LocationContext
-
- org.eclipse.graphiti.features.context.impl.AreaContext
-
- org.eclipse.graphiti.features.context.impl.ResizeContext
-
- org.eclipse.graphiti.features.context.impl.ResizeShapeContext
-
- All Implemented Interfaces:
IAreaContext,IContext,ILocationContext,IPictogramElementContext,IResizeContext,IResizeShapeContext,IPropertyBag
public class ResizeShapeContext extends ResizeContext implements IResizeShapeContext
The Class ResizeShapeContext.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.graphiti.features.context.IResizeShapeContext
DIRECTION_EAST, DIRECTION_NORTH, DIRECTION_NORTH_EAST, DIRECTION_NORTH_WEST, DIRECTION_SOUTH, DIRECTION_SOUTH_EAST, DIRECTION_SOUTH_WEST, DIRECTION_UNSPECIFIED, DIRECTION_WEST
-
-
Constructor Summary
Constructors Constructor Description ResizeShapeContext(Shape shape)Creates a newResizeShapeContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDirection()Returns the specified direction.PictogramElementgetPictogramElement()Gets the pictogram element.ShapegetShape()Gets the shape.voidsetDirection(int direction)java.lang.StringtoString()-
Methods inherited from class org.eclipse.graphiti.features.context.impl.AreaContext
getHeight, getWidth, setHeight, setSize, setWidth
-
Methods inherited from class org.eclipse.graphiti.features.context.impl.LocationContext
getX, getY, setLocation, setX, setY
-
Methods inherited from class org.eclipse.graphiti.PropertyBag
getProperty, getPropertyKeys, putProperty
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.graphiti.features.context.IAreaContext
getHeight, getWidth
-
Methods inherited from interface org.eclipse.graphiti.features.context.ILocationContext
getX, getY
-
Methods inherited from interface org.eclipse.graphiti.IPropertyBag
getProperty, getPropertyKeys, putProperty
-
-
-
-
Constructor Detail
-
ResizeShapeContext
public ResizeShapeContext(Shape shape)
Creates a newResizeShapeContext.- Parameters:
shape- the shape
-
-
Method Detail
-
getShape
public Shape getShape()
Gets the shape.- Specified by:
getShapein interfaceIResizeShapeContext- Returns:
- Returns the shape.
-
getPictogramElement
public PictogramElement getPictogramElement()
Description copied from interface:IPictogramElementContextGets the pictogram element.- Specified by:
getPictogramElementin interfaceIPictogramElementContext- Returns:
- the pictogram element
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAreaContext
-
getDirection
public int getDirection()
Description copied from interface:IResizeShapeContextReturns the specified direction. The direction is specified usingIResizeShapeContext#NORTH,IResizeShapeContext#NORTH_EAST, etc.- Specified by:
getDirectionin interfaceIResizeShapeContext- Returns:
- the direction
- Since:
- 0.9
-
setDirection
public void setDirection(int direction)
- Since:
- 0.9
-
-