Class AbstractAddPictogramElementFeature

All Implemented Interfaces:
IAddFeature, IFeature, IFeatureProviderHolder, IAdd, IDescription, IName
Direct Known Subclasses:
AbstractAddShapeFeature

public abstract class AbstractAddPictogramElementFeature extends AbstractAddFeature
The Class AbstractAddPictogramElementFeature implements an add feature especially for pictogram elements.
  • Constructor Details

  • Method Details

    • canUpdatePictogramElement

      protected boolean canUpdatePictogramElement(PictogramElement pe)
      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

      protected boolean updatePictogramElementNeeded(PictogramElement pe)
      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 ga
      minWidth - minimum width
      minHeight - minimum height
      context - the layout context