Class CustomContext
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.CustomContext
- All Implemented Interfaces:
IContext,ICustomContext,ILocationContext,IPropertyBag
- Direct Known Subclasses:
AbstractClickContext
The Class CustomContext.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newCustomContext.CustomContext(PictogramElement[] pictogramElements) Creates a newCustomContext. -
Method Summary
Modifier and TypeMethodDescriptionGets the inner graphics algorithm.Gets the inner pictogram element.Gets the pictogram elements.voidsetInnerGraphicsAlgorithm(GraphicsAlgorithm innerGraphicsAlgorithm) Sets the inner graphics algorithm.voidsetInnerPictogramElement(PictogramElement innerPictogramElement) Sets the inner pictogram element.voidsetPictogramElements(PictogramElement[] pictogramElements) Sets the pictogram elements.toString()Methods inherited from class org.eclipse.graphiti.features.context.impl.LocationContext
getX, getY, setLocation, setX, setYMethods inherited from class org.eclipse.graphiti.PropertyBag
getProperty, getPropertyKeys, putPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.graphiti.features.context.ILocationContext
getX, getYMethods inherited from interface org.eclipse.graphiti.IPropertyBag
getProperty, getPropertyKeys, putProperty
-
Constructor Details
-
CustomContext
public CustomContext()Creates a newCustomContext. -
CustomContext
Creates a newCustomContext.- Parameters:
pictogramElements- the pictogram elements
-
-
Method Details
-
getInnerGraphicsAlgorithm
Description copied from interface:ICustomContextGets the inner graphics algorithm.- Specified by:
getInnerGraphicsAlgorithmin interfaceICustomContext- Returns:
- the graphics algorithm at the mouse click position
-
getInnerPictogramElement
Description copied from interface:ICustomContextGets the inner pictogram element.- Specified by:
getInnerPictogramElementin interfaceICustomContext- Returns:
- the pictogram element at the mouse click position
-
getPictogramElements
Description copied from interface:ICustomContextGets the pictogram elements.- Specified by:
getPictogramElementsin interfaceICustomContext- Returns:
- the currently selected pictogram elements
-
setInnerGraphicsAlgorithm
Sets the inner graphics algorithm.- Parameters:
innerGraphicsAlgorithm- the new inner graphics algorithm
-
setInnerPictogramElement
Sets the inner pictogram element.- Parameters:
innerPictogramElement- the new inner pictogram element
-
setPictogramElements
Sets the pictogram elements.- Parameters:
pictogramElements- The pictogramElements to set.
-
toString
- Overrides:
toStringin classLocationContext
-