|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.graphic.composite.layout.IlvStackerLayout
public class IlvStackerLayout
This class lays out the objects on a row or column basis, adding some space between them.
| Constructor Summary | |
|---|---|
IlvStackerLayout()
Creates a new instance of IlvStackerLayout |
|
IlvStackerLayout(IlvInputStream stream)
Reads the object from an IlvInputStream. |
|
IlvStackerLayout(int orientation,
int alignment,
int spacing)
Creates a new stacker graphic for the attribute or representation object, with the given characteristics for orientation, alignment and spacing. |
|
| Method Summary | |
|---|---|
void |
attach(IlvAttachable target)
Sets the constraints defined by the supplied IlvAttachable |
protected void |
checkValues()
This method just checks if the values defined for the stacker characteristics are valid. |
Object |
clone()
Creates a copy of this object. |
protected void |
computeChildrenAttachmentCoordinates(IlvAttachable target)
Computes the attachment coordinates of the children. |
int |
getAlignment()
Returns the alignment used in the stacker children. |
int |
getOrientation()
Returns the current orientation. |
int |
getSpacing()
Returns the spacing between child elements. |
void |
layoutGroup(IlvAttachable target)
Lays out the specified IlvAttachablecontainer. |
void |
removeConstraints(IlvAttachable element)
Removes the specified IlvAttachable from the layout. |
void |
reset()
Remove all the constraints |
boolean |
resizeFirstChildOnly()
Returns always false |
void |
setAlignment(int alignment)
Returns the alignment used in the stacker children. |
void |
setConstraints(IlvAttachable element,
Object constraints)
The supplied IlvAttachable is added at the end of the stack. |
void |
setOrientation(int orientation)
Returns the current orientation. |
void |
setSpacing(int spacing)
Returns the spacing between child elements. |
void |
write(IlvOutputStream stream)
Writes the attributes of a persistent object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvStackerLayout()
IlvStackerLayout
public IlvStackerLayout(int orientation,
int alignment,
int spacing)
orientation - either SwingConstants.TOP
or SwingConstants.BOTTOM
or SwingConstants.LEFT
or SwingConstants.RIGHTalignment - either SwingConstants.TOP
or SwingConstants.BOTTOM
or SwingConstants.LEFT
or SwingConstants.RIGHT
or SwingConstants.CENTER
public IlvStackerLayout(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
stream - The input stream.
IlvReadFileException - if the format is not correct.| Method Detail |
|---|
protected void checkValues()
public void setOrientation(int orientation)
public int getOrientation()
public void setAlignment(int alignment)
public int getAlignment()
public void setSpacing(int spacing)
public int getSpacing()
public void setConstraints(IlvAttachable element,
Object constraints)
IlvAttachable is added at the end of the stack.
setConstraints in interface IlvLayoutManagerelement - the IlvAttachable to be addedconstraints - where/how the component is added to the layout.public void removeConstraints(IlvAttachable element)
IlvAttachable from the layout.
removeConstraints in interface IlvLayoutManagerelement - the IlvAttachable>/code> object to be removed.public void layoutGroup(IlvAttachable target)
IlvAttachablecontainer.
layoutGroup in interface IlvLayoutManagertarget - the container to be laid outpublic void attach(IlvAttachable target)
IlvAttachable
attach in interface IlvLayoutManagertarget - the container to be laid outIlvAttachable.getAttachables(),
IlvAttachable.getConstraints()protected void computeChildrenAttachmentCoordinates(IlvAttachable target)
target - the containerpublic void reset()
reset in interface IlvLayoutManagerpublic Object clone()
clone in interface IlvLayoutManagerclone in class Objectpublic boolean resizeFirstChildOnly()
false
resizeFirstChildOnly in interface IlvLayoutManager
public void write(IlvOutputStream stream)
throws IOException
write in interface IlvPersistentObjectstream - the output stream
IOException - thrown when an exception occurs during
the write operation for this object.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||