public class mxBasicShape extends java.lang.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.
|
java.awt.Shape |
createShape(mxGraphics2DCanvas canvas,
mxCellState state) |
java.awt.Color |
getFillColor(mxGraphics2DCanvas canvas,
mxCellState state) |
protected mxRectangle |
getGradientBounds(mxGraphics2DCanvas canvas,
mxCellState state) |
java.awt.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 java.awt.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 java.awt.Color getFillColor(mxGraphics2DCanvas canvas, mxCellState state)
public java.awt.Color getStrokeColor(mxGraphics2DCanvas canvas, mxCellState state)
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.