public class InsideLabel extends Label
Modifier and Type | Method and Description |
---|---|
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.
|
AbstractContainer |
getOwner()
Each element can be owned by some other element.
|
void |
move(java.awt.geom.Point2D.Double newCenter,
AbstractContainer newOwner,
java.awt.geom.Point2D.Double growPoint)
Moves the label, taking it from its current position and placing it at the given position,
along with its children.
|
void |
move(java.awt.geom.Point2D.Double newCenter,
AbstractContainer newOwner,
java.awt.geom.Point2D.Double growPoint,
java.lang.Integer row,
java.lang.Integer column)
Moves the label, taking it from its current position and placing it at the given position,
along with its children.
|
void |
resize(java.awt.geom.Rectangle2D.Double rectangle)
Resizes the label, moving it from its current position to the given rectangle, pushing aside
other elements as needed.
|
void |
setSpacing(double spacing)
Sets the spacing value of the label.
|
_convertToBoxOutsideLabel, _convertToInsideLabel, convertToBoxOutsideLabel, convertToBoxOutsideLabel, convertToInsideLabel, convertToInsideLabel, convertToLineLabel, convertToLineLabel, setMinHeight, setMinSize, setMinWidth
contains, createInsideLabel, createInsideLabel, findDescendantEnclosingRectangle, findNextRectangleEnclosingRectangle, getBottom, getBounds, getCenter, getCenterX, getCenterY, getHeight, getInsideLabels, getLayoutConstraints, getLeft, getMinHeight, getMinWidth, getRight, getTop, getWidth, remove, setConstraintType
getDiagram, getSpacing, remove
public AbstractContainer getOwner()
Element
public InsideLabel createInsideLabel(java.awt.geom.Rectangle2D.Double rectangle, LayoutConstraints.ConstraintType constraintType, double spacing, java.lang.Integer row, java.lang.Integer column)
AbstractContainer
createInsideLabel
in class AbstractContainer
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 void move(java.awt.geom.Point2D.Double newCenter, AbstractContainer newOwner, java.awt.geom.Point2D.Double growPoint, java.lang.Integer row, java.lang.Integer column)
newCenter
- the new desired center of the labelnewOwner
- the new owner of the labelgrowPoint
- the exact point at which to insert the label, it will then be grow from that
point to its desired position as per resize(java.awt.geom.Rectangle2D.Double)
row
- the row of the label in new owner's gridcolumn
- the column of the label in new owner's gridpublic void move(java.awt.geom.Point2D.Double newCenter, AbstractContainer newOwner, java.awt.geom.Point2D.Double growPoint)
newCenter
- the new desired center of the labelnewOwner
- the new owner of the labelgrowPoint
- the exact point at which to insert the label, it will then be grow from that
point to its desired position as per resize(java.awt.geom.Rectangle2D.Double)
public void resize(java.awt.geom.Rectangle2D.Double rectangle)
rectangle
- the new position of the label to resize it topublic void setSpacing(double spacing)
setSpacing
in class Element
spacing
- the new spacing value