Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.awt.geom.Point2D.Double point,
double epsilon)
Finds whether the point lies inside the bounds of the container rectangle, including sides.
|
InsideLabel |
createInsideLabel(java.awt.geom.Rectangle2D.Double rectangle,
double spacing)
Creates a new inside label as a child of this container.
|
InsideLabel |
createInsideLabel(java.awt.geom.Rectangle2D.Double rectangle,
LayoutConstraints.ConstraintType constraintType,
double spacing)
Creates a new inside label as a child of this container.
|
InsideLabel |
createInsideLabel(java.awt.geom.Rectangle2D.Double rectangle,
LayoutConstraints.ConstraintType constraintType,
double spacing,
java.lang.Integer row,
java.lang.Integer column)
Creates a new inside label as a child of this container.
|
java.awt.geom.Rectangle2D.Double |
findDescendantEnclosingRectangle()
Finds the smallest rectangle containing all of the container's children, including the
spacing of the children.
|
java.awt.geom.Rectangle2D.Double |
findNextRectangleEnclosingRectangle()
Finds the smallest rectangle containing all of the container's direct descendant rectangular
container, including the spacing of the rectangles.
|
double |
getBottom()
Returns the ordinate of the bottom side of the container rectangle.
|
java.awt.geom.Rectangle2D.Double |
getBounds()
Returns the bounding rectangle of the container.
|
java.awt.geom.Point2D.Double |
getCenter()
Returns the center point of the container rectangle.
|
double |
getCenterX()
Returns the center X of the bounding rectangle
|
double |
getCenterY()
Returns the center Y of the bounding rectangle
|
double |
getHeight()
Returns the current height of the container rectangle.
|
java.util.ArrayList<InsideLabel> |
getInsideLabels()
Returns the outside labels of this container.
|
LayoutConstraints |
getLayoutConstraints()
Gets the layout manager of this container.
|
double |
getLeft()
Returns the abscissa of the left side of the container rectangle.
|
double |
getMinHeight()
Returns the minimum height of the container rectangle.
|
double |
getMinWidth()
Returns the minimum width of the container rectangle.
|
double |
getRight()
Returns the abscissa of the right side of the container rectangle.
|
double |
getTop()
Returns the ordinate of the top side of the container rectangle.
|
double |
getWidth()
Returns the current width of the container rectangle.
|
void |
remove()
Removes the element and its descendant elements.
|
void |
setConstraintType(LayoutConstraints.ConstraintType constraintType)
Sets the layout manager to the specified type.
|
getDiagram, getOwner, getSpacing, remove, setSpacing
public java.awt.geom.Rectangle2D.Double getBounds()
public double getCenterX()
public double getCenterY()
public final java.awt.geom.Point2D.Double getCenter()
public double getMinHeight()
public double getMinWidth()
public double getLeft()
public double getTop()
public double getRight()
public double getBottom()
public double getWidth()
public double getHeight()
public LayoutConstraints getLayoutConstraints()
public final void setConstraintType(LayoutConstraints.ConstraintType constraintType)
constraintType
- the new layout constraint type of this containerpublic boolean contains(java.awt.geom.Point2D.Double point, double epsilon)
strictContains(java.awt.geom.Point2D.Double)
to exclude sides.point
- the point to checkepsilon
- the width of a buffer around the container rectangle points in which are also
considered to be contained by itpublic InsideLabel createInsideLabel(java.awt.geom.Rectangle2D.Double rectangle, double spacing)
rectangle
- the position of the new labelspacing
- the spacing value for the new labelpublic InsideLabel createInsideLabel(java.awt.geom.Rectangle2D.Double rectangle, LayoutConstraints.ConstraintType constraintType, double spacing)
rectangle
- the position of the new labelconstraintType
- the type of the layout constraints for the new labelspacing
- the spacing value for the new labelpublic InsideLabel createInsideLabel(java.awt.geom.Rectangle2D.Double rectangle, LayoutConstraints.ConstraintType constraintType, double spacing, java.lang.Integer row, java.lang.Integer column)
rectangle
- the position of the new labelconstraintType
- the type of the layout constraints for the new labelspacing
- the spacing value for the new labelrow
- the row of the new label in this container's gridcolumn
- the column of the new label in this container's gridpublic java.util.ArrayList<InsideLabel> getInsideLabels()
public java.awt.geom.Rectangle2D.Double findNextRectangleEnclosingRectangle()
null
is the container
has no child rectanglespublic java.awt.geom.Rectangle2D.Double findDescendantEnclosingRectangle()
null
is the container has no
children with dimensions