Class EventShape

  • All Implemented Interfaces:
    com.mxgraph.shape.mxIShape

    public class EventShape
    extends com.mxgraph.shape.mxEllipseShape
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static double BIG_HAND_POS
      Position of the clock's big hand in radians.
      protected static double[] CLOCK_SIN_TABLE
      Sine value lookups for clock shape.
      protected static double INNER_CIRCLE_RATIO
      Inner circle ratio for creating double/fat circles.
      protected static double[] PENTAGON_COS_TABLE
      Cosine value lookups for pentagon shape.
      protected static double[] PENTAGON_SIN_TABLE
      Sine value lookups for pentagon shape.
      protected static double SQRT33
      Constant for triangle calculation.
    • Constructor Summary

      Constructors 
      Constructor Description
      EventShape()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.Shape getBackArrowsShape​(double x, double y, double w, double h)
      Creates a back arrows shape.
      static java.awt.Shape getBoltShape​(double x, double y, double w, double h)
      Creates a lightning bolt shape.
      static java.awt.Shape getCircleShape​(double x, double y, double w, double h)
      Creates a circle shape.
      static java.awt.Shape getClockShape​(double x, double y, double w, double h)
      Creates a clock shape.
      static java.awt.Shape getLetterShape​(double x, double y, double w, double h)
      Creates a letter shape.
      static java.awt.Shape getPageShape​(double x, double y, double w, double h)
      Creates a page shape.
      static java.awt.Shape getPentagonShape​(double x, double y, double w, double h)
      Creates a pentagon shape.
      static java.awt.Shape getTriangleShape​(double x, double y, double w, double h)
      Creates a triangle shape.
      static java.awt.Shape getXCrossShape​(double x, double y, double w, double h)
      Creates an x-cross shape.
      void paintShape​(com.mxgraph.canvas.mxGraphics2DCanvas canvas, com.mxgraph.view.mxCellState state)
      Paints the shape.
      • Methods inherited from class com.mxgraph.shape.mxEllipseShape

        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
    • Field Detail

      • INNER_CIRCLE_RATIO

        protected static final double INNER_CIRCLE_RATIO
        Inner circle ratio for creating double/fat circles.
        See Also:
        Constant Field Values
      • CLOCK_SIN_TABLE

        protected static final double[] CLOCK_SIN_TABLE
        Sine value lookups for clock shape.
      • PENTAGON_SIN_TABLE

        protected static final double[] PENTAGON_SIN_TABLE
        Sine value lookups for pentagon shape.
      • PENTAGON_COS_TABLE

        protected static final double[] PENTAGON_COS_TABLE
        Cosine value lookups for pentagon shape.
      • BIG_HAND_POS

        protected static final double BIG_HAND_POS
        Position of the clock's big hand in radians.
        See Also:
        Constant Field Values
      • SQRT33

        protected static final double SQRT33
        Constant for triangle calculation.
    • Constructor Detail

      • EventShape

        public EventShape()
    • 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
      • getLetterShape

        public static final java.awt.Shape getLetterShape​(double x,
                                                          double y,
                                                          double w,
                                                          double h)
        Creates a letter shape.
        Parameters:
        x - X-position.
        y - Y-position.
        w - Width.
        h - Height.
        Returns:
        The shape.
      • getClockShape

        public static final java.awt.Shape getClockShape​(double x,
                                                         double y,
                                                         double w,
                                                         double h)
        Creates a clock shape.
        Parameters:
        x - X-position.
        y - Y-position.
        w - Width.
        h - Height.
        Returns:
        The shape.
      • getPageShape

        public static final java.awt.Shape getPageShape​(double x,
                                                        double y,
                                                        double w,
                                                        double h)
        Creates a page shape.
        Parameters:
        x - X-position.
        y - Y-position.
        w - Width.
        h - Height.
        Returns:
        The shape.
      • getTriangleShape

        public static final java.awt.Shape getTriangleShape​(double x,
                                                            double y,
                                                            double w,
                                                            double h)
        Creates a triangle shape.
        Parameters:
        x - X-position.
        y - Y-position.
        w - Width.
        h - Height.
        Returns:
        The shape.
      • getCircleShape

        public static final java.awt.Shape getCircleShape​(double x,
                                                          double y,
                                                          double w,
                                                          double h)
        Creates a circle shape.
        Parameters:
        x - X-position.
        y - Y-position.
        w - Width.
        h - Height.
        Returns:
        The shape.
      • getPentagonShape

        public static final java.awt.Shape getPentagonShape​(double x,
                                                            double y,
                                                            double w,
                                                            double h)
        Creates a pentagon shape.
        Parameters:
        x - X-position.
        y - Y-position.
        w - Width.
        h - Height.
        Returns:
        The shape.
      • getBoltShape

        public static final java.awt.Shape getBoltShape​(double x,
                                                        double y,
                                                        double w,
                                                        double h)
        Creates a lightning bolt shape.
        Parameters:
        x - X-position.
        y - Y-position.
        w - Width.
        h - Height.
        Returns:
        The shape.
      • getBackArrowsShape

        public static final java.awt.Shape getBackArrowsShape​(double x,
                                                              double y,
                                                              double w,
                                                              double h)
        Creates a back arrows shape.
        Parameters:
        x - X-position.
        y - Y-position.
        w - Width.
        h - Height.
        Returns:
        The shape.
      • getXCrossShape

        public static final java.awt.Shape getXCrossShape​(double x,
                                                          double y,
                                                          double w,
                                                          double h)
        Creates an x-cross shape.
        Parameters:
        x - X-position.
        y - Y-position.
        w - Width.
        h - Height.
        Returns:
        The shape.