Package com.mxgraph.shape
Class mxBasicShape
java.lang.Object
com.mxgraph.shape.mxBasicShape
- All Implemented Interfaces:
mxIShape
- Direct Known Subclasses:
mxActorShape
,mxArrowShape
,mxCloudShape
,mxConnectorShape
,mxCylinderShape
,mxEllipseShape
,mxHexagonShape
,mxLineShape
,mxRectangleShape
,mxRhombusShape
,mxStencilShape
,mxSwimlaneShape
,mxTriangleShape
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
configureGraphics
(mxGraphics2DCanvas canvas, mxCellState state, boolean background) Configures the graphics object ready to paint.createShape
(mxGraphics2DCanvas canvas, mxCellState state) getFillColor
(mxGraphics2DCanvas canvas, mxCellState state) protected mxRectangle
getGradientBounds
(mxGraphics2DCanvas canvas, mxCellState state) getStrokeColor
(mxGraphics2DCanvas canvas, mxCellState state) boolean
hasGradient
(mxGraphics2DCanvas canvas, mxCellState state) boolean
hasShadow
(mxGraphics2DCanvas canvas, mxCellState state) void
paintShape
(mxGraphics2DCanvas canvas, mxCellState state)
-
Constructor Details
-
mxBasicShape
public mxBasicShape()
-
-
Method Details
-
paintShape
- Specified by:
paintShape
in interfacemxIShape
-
createShape
-
configureGraphics
protected boolean configureGraphics(mxGraphics2DCanvas canvas, mxCellState state, boolean background) Configures the graphics object ready to paint.- Parameters:
canvas
- the canvas to be painted tostate
- the state of cell to be paintedbackground
- whether or not this is the background stage of the shape paint- Returns:
- whether or not the shape is ready to be drawn
-
getGradientBounds
-
hasGradient
-
hasShadow
-
getFillColor
-
getStrokeColor
-