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 booleanconfigureGraphics(mxGraphics2DCanvas canvas, mxCellState state, boolean background) Configures the graphics object ready to paint.createShape(mxGraphics2DCanvas canvas, mxCellState state) getFillColor(mxGraphics2DCanvas canvas, mxCellState state) protected mxRectanglegetGradientBounds(mxGraphics2DCanvas canvas, mxCellState state) getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state) booleanhasGradient(mxGraphics2DCanvas canvas, mxCellState state) booleanhasShadow(mxGraphics2DCanvas canvas, mxCellState state) voidpaintShape(mxGraphics2DCanvas canvas, mxCellState state)
-
Constructor Details
-
mxBasicShape
public mxBasicShape()
-
-
Method Details
-
paintShape
- Specified by:
paintShapein 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
-