Represents the geometry of a cell. For vertices, the geometry consists of the x- and y-location, as well as the width and height. For edges, the edge either defines the source- and target-terminal, or the geometry defines the respective terminal points.
|public static $TRANSLATE_CONTROL_POINTS|
Global switch to translate the points in translate. Default is true.
Stores alternate values for x, y, width and height in a rectangle. Default is null.
Defines the source point of the edge. This is used if the corresponding edge does not have a source vertex. Otherwise it is ignored. Default is null.
Defines the target point of the edge. This is used if the corresponding edge does not have a target vertex. Otherwise it is ignored. Default is null.
Array of mxPoints which specifies the control points along the edge. These points are the intermediate points on the edge, for the endpoints use targetPoint and sourcePoint or set the terminals of the edge to a non-null value. Default is null.
Holds the offset of the label for edges. This is the absolute vector between the center of the edge and the top, left point of the label. Default is null.
Specifies if the coordinates in the geometry are to be interpreted as relative coordinates. Default is false. This is used to mark a geometry with an x- and y-coordinate that is used to describe an edge label position.
|function mxGeometry(||$x|| = ||0,|
|$y|| = ||0,|
|$width|| = ||0,|
|$height|| = ||0||)|
Constructs a new object to describe the size and location of a vertex or the control points of an edge.
Returns the mxPoint representing the source or target point of this edge. This is only used if the edge has no source or target vertex.
|isSource||Boolean that specifies if the source or target point should be returned.|
Sets the sourcePoint or targetPoint to the given mxPoint and returns the new point.
|point||Point to be used as the new source or target point.|
|isSource||Boolean that specifies if the source or target point should be set.|
Translates the geometry by the specified amount. That is, <x> and <y> of the geometry, the sourcePoint, targetPoint and all elements of points are translated by the given amount. <x> and <y> are only translated if relative is false. If TRANSLATE_CONTROL_POINTS is false, then points are not modified by this function.
|dx||Integer that specifies the x-coordinate of the translation.|
|dy||Integer that specifies the y-coordinate of the translation.|