org.eclipse.graphiti.features.context.impl
Class ResizeShapeContext

java.lang.Object
  extended by DefaultContext
      extended by org.eclipse.graphiti.features.context.impl.LocationContext
          extended by org.eclipse.graphiti.features.context.impl.AreaContext
              extended by org.eclipse.graphiti.features.context.impl.ResizeContext
                  extended by 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
private  int direction
           
private  Shape shape
           
 
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
ResizeShapeContext(Shape shape)
          Creates a new ResizeShapeContext.
 
Method Summary
 int getDirection()
          Returns the specified direction.
 PictogramElement getPictogramElement()
          Gets the pictogram element.
 Shape getShape()
          Gets the shape.
 void setDirection(int direction)
           
private  void setShape(Shape shape)
           
 String toString()
           
 
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 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
 

Field Detail

shape

private Shape shape

direction

private int direction
Constructor Detail

ResizeShapeContext

public ResizeShapeContext(Shape shape)
Creates a new ResizeShapeContext.

Parameters:
shape - the shape
Method Detail

getShape

public Shape getShape()
Gets the shape.

Specified by:
getShape in interface IResizeShapeContext
Returns:
Returns the shape.

setShape

private void setShape(Shape shape)
Parameters:
shape - The shape to set.

getPictogramElement

public PictogramElement getPictogramElement()
Description copied from interface: IPictogramElementContext
Gets the pictogram element.

Specified by:
getPictogramElement in interface IPictogramElementContext
Returns:
the pictogram element

toString

public String toString()
Overrides:
toString in class AreaContext

getDirection

public int getDirection()
Description copied from interface: IResizeShapeContext
Returns the specified direction. The direction is specified using IResizeShapeContext#NORTH, IResizeShapeContext#NORTH_EAST , etc.

Specified by:
getDirection in interface IResizeShapeContext
Returns:
the direction
Since:
0.9

setDirection

public void setDirection(int direction)
Since:
0.9


Copyright (c) SAP AG 2005, 2012.