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 SummaryFields 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 SummaryConstructors Constructor Description EventShape()
 - 
Method SummaryAll 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_RATIOprotected static final double INNER_CIRCLE_RATIO Inner circle ratio for creating double/fat circles.- See Also:
- Constant Field Values
 
 - 
CLOCK_SIN_TABLEprotected static final double[] CLOCK_SIN_TABLE Sine value lookups for clock shape.
 - 
PENTAGON_SIN_TABLEprotected static final double[] PENTAGON_SIN_TABLE Sine value lookups for pentagon shape.
 - 
PENTAGON_COS_TABLEprotected static final double[] PENTAGON_COS_TABLE Cosine value lookups for pentagon shape.
 - 
BIG_HAND_POSprotected static final double BIG_HAND_POS Position of the clock's big hand in radians.- See Also:
- Constant Field Values
 
 - 
SQRT33protected static final double SQRT33 Constant for triangle calculation.
 
- 
 - 
Method Detail- 
paintShapepublic void paintShape(com.mxgraph.canvas.mxGraphics2DCanvas canvas, com.mxgraph.view.mxCellState state)Paints the shape.- Specified by:
- paintShapein interface- com.mxgraph.shape.mxIShape
- Overrides:
- paintShapein class- com.mxgraph.shape.mxBasicShape
 
 - 
getLetterShapepublic 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.
 
 - 
getClockShapepublic 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.
 
 - 
getPageShapepublic 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.
 
 - 
getTriangleShapepublic 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.
 
 - 
getCircleShapepublic 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.
 
 - 
getPentagonShapepublic 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.
 
 - 
getBoltShapepublic 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.
 
 - 
getBackArrowsShapepublic 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.
 
 - 
getXCrossShapepublic 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.
 
 
- 
 
-