Class AbstractTextMarkerShape

  • All Implemented Interfaces:
    com.mxgraph.shape.mxIShape
    Direct Known Subclasses:
    GoalMarkerShape, PlanMarkerShape

    public abstract class AbstractTextMarkerShape
    extends com.mxgraph.shape.mxActorShape
    Abstract implementation for a text-based node marker.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract java.lang.String getText​(com.mxgraph.view.mxCellState state)
      Returns the text for the marker.
      void paintShape​(com.mxgraph.canvas.mxGraphics2DCanvas canvas, com.mxgraph.view.mxCellState state)
      Paints the shape.
      • Methods inherited from class com.mxgraph.shape.mxActorShape

        createShape
      • Methods inherited from class com.mxgraph.shape.mxBasicShape

        configureGraphics, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractTextMarkerShape

        public AbstractTextMarkerShape()
    • Method Detail

      • paintShape

        public void paintShape​(com.mxgraph.canvas.mxGraphics2DCanvas canvas,
                               com.mxgraph.view.mxCellState state)
        Paints the shape.
        Specified by:
        paintShape in interface com.mxgraph.shape.mxIShape
        Overrides:
        paintShape in class com.mxgraph.shape.mxBasicShape
      • getText

        protected abstract java.lang.String getText​(com.mxgraph.view.mxCellState state)
        Returns the text for the marker.
        Parameters:
        state - The cell state.
        Returns:
        Text of the marker.