public static class OutsideLabel.BoxOutsideLabel extends OutsideLabel
OutsideLabel.BoxOutsideLabel, OutsideLabel.LineLabel
Modifier and Type | Method and Description |
---|---|
Box |
getOwner()
Each element can be owned by some other element.
|
void |
move(Box.BoxSide side,
double position,
Box box)
Moves this label to the given side of the given box at the given position.
|
void |
move(java.awt.geom.Point2D.Double point,
Box box)
Moves this box outside label to the given point onto the given box.
|
void |
setAutoFlip(boolean state)
Sets the auto flip parameter for this label.
|
createInsideLabel, flip, isAutoFlipped, isFlipped, resize, resize, setSpacing
_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 Box getOwner()
Element
public void setAutoFlip(boolean state)
OutsideLabel
OutsideLabel.flipped
is set, in which case this
ensures the label always runs perpendicular to the segment).setAutoFlip
in class OutsideLabel
state
- whether to set or unset the auto flip parameterpublic void move(java.awt.geom.Point2D.Double point, Box box)
point
- the point to move this label to. If this point is not on the perimeter of
this label's box, it is moved there.box
- the new box owner of this labelpublic void move(Box.BoxSide side, double position, Box box)
side
- the side of this labels box to move it toposition
- the position on this side to place the label at, as a proportion of the
whole length of the side. Must be between 0 and 1, inclusive.box
- the new box owner of this label