Class AreaContext
- 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
-
- All Implemented Interfaces:
IAreaContext,IContext,ILocationContext,IPropertyBag
- Direct Known Subclasses:
AddContext,AreaAnchorContext,CreateContext,ResizeContext
public class AreaContext extends LocationContext implements IAreaContext
The Class AreaContext.
-
-
Constructor Summary
Constructors Constructor Description AreaContext()Creates a newAreaContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHeight()Gets the height.intgetWidth()Gets the width.voidsetHeight(int height)Sets the height.voidsetSize(int width, int height)Sets the size.voidsetWidth(int width)Sets the width.java.lang.StringtoString()-
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.ILocationContext
getX, getY
-
Methods inherited from interface org.eclipse.graphiti.IPropertyBag
getProperty, getPropertyKeys, putProperty
-
-
-
-
Constructor Detail
-
AreaContext
public AreaContext()
Creates a newAreaContext.
-
-
Method Detail
-
getHeight
public int getHeight()
Description copied from interface:IAreaContextGets the height.- Specified by:
getHeightin interfaceIAreaContext- Returns:
- the area's height
-
getWidth
public int getWidth()
Description copied from interface:IAreaContextGets the width.- Specified by:
getWidthin interfaceIAreaContext- Returns:
- the area's width
-
setHeight
public void setHeight(int height)
Sets the height.- Parameters:
height- The height to set.
-
setSize
public void setSize(int width, int height)Sets the size.- Parameters:
width- the widthheight- the height
-
setWidth
public void setWidth(int width)
Sets the width.- Parameters:
width- The width to set.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classLocationContext
-
-