mxGraph
|
Implements a 2-dimensional rectangle with double precision coordinates. More...
Public Member Functions | |
mxRectangle () | |
Constructs a new rectangle at (0, 0) with the width and height set to 0. More... | |
mxRectangle (mxRectangle rect) | |
Constructs a copy of the given rectangle. More... | |
mxRectangle (Rectangle rect) | |
Constructs a copy of the given rectangle. More... | |
mxRectangle (double x, double y, double width, double height) | |
Constructs a rectangle using the given parameters. More... | |
void | setRect (double x, double y, double w, double h) |
Sets this rectangle to the specified values More... | |
double | GetCenterX () |
Returns the x-coordinate of the center. More... | |
double | GetCenterY () |
Returns the y-coordinate of the center. More... | |
void | Add (mxRectangle rect) |
Adds the given rectangle to this rectangle. More... | |
void | Grow (double amount) |
Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height. More... | |
bool | Contains (double x, double y) |
Returns true if this rectangle contains the given point (x, y). More... | |
Rectangle | GetRectangle () |
Returns the bounds as a new rectangle. More... | |
new Boolean | Equals (Object obj) |
Returns true if the given object equals this rectangle. More... | |
new mxRectangle | Clone () |
Returns a new instance of the same rectangle. More... | |
Public Member Functions inherited from com.mxgraph.mxPoint | |
mxPoint () | |
Constructs a new point at (0, 0). More... | |
mxPoint (Point point) | |
Constructs a new point at the location of the given point. More... | |
mxPoint (mxPoint point) | |
Constructs a new point at the location of the given point. More... | |
mxPoint (double x, double y) | |
Constructs a new point at (x, y). More... | |
Point | GetPoint () |
Returns the coordinates as a new point. More... | |
new Boolean | Equals (Object obj) |
Returns true if the given object equals this point. More... | |
mxPoint | Clone () |
Returns a new instance of the same point. More... | |
Protected Attributes | |
double | width |
Holds the width. Default is 0. More... | |
double | height |
Holds the height. Default is 0. More... | |
Protected Attributes inherited from com.mxgraph.mxPoint | |
double | x |
Holds the x-coordinate of the point. Default is 0. More... | |
double | y |
Holds the y-coordinate of the point. Default is 0. More... | |
Properties | |
double | Width [get, set] |
Sets or returns the width of the rectangle. More... | |
double | Height [get, set] |
Sets or returns the height of the rectangle. More... | |
Properties inherited from com.mxgraph.mxPoint | |
double | X [get, set] |
Sets or returns the x-coordinate of the point. More... | |
double | Y [get, set] |
Sets or returns the y-coordinate of the point. More... | |
Implements a 2-dimensional rectangle with double precision coordinates.
|
inline |
Constructs a new rectangle at (0, 0) with the width and height set to 0.
|
inline |
Constructs a copy of the given rectangle.
rect | Rectangle to construct a copy of. |
|
inline |
Constructs a copy of the given rectangle.
rect | Rectangle to construct a copy of. |
|
inline |
Constructs a rectangle using the given parameters.
x | X-coordinate of the new rectangle. |
y | Y-coordinate of the new rectangle. |
width | Width of the new rectangle. |
height | Height of the new rectangle. |
|
inline |
Adds the given rectangle to this rectangle.
|
inline |
Returns a new instance of the same rectangle.
Referenced by com.mxgraph.mxGraphView.GetBoundingBox().
|
inline |
Returns true if this rectangle contains the given point (x, y).
x | X-coordinate of the point. |
y | Y-coordinate of the point. |
|
inline |
Returns true if the given object equals this rectangle.
|
inline |
Returns the x-coordinate of the center.
Referenced by com.mxgraph.mxGraphView.GetNextPoint().
|
inline |
Returns the y-coordinate of the center.
Referenced by com.mxgraph.mxStencil.PaintShape().
|
inline |
Returns the bounds as a new rectangle.
Referenced by com.mxgraph.mxGdiCanvas.DrawLabel(), com.mxgraph.mxGraph.DrawState(), com.mxgraph.mxGraph.Intersects(), and com.mxgraph.mxGraphView.UpdateBoundingBox().
|
inline |
Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height.
amount | Amount by which the rectangle should be grown. |
|
inline |
Sets this rectangle to the specified values
|
protected |
Holds the height. Default is 0.
|
protected |
Holds the width. Default is 0.
|
getset |
Sets or returns the height of the rectangle.
Referenced by com.mxgraph.mxCellRenderer.DrawCells(), com.mxgraph.mxUtils.GetBoundingBox(), com.mxgraph.mxGraph.GetConnectionPoint(), com.mxgraph.mxUtils.GetLabelPaintBounds(), com.mxgraph.mxGraphView.GetPerimeterPoint(), and com.mxgraph.mxGraphView.GetRoutingCenterY().
|
getset |
Sets or returns the width of the rectangle.
Referenced by com.mxgraph.mxGraphViewImageReader.CreateCanvas(), com.mxgraph.mxCellRenderer.DrawCells(), com.mxgraph.mxUtils.GetBoundingBox(), com.mxgraph.mxGraph.GetConnectionPoint(), com.mxgraph.mxUtils.GetLabelPaintBounds(), com.mxgraph.mxGraphView.GetPerimeterPoint(), and com.mxgraph.mxGraphView.GetRoutingCenterX().