Class CustomContext

All Implemented Interfaces:
IContext, ICustomContext, ILocationContext, IPropertyBag
Direct Known Subclasses:
AbstractClickContext

public class CustomContext extends LocationContext implements ICustomContext
The Class CustomContext.
  • Constructor Details

    • CustomContext

      public CustomContext()
      Creates a new CustomContext.
    • CustomContext

      public CustomContext(PictogramElement[] pictogramElements)
      Creates a new CustomContext.
      Parameters:
      pictogramElements - the pictogram elements
  • Method Details

    • getInnerGraphicsAlgorithm

      public GraphicsAlgorithm getInnerGraphicsAlgorithm()
      Description copied from interface: ICustomContext
      Gets the inner graphics algorithm.
      Specified by:
      getInnerGraphicsAlgorithm in interface ICustomContext
      Returns:
      the graphics algorithm at the mouse click position
    • getInnerPictogramElement

      public PictogramElement getInnerPictogramElement()
      Description copied from interface: ICustomContext
      Gets the inner pictogram element.
      Specified by:
      getInnerPictogramElement in interface ICustomContext
      Returns:
      the pictogram element at the mouse click position
    • getPictogramElements

      public PictogramElement[] getPictogramElements()
      Description copied from interface: ICustomContext
      Gets the pictogram elements.
      Specified by:
      getPictogramElements in interface ICustomContext
      Returns:
      the currently selected pictogram elements
    • setInnerGraphicsAlgorithm

      public void setInnerGraphicsAlgorithm(GraphicsAlgorithm innerGraphicsAlgorithm)
      Sets the inner graphics algorithm.
      Parameters:
      innerGraphicsAlgorithm - the new inner graphics algorithm
    • setInnerPictogramElement

      public void setInnerPictogramElement(PictogramElement innerPictogramElement)
      Sets the inner pictogram element.
      Parameters:
      innerPictogramElement - the new inner pictogram element
    • setPictogramElements

      public void setPictogramElements(PictogramElement[] pictogramElements)
      Sets the pictogram elements.
      Parameters:
      pictogramElements - The pictogramElements to set.
    • toString

      public String toString()
      Overrides:
      toString in class LocationContext