maspack.widgets
Class LabelSpacing

java.lang.Object
  extended by maspack.widgets.LabelSpacing

public class LabelSpacing
extends java.lang.Object

Storage class to describe label alignment for components which have alignable labels.


Field Summary
 int labelWidth
           
 int preSpacing
           
 
Constructor Summary
LabelSpacing()
           
 
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
 

Field Detail

labelWidth

public int labelWidth

preSpacing

public int preSpacing
Constructor Detail

LabelSpacing

public LabelSpacing()
Method Detail

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