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.
References com.mxgraph.mxRectangle.height, com.mxgraph.mxRectangle.width, com.mxgraph.mxPoint.x, and com.mxgraph.mxPoint.y.
Referenced by com.mxgraph.mxGraphView.GetBoundingBox(), com.mxgraph.mxUtils.GetBoundingBox(), com.mxgraph.mxGraphView.GetBounds(), com.mxgraph.mxGraph.GetBoundsForCells(), com.mxgraph.mxGraph.GetCellBounds(), and com.mxgraph.mxGraphView.UpdateBoundingBox().
|
inline |
Returns a new instance of the same rectangle.
Referenced by com.mxgraph.mxCellState.Clone(), com.mxgraph.mxGraphView.GetBoundingBox(), and com.mxgraph.mxGeometry.mxGeometry().
|
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.
References com.mxgraph.mxRectangle.Height, com.mxgraph.mxRectangle.Width, com.mxgraph.mxPoint.X, and com.mxgraph.mxPoint.Y.
Referenced by com.mxgraph.mxUtils.GetLabelPaintBounds().
|
inline |
Returns the x-coordinate of the center.
Referenced by com.mxgraph.mxGraphView.GetNextPoint(), com.mxgraph.mxGraphView.GetPoint(), com.mxgraph.mxGraphView.GetRoutingCenterX(), and com.mxgraph.mxStencil.PaintShape().
|
inline |
Returns the y-coordinate of the center.
Referenced by com.mxgraph.mxGraphView.GetNextPoint(), com.mxgraph.mxGraphView.GetPoint(), com.mxgraph.mxGraphView.GetRoutingCenterY(), and com.mxgraph.mxStencil.PaintShape().
|
inline |
Returns the bounds as a new rectangle.
Referenced by com.mxgraph.mxGdiCanvas.DrawCell(), com.mxgraph.mxCellRenderer.DrawCells(), com.mxgraph.mxGdiCanvas.DrawLabel(), com.mxgraph.mxGraph.DrawState(), com.mxgraph.mxGraph.HitsSwimlaneContent(), 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. |
Referenced by com.mxgraph.mxCellState.GetPerimeterBounds(), com.mxgraph.mxGraph.Intersects(), and com.mxgraph.mxGraphView.UpdateBoundingBox().
|
inline |
Sets this rectangle to the specified values
|
protected |
Holds the height. Default is 0.
Referenced by com.mxgraph.mxRectangle.Add(), and com.mxgraph.mxCellState.Clone().
|
protected |
Holds the width. Default is 0.
Referenced by com.mxgraph.mxRectangle.Add(), and com.mxgraph.mxCellState.Clone().
|
getset |
Sets or returns the height of the rectangle.
Referenced by com.mxgraph.mxStencil.ComputeAspect(), com.mxgraph.mxGraphViewImageReader.CreateCanvas(), com.mxgraph.mxCellRenderer.DrawCells(), com.mxgraph.mxStencil.DrawElement(), com.mxgraph.mxStencil.DrawShape(), com.mxgraph.mxRectangle.Equals(), com.mxgraph.mxFastOrganicLayout.execute(), com.mxgraph.mxUtils.GetBoundingBox(), com.mxgraph.mxGraph.GetConnectionPoint(), com.mxgraph.mxUtils.GetLabelPaintBounds(), com.mxgraph.mxGraphView.GetPerimeterPoint(), com.mxgraph.mxGraphView.GetRoutingCenterY(), com.mxgraph.mxUtils.GetScaledLabelBounds(), com.mxgraph.mxStencil.PaintShape(), com.mxgraph.mxGraphViewReader.ParseState(), com.mxgraph.mxGraphView.UpdateBoundingBox(), com.mxgraph.mxGraphView.UpdateCellState(), com.mxgraph.mxGraphView.UpdateEdgeBounds(), and com.mxgraph.mxGraphView.UpdateVertexLabelOffset().
|
getset |
Sets or returns the width of the rectangle.
Referenced by com.mxgraph.mxStencil.ComputeAspect(), com.mxgraph.mxGraphViewImageReader.CreateCanvas(), com.mxgraph.mxCellRenderer.DrawCells(), com.mxgraph.mxStencil.DrawElement(), com.mxgraph.mxStencil.DrawShape(), com.mxgraph.mxRectangle.Equals(), com.mxgraph.mxFastOrganicLayout.execute(), com.mxgraph.mxUtils.GetBoundingBox(), com.mxgraph.mxGraph.GetConnectionPoint(), com.mxgraph.mxUtils.GetLabelPaintBounds(), com.mxgraph.mxGraphView.GetPerimeterPoint(), com.mxgraph.mxGraphView.GetRoutingCenterX(), com.mxgraph.mxUtils.GetScaledLabelBounds(), com.mxgraph.mxStencil.PaintShape(), com.mxgraph.mxGraphViewReader.ParseState(), com.mxgraph.mxGraphView.UpdateBoundingBox(), com.mxgraph.mxGraphView.UpdateCellState(), com.mxgraph.mxGraphView.UpdateEdgeBounds(), and com.mxgraph.mxGraphView.UpdateVertexLabelOffset().