public class EventShape
extends com.mxgraph.shape.mxEllipseShape
| Modifier and Type | Field and 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 and Description |
|---|
EventShape() |
| Modifier and Type | Method and 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.
|
protected static final double INNER_CIRCLE_RATIO
protected static final double[] CLOCK_SIN_TABLE
protected static final double[] PENTAGON_SIN_TABLE
protected static final double[] PENTAGON_COS_TABLE
protected static final double BIG_HAND_POS
protected static final double SQRT33
public void paintShape(com.mxgraph.canvas.mxGraphics2DCanvas canvas,
com.mxgraph.view.mxCellState state)
paintShape in interface com.mxgraph.shape.mxIShapepaintShape in class com.mxgraph.shape.mxBasicShapepublic static final java.awt.Shape getLetterShape(double x,
double y,
double w,
double h)
x - X-position.y - Y-position.w - Width.h - Height.public static final java.awt.Shape getClockShape(double x,
double y,
double w,
double h)
x - X-position.y - Y-position.w - Width.h - Height.public static final java.awt.Shape getPageShape(double x,
double y,
double w,
double h)
x - X-position.y - Y-position.w - Width.h - Height.public static final java.awt.Shape getTriangleShape(double x,
double y,
double w,
double h)
x - X-position.y - Y-position.w - Width.h - Height.public static final java.awt.Shape getCircleShape(double x,
double y,
double w,
double h)
x - X-position.y - Y-position.w - Width.h - Height.public static final java.awt.Shape getPentagonShape(double x,
double y,
double w,
double h)
x - X-position.y - Y-position.w - Width.h - Height.public static final java.awt.Shape getBoltShape(double x,
double y,
double w,
double h)
x - X-position.y - Y-position.w - Width.h - Height.public static final java.awt.Shape getBackArrowsShape(double x,
double y,
double w,
double h)
x - X-position.y - Y-position.w - Width.h - Height.public static final java.awt.Shape getXCrossShape(double x,
double y,
double w,
double h)
x - X-position.y - Y-position.w - Width.h - Height.