maspack.widgets
Class LabelSpacing
java.lang.Object
maspack.widgets.LabelSpacing
public class LabelSpacing
- extends java.lang.Object
Storage class to describe label alignment for components which have
alignable labels.
Method Summary |
boolean |
expand(LabelSpacing spacing)
Sets this spacing so that both labelWidth and and preSpacing are at least
as large as those of a supplied spacing, and returns true if either field
was changed. |
boolean |
isEqual(LabelSpacing spacing)
|
void |
set(int labelWidth,
int preSpacing)
|
void |
set(LabelSpacing spacing)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
labelWidth
public int labelWidth
preSpacing
public int preSpacing
LabelSpacing
public LabelSpacing()
set
public void set(LabelSpacing spacing)
set
public void set(int labelWidth,
int preSpacing)
expand
public boolean expand(LabelSpacing spacing)
- Sets this spacing so that both labelWidth and and preSpacing are at least
as large as those of a supplied spacing, and returns true if either field
was changed.
isEqual
public boolean isEqual(LabelSpacing spacing)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object