2012-05-21 20:32:26 +00:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< title > mxGraph: com::mxgraph::mxRectangle Class Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
<!-- Generated by Doxygen 1.6.3 -->
< div class = "navigation" id = "top" >
< div class = "tabs" >
< ul >
< li > < a href = "index.html" > < span > Main Page< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li > < a href = "dirs.html" > < span > Directories< / span > < / a > < / li >
< / ul >
< / div >
< div class = "tabs" >
< ul >
< li > < a href = "annotated.html" > < span > Class List< / span > < / a > < / li >
< li > < a href = "hierarchy.html" > < span > Class Hierarchy< / span > < / a > < / li >
< li > < a href = "functions.html" > < span > Class Members< / span > < / a > < / li >
< / ul >
< / div >
< div class = "navpath" > < b > com< / b > ::< b > mxgraph< / b > ::< a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html" > mxRectangle< / a >
< / div >
< / div >
< div class = "contents" >
< h1 > com::mxgraph::mxRectangle Class Reference< / h1 > <!-- doxytag: class="com::mxgraph::mxRectangle" --> <!-- doxytag: inherits="com::mxgraph::mxPoint" -->
< p > Implements a 2-dimensional rectangle with double precision coordinates.
< a href = "#_details" > More...< / a > < / p >
< div class = "dynheader" >
Inheritance diagram for com::mxgraph::mxRectangle:< / div >
< div class = "dynsection" >
< div class = "center" >
< img src = "classcom_1_1mxgraph_1_1mxRectangle.png" usemap = "#com::mxgraph::mxRectangle_map" alt = "" / >
< map id = "com::mxgraph::mxRectangle_map" name = "com::mxgraph::mxRectangle_map" >
< area href = "classcom_1_1mxgraph_1_1mxPoint.html" alt = "com::mxgraph::mxPoint" shape = "rect" coords = "88,0,254,24" / >
< area href = "classcom_1_1mxgraph_1_1mxCellState.html" alt = "com::mxgraph::mxCellState" shape = "rect" coords = "0,112,166,136" / >
< area href = "classcom_1_1mxgraph_1_1mxGeometry.html" alt = "com::mxgraph::mxGeometry" shape = "rect" coords = "176,112,342,136" / >
< / map >
< / div >
< / div >
< p > < a href = "classcom_1_1mxgraph_1_1mxRectangle-members.html" > List of all members.< / a > < / p >
< table border = "0" cellpadding = "0" cellspacing = "0" >
< tr > < td colspan = "2" > < h2 > Public Member Functions< / h2 > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#aa0520bc151eeecd7884c59fd7d5a4cd5" > mxRectangle< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Constructs a new rectangle at (0, 0) with the width and height set to 0. < a href = "#aa0520bc151eeecd7884c59fd7d5a4cd5" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#adad36fd17b2a6b569340abaf0114d673" > mxRectangle< / a > (< a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html" > mxRectangle< / a > rect)< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Constructs a copy of the given rectangle. < a href = "#adad36fd17b2a6b569340abaf0114d673" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#afa9fda9798994a6c2e1319878598b792" > mxRectangle< / a > (Rectangle rect)< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Constructs a copy of the given rectangle. < a href = "#afa9fda9798994a6c2e1319878598b792" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#a0de5be785fd18e109ff7eb9aed6ef2e9" > mxRectangle< / a > (double < a class = "el" href = "classcom_1_1mxgraph_1_1mxPoint.html#afc249ce7075359af93ac0001d719ff06" > x< / a > , double < a class = "el" href = "classcom_1_1mxgraph_1_1mxPoint.html#a48641b42a2187e4d6fedca61c359be77" > y< / a > , double < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#a62c3f92da547c942f319b6aecd71765c" > width< / a > , double < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#adb1bfc2cc3f1215b9357bdeda242a062" > height< / a > )< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Constructs a rectangle using the given parameters. < a href = "#a0de5be785fd18e109ff7eb9aed6ef2e9" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > void < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#adbcd79c0023233969be1e4ee0626118b" > setRect< / a > (double < a class = "el" href = "classcom_1_1mxgraph_1_1mxPoint.html#afc249ce7075359af93ac0001d719ff06" > x< / a > , double < a class = "el" href = "classcom_1_1mxgraph_1_1mxPoint.html#a48641b42a2187e4d6fedca61c359be77" > y< / a > , double w, double h)< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Sets this rectangle to the specified values. < a href = "#adbcd79c0023233969be1e4ee0626118b" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > double < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#a4c133c9e19ff56d3ee55aca15e93cdf0" > GetCenterX< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Returns the x-coordinate of the center. < a href = "#a4c133c9e19ff56d3ee55aca15e93cdf0" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > double < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#a94596cde2d663cd1746088eea215493f" > GetCenterY< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Returns the y-coordinate of the center. < a href = "#a94596cde2d663cd1746088eea215493f" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > void < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#a5e971cdff92e9e53071232dc80cbc8b0" > Add< / a > (< a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html" > mxRectangle< / a > rect)< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Adds the given rectangle to this rectangle. < a href = "#a5e971cdff92e9e53071232dc80cbc8b0" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > void < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#ad499030b067d0ee6e87af68542ec7115" > Grow< / a > (double amount)< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > 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. < a href = "#ad499030b067d0ee6e87af68542ec7115" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > bool < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#a3f76585b333bf7fe2d58ed38e8296b26" > Contains< / a > (double < a class = "el" href = "classcom_1_1mxgraph_1_1mxPoint.html#afc249ce7075359af93ac0001d719ff06" > x< / a > , double < a class = "el" href = "classcom_1_1mxgraph_1_1mxPoint.html#a48641b42a2187e4d6fedca61c359be77" > y< / a > )< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Returns true if this rectangle contains the given point (x, y). < a href = "#a3f76585b333bf7fe2d58ed38e8296b26" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > Rectangle < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#acdc68e90b0b634aacf6f3054ed71a97a" > GetRectangle< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Returns the bounds as a new rectangle. < a href = "#acdc68e90b0b634aacf6f3054ed71a97a" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > new Boolean < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#afa2600d85162a1db0129650b4e636448" > Equals< / a > (Object obj)< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Returns true if the given object equals this rectangle. < a href = "#afa2600d85162a1db0129650b4e636448" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > new < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html" > mxRectangle< / a > < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#aa9e9e649efa5ad7239db970ec735e846" > Clone< / a > ()< / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Returns a new instance of the same rectangle. < a href = "#aa9e9e649efa5ad7239db970ec735e846" > < / a > < br / > < / td > < / tr >
< tr > < td colspan = "2" > < h2 > Protected Attributes< / h2 > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > double < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#a62c3f92da547c942f319b6aecd71765c" > width< / a > < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Holds the width. Default is 0. < a href = "#a62c3f92da547c942f319b6aecd71765c" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > double < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#adb1bfc2cc3f1215b9357bdeda242a062" > height< / a > < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Holds the height. Default is 0. < a href = "#adb1bfc2cc3f1215b9357bdeda242a062" > < / a > < br / > < / td > < / tr >
< tr > < td colspan = "2" > < h2 > Properties< / h2 > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > double < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#afa76b4b8e9c6d7a4f6e6cecaf8c71b3d" > Width< / a > < code > [get, set]< / code > < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Sets or returns the width of the rectangle. < a href = "#afa76b4b8e9c6d7a4f6e6cecaf8c71b3d" > < / a > < br / > < / td > < / tr >
< tr > < td class = "memItemLeft" align = "right" valign = "top" > double < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#a32c0d49b1279c27fec655cb831240975" > Height< / a > < code > [get, set]< / code > < / td > < / tr >
< tr > < td class = "mdescLeft" > < / td > < td class = "mdescRight" > Sets or returns the height of the rectangle. < a href = "#a32c0d49b1279c27fec655cb831240975" > < / a > < br / > < / td > < / tr >
< / table >
< hr / > < a name = "_details" > < / a > < h2 > Detailed Description< / h2 >
< p > Implements a 2-dimensional rectangle with double precision coordinates. < / p >
< hr / > < h2 > Constructor & Destructor Documentation< / h2 >
< a class = "anchor" id = "aa0520bc151eeecd7884c59fd7d5a4cd5" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::mxRectangle" ref="aa0520bc151eeecd7884c59fd7d5a4cd5" args="()" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > com::mxgraph::mxRectangle::mxRectangle < / td >
< td > (< / td >
< td class = "paramname" > < / td >
< td > ) < / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Constructs a new rectangle at (0, 0) with the width and height set to 0. < / p >
< / div >
< / div >
< a class = "anchor" id = "adad36fd17b2a6b569340abaf0114d673" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::mxRectangle" ref="adad36fd17b2a6b569340abaf0114d673" args="(mxRectangle rect)" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > com::mxgraph::mxRectangle::mxRectangle < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html" > mxRectangle< / a > < / td >
< td class = "paramname" > < em > rect< / em > < / td >
< td > ) < / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Constructs a copy of the given rectangle. < / p >
< dl > < dt > < b > Parameters:< / b > < / dt > < dd >
< table border = "0" cellspacing = "2" cellpadding = "0" >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > rect< / em > < / td > < td > Rectangle to construct a copy of.< / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a class = "anchor" id = "afa9fda9798994a6c2e1319878598b792" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::mxRectangle" ref="afa9fda9798994a6c2e1319878598b792" args="(Rectangle rect)" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > com::mxgraph::mxRectangle::mxRectangle < / td >
< td > (< / td >
< td class = "paramtype" > Rectangle < / td >
< td class = "paramname" > < em > rect< / em > < / td >
< td > ) < / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Constructs a copy of the given rectangle. < / p >
< dl > < dt > < b > Parameters:< / b > < / dt > < dd >
< table border = "0" cellspacing = "2" cellpadding = "0" >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > rect< / em > < / td > < td > Rectangle to construct a copy of.< / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a class = "anchor" id = "a0de5be785fd18e109ff7eb9aed6ef2e9" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::mxRectangle" ref="a0de5be785fd18e109ff7eb9aed6ef2e9" args="(double x, double y, double width, double height)" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > com::mxgraph::mxRectangle::mxRectangle < / td >
< td > (< / td >
< td class = "paramtype" > double < / td >
< td class = "paramname" > < em > x< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > double < / td >
< td class = "paramname" > < em > y< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > double < / td >
< td class = "paramname" > < em > width< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > double < / td >
< td class = "paramname" > < em > height< / em > < / td > < td > < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td > < td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Constructs a rectangle using the given parameters. < / p >
< dl > < dt > < b > Parameters:< / b > < / dt > < dd >
< table border = "0" cellspacing = "2" cellpadding = "0" >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > x< / em > < / td > < td > X-coordinate of the new rectangle.< / td > < / tr >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > y< / em > < / td > < td > Y-coordinate of the new rectangle.< / td > < / tr >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > width< / em > < / td > < td > Width of the new rectangle.< / td > < / tr >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > height< / em > < / td > < td > Height of the new rectangle.< / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< hr / > < h2 > Member Function Documentation< / h2 >
< a class = "anchor" id = "a5e971cdff92e9e53071232dc80cbc8b0" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::Add" ref="a5e971cdff92e9e53071232dc80cbc8b0" args="(mxRectangle rect)" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void com::mxgraph::mxRectangle::Add < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html" > mxRectangle< / a > < / td >
< td class = "paramname" > < em > rect< / em > < / td >
< td > ) < / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Adds the given rectangle to this rectangle. < / p >
< / div >
< / div >
< a class = "anchor" id = "aa9e9e649efa5ad7239db970ec735e846" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::Clone" ref="aa9e9e649efa5ad7239db970ec735e846" args="()" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > new < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html" > mxRectangle< / a > com::mxgraph::mxRectangle::Clone < / td >
< td > (< / td >
< td class = "paramname" > < / td >
< td > ) < / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Returns a new instance of the same rectangle. < / p >
< dl class = "return" > < dt > < b > Returns:< / b > < / dt > < dd > Returns a clone of the rectangle.< / dd > < / dl >
< p > Reimplemented from < a class = "el" href = "classcom_1_1mxgraph_1_1mxPoint.html#a8c6344af8fbe69d3432fbb6018011a27" > com::mxgraph::mxPoint< / a > .< / p >
< p > Reimplemented in < a class = "el" href = "classcom_1_1mxgraph_1_1mxGeometry.html#a1bc5e0feb17c50f9bab5853af0e089f0" > com::mxgraph::mxGeometry< / a > , and < a class = "el" href = "classcom_1_1mxgraph_1_1mxCellState.html#a7a357573a28f227b884eb6a798b1c2df" > com::mxgraph::mxCellState< / a > .< / p >
< / div >
< / div >
< a class = "anchor" id = "a3f76585b333bf7fe2d58ed38e8296b26" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::Contains" ref="a3f76585b333bf7fe2d58ed38e8296b26" args="(double x, double y)" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > bool com::mxgraph::mxRectangle::Contains < / td >
< td > (< / td >
< td class = "paramtype" > double < / td >
< td class = "paramname" > < em > x< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > double < / td >
< td class = "paramname" > < em > y< / em > < / td > < td > < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td > < td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Returns true if this rectangle contains the given point (x, y). < / p >
< dl > < dt > < b > Parameters:< / b > < / dt > < dd >
< table border = "0" cellspacing = "2" cellpadding = "0" >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > x< / em > < / td > < td > X-coordinate of the point.< / td > < / tr >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > y< / em > < / td > < td > Y-coordinate of the point.< / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "return" > < dt > < b > Returns:< / b > < / dt > < dd > Returns true if (x, y) lies within the given area.< / dd > < / dl >
< / div >
< / div >
< a class = "anchor" id = "afa2600d85162a1db0129650b4e636448" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::Equals" ref="afa2600d85162a1db0129650b4e636448" args="(Object obj)" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > new Boolean com::mxgraph::mxRectangle::Equals < / td >
< td > (< / td >
< td class = "paramtype" > Object < / td >
< td class = "paramname" > < em > obj< / em > < / td >
< td > ) < / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Returns true if the given object equals this rectangle. < / p >
< dl class = "return" > < dt > < b > Returns:< / b > < / dt > < dd > Returns true if obj is equal.< / dd > < / dl >
< p > Reimplemented from < a class = "el" href = "classcom_1_1mxgraph_1_1mxPoint.html#a6a68cb2cfd1256e32bd4add2c5fc9aa1" > com::mxgraph::mxPoint< / a > .< / p >
< / div >
< / div >
< a class = "anchor" id = "a4c133c9e19ff56d3ee55aca15e93cdf0" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::GetCenterX" ref="a4c133c9e19ff56d3ee55aca15e93cdf0" args="()" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > double com::mxgraph::mxRectangle::GetCenterX < / td >
< td > (< / td >
< td class = "paramname" > < / td >
< td > ) < / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Returns the x-coordinate of the center. < / p >
< dl class = "return" > < dt > < b > Returns:< / b > < / dt > < dd > Returns the x-coordinate of the center.< / dd > < / dl >
< / div >
< / div >
< a class = "anchor" id = "a94596cde2d663cd1746088eea215493f" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::GetCenterY" ref="a94596cde2d663cd1746088eea215493f" args="()" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > double com::mxgraph::mxRectangle::GetCenterY < / td >
< td > (< / td >
< td class = "paramname" > < / td >
< td > ) < / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Returns the y-coordinate of the center. < / p >
< dl class = "return" > < dt > < b > Returns:< / b > < / dt > < dd > Returns the y-coordinate of the center.< / dd > < / dl >
< / div >
< / div >
< a class = "anchor" id = "acdc68e90b0b634aacf6f3054ed71a97a" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::GetRectangle" ref="acdc68e90b0b634aacf6f3054ed71a97a" args="()" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > Rectangle com::mxgraph::mxRectangle::GetRectangle < / td >
< td > (< / td >
< td class = "paramname" > < / td >
< td > ) < / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Returns the bounds as a new rectangle. < / p >
< dl class = "return" > < dt > < b > Returns:< / b > < / dt > < dd > Returns a new rectangle for the bounds.< / dd > < / dl >
< / div >
< / div >
< a class = "anchor" id = "ad499030b067d0ee6e87af68542ec7115" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::Grow" ref="ad499030b067d0ee6e87af68542ec7115" args="(double amount)" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void com::mxgraph::mxRectangle::Grow < / td >
< td > (< / td >
< td class = "paramtype" > double < / td >
< td class = "paramname" > < em > amount< / em > < / td >
< td > ) < / td >
< td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > 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. < / p >
< dl > < dt > < b > Parameters:< / b > < / dt > < dd >
< table border = "0" cellspacing = "2" cellpadding = "0" >
< tr > < td valign = "top" > < / td > < td valign = "top" > < em > amount< / em > < / td > < td > Amount by which the rectangle should be grown.< / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a class = "anchor" id = "adbcd79c0023233969be1e4ee0626118b" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::setRect" ref="adbcd79c0023233969be1e4ee0626118b" args="(double x, double y, double w, double h)" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void com::mxgraph::mxRectangle::setRect < / td >
< td > (< / td >
< td class = "paramtype" > double < / td >
< td class = "paramname" > < em > x< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > double < / td >
< td class = "paramname" > < em > y< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > double < / td >
< td class = "paramname" > < em > w< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > double < / td >
< td class = "paramname" > < em > h< / em > < / td > < td > < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td > < td > < code > [inline]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Sets this rectangle to the specified values. < / p >
< / div >
< / div >
< hr / > < h2 > Member Data Documentation< / h2 >
< a class = "anchor" id = "adb1bfc2cc3f1215b9357bdeda242a062" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::height" ref="adb1bfc2cc3f1215b9357bdeda242a062" args="" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > double < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#adb1bfc2cc3f1215b9357bdeda242a062" > com::mxgraph::mxRectangle::height< / a > < code > [protected]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Holds the height. Default is 0. < / p >
< / div >
< / div >
< a class = "anchor" id = "a62c3f92da547c942f319b6aecd71765c" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::width" ref="a62c3f92da547c942f319b6aecd71765c" args="" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > double < a class = "el" href = "classcom_1_1mxgraph_1_1mxRectangle.html#a62c3f92da547c942f319b6aecd71765c" > com::mxgraph::mxRectangle::width< / a > < code > [protected]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Holds the width. Default is 0. < / p >
< / div >
< / div >
< hr / > < h2 > Property Documentation< / h2 >
< a class = "anchor" id = "a32c0d49b1279c27fec655cb831240975" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::Height" ref="a32c0d49b1279c27fec655cb831240975" args="" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > double com::mxgraph::mxRectangle::Height< code > [get, set]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Sets or returns the height of the rectangle. < / p >
< / div >
< / div >
< a class = "anchor" id = "afa76b4b8e9c6d7a4f6e6cecaf8c71b3d" > < / a > <!-- doxytag: member="com::mxgraph::mxRectangle::Width" ref="afa76b4b8e9c6d7a4f6e6cecaf8c71b3d" args="" -->
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > double com::mxgraph::mxRectangle::Width< code > [get, set]< / code > < / td >
< / tr >
< / table >
< / div >
< div class = "memdoc" >
< p > Sets or returns the width of the rectangle. < / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > src/utils/mxRectangle.cs< / li >
< / ul >
< / div >
2013-01-16 09:00:09 +00:00
< hr class = "footer" / > < address style = "text-align: right;" > < small > Generated on Wed Jan 16 08:45:21 2013 for mxGraph by
2012-05-21 20:32:26 +00:00
< a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / > < / a > 1.6.3 < / small > < / address >
< / body >
< / html >