public abstract class Element
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Diagram |
getDiagram()
The diagram the object is in.
|
Element |
getOwner()
Each element can be owned by some other element.
|
double |
getSpacing()
Returns the spacing of the element.
|
void |
remove()
Removes the element and its descendant elements.
|
void |
remove(boolean adjust)
Removes the element and its descendant elements.
|
abstract void |
setSpacing(double spacing)
Sets the spacing of the element.
|
public Element getOwner()
null, if this element is a diagram.public final Diagram getDiagram()
null if this element itself is a diagram.public double getSpacing()
public abstract void setSpacing(double spacing)
spacing - the value to setpublic void remove()
public void remove(boolean adjust)
adjust is set to true.adjust - whether to adjust the diagram after the element removal