Package com.mxgraph.shape
Class mxRectangleShape
java.lang.Object
com.mxgraph.shape.mxBasicShape
com.mxgraph.shape.mxRectangleShape
- All Implemented Interfaces:
mxIShape
- Direct Known Subclasses:
mxImageShape
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getArcSize
(int w, int h) Computes the arc size for the given dimension.void
paintShape
(mxGraphics2DCanvas canvas, mxCellState state) Methods inherited from class com.mxgraph.shape.mxBasicShape
configureGraphics, createShape, getFillColor, getGradientBounds, getStrokeColor, hasGradient, hasShadow
-
Constructor Details
-
mxRectangleShape
public mxRectangleShape()
-
-
Method Details
-
paintShape
- Specified by:
paintShape
in interfacemxIShape
- Overrides:
paintShape
in classmxBasicShape
-
getArcSize
public int getArcSize(int w, int h) Computes the arc size for the given dimension.- Parameters:
w
- Width of the rectangle.h
- Height of the rectangle.- Returns:
- Returns the arc size for the given dimension.
-