public class mxBasicShape extends Object implements mxIShape
Constructor and Description |
---|
mxBasicShape() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
configureGraphics(mxGraphics2DCanvas canvas,
mxCellState state,
boolean background)
Configures the graphics object ready to paint.
|
Shape |
createShape(mxGraphics2DCanvas canvas,
mxCellState state) |
Color |
getFillColor(mxGraphics2DCanvas canvas,
mxCellState state) |
protected mxRectangle |
getGradientBounds(mxGraphics2DCanvas canvas,
mxCellState state) |
Color |
getStrokeColor(mxGraphics2DCanvas canvas,
mxCellState state) |
boolean |
hasGradient(mxGraphics2DCanvas canvas,
mxCellState state) |
boolean |
hasShadow(mxGraphics2DCanvas canvas,
mxCellState state) |
void |
paintShape(mxGraphics2DCanvas canvas,
mxCellState state) |
public void paintShape(mxGraphics2DCanvas canvas, mxCellState state)
paintShape
in interface mxIShape
public Shape createShape(mxGraphics2DCanvas canvas, mxCellState state)
protected boolean configureGraphics(mxGraphics2DCanvas canvas, mxCellState state, boolean background)
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 paintprotected mxRectangle getGradientBounds(mxGraphics2DCanvas canvas, mxCellState state)
public boolean hasGradient(mxGraphics2DCanvas canvas, mxCellState state)
public boolean hasShadow(mxGraphics2DCanvas canvas, mxCellState state)
public Color getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
public Color getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.