Class AbstractAddPictogramElementFeature
java.lang.Object
org.eclipse.graphiti.features.impl.AbstractFeature
org.eclipse.graphiti.features.impl.AbstractAddFeature
org.eclipse.graphiti.features.impl.AbstractAddPictogramElementFeature
- All Implemented Interfaces:
IAddFeature,IFeature,IFeatureProviderHolder,IAdd,IDescription,IName
- Direct Known Subclasses:
AbstractAddShapeFeature
The Class AbstractAddPictogramElementFeature implements an add feature
especially for pictogram elements.
-
Field Summary
Fields inherited from class org.eclipse.graphiti.features.impl.AbstractAddFeature
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanChecks if the pictogram element could be updated.protected voidsetSizeAndLocation(GraphicsAlgorithm ga, int minWidth, int minHeight, IAreaContext context) This is a convenience method for layouting a graphics algorithm.protected booleanChecks if the pictogram element has to be updated.Methods inherited from class org.eclipse.graphiti.features.impl.AbstractAddFeature
canExecute, execute, getNameMethods inherited from class org.eclipse.graphiti.features.impl.AbstractFeature
addGraphicalRepresentation, canUndo, getAllBusinessObjectsForPictogramElement, getBusinessObjectForPictogramElement, getDescription, getDiagram, getDiagramBehavior, getFeatureProvider, getProgressCallback, getUserDecision, hasDoneChanges, isAvailable, layoutPictogramElement, link, link, manageColor, manageColor, manageDefaultFont, manageFont, manageFont, setProgressCallback, toString, updatePictogramElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.graphiti.IDescription
getDescriptionMethods inherited from interface org.eclipse.graphiti.features.IFeature
canUndo, hasDoneChanges, isAvailableMethods inherited from interface org.eclipse.graphiti.features.IFeatureProviderHolder
getFeatureProvider
-
Constructor Details
-
AbstractAddPictogramElementFeature
Creates a newAbstractAddPictogramElementFeature.- Parameters:
fp- the fp
-
-
Method Details
-
canUpdatePictogramElement
Checks if the pictogram element could be updated. This implementation asks the feature provider for available update features.- Parameters:
pe- the pictogram element- Returns:
- true, if the update could be processed
-
updatePictogramElementNeeded
Checks if the pictogram element has to be updated. This implementation asks the feature provider for available update features.- Parameters:
pe- the pe- Returns:
- true, if update pictogram element needed
-
setSizeAndLocation
protected void setSizeAndLocation(GraphicsAlgorithm ga, int minWidth, int minHeight, IAreaContext context) This is a convenience method for layouting a graphics algorithm.- Parameters:
ga- the gaminWidth- minimum widthminHeight- minimum heightcontext- the layout context
-