Class EventShape
- java.lang.Object
-
- com.mxgraph.shape.mxBasicShape
-
- com.mxgraph.shape.mxEllipseShape
-
- jadex.bpmn.editor.gui.stylesheets.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 doubleBIG_HAND_POSPosition of the clock's big hand in radians.protected static double[]CLOCK_SIN_TABLESine value lookups for clock shape.protected static doubleINNER_CIRCLE_RATIOInner circle ratio for creating double/fat circles.protected static double[]PENTAGON_COS_TABLECosine value lookups for pentagon shape.protected static double[]PENTAGON_SIN_TABLESine value lookups for pentagon shape.protected static doubleSQRT33Constant 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.ShapegetBackArrowsShape(double x, double y, double w, double h)Creates a back arrows shape.static java.awt.ShapegetBoltShape(double x, double y, double w, double h)Creates a lightning bolt shape.static java.awt.ShapegetCircleShape(double x, double y, double w, double h)Creates a circle shape.static java.awt.ShapegetClockShape(double x, double y, double w, double h)Creates a clock shape.static java.awt.ShapegetLetterShape(double x, double y, double w, double h)Creates a letter shape.static java.awt.ShapegetPageShape(double x, double y, double w, double h)Creates a page shape.static java.awt.ShapegetPentagonShape(double x, double y, double w, double h)Creates a pentagon shape.static java.awt.ShapegetTriangleShape(double x, double y, double w, double h)Creates a triangle shape.static java.awt.ShapegetXCrossShape(double x, double y, double w, double h)Creates an x-cross shape.voidpaintShape(com.mxgraph.canvas.mxGraphics2DCanvas canvas, com.mxgraph.view.mxCellState state)Paints the shape.
-
-
-
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.
-
-
Method Detail
-
paintShape
public void paintShape(com.mxgraph.canvas.mxGraphics2DCanvas canvas, com.mxgraph.view.mxCellState state)Paints the shape.- Specified by:
paintShapein interfacecom.mxgraph.shape.mxIShape- Overrides:
paintShapein classcom.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.
-
-