|
||||||||||
| 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.IlvAttachmentLayout
public class IlvAttachmentLayout
The IlvAttachmentLayout class is a flexible layout manager
that attaches graphic objects.
Each object managed by an IlvAttachmentLayout is associated
with an instance of
IlvAttachmentConstraint. The
constraints object specifies where a graphic objects should be located.
One particular object is identified by the constant REFERENCE.
This object will not be moved the layout. Its attachment rectangle is used by
the other objects in their attachment locations.
IlvAttachmentConstraint| Field Summary | |
|---|---|
static String |
ANCHOR
The anchor layout constraint |
| Constructor Summary | |
|---|---|
IlvAttachmentLayout()
Creates an IlvAttachmentLayout instance. |
|
IlvAttachmentLayout(IlvInputStream stream)
Reads the object from an IlvInputStream. |
|
| Method Summary | |
|---|---|
void |
attach(IlvAttachable target)
Sets the constraints. |
Object |
clone()
Creates a copy of this object. |
IlvAttachable |
getAnchor()
Returns the anchor of this object.The anchor object is the IlvAttachable instance used to attach the other elements. |
void |
layoutGroup(IlvAttachable parent)
Lays out the specified IlvAttachablecontainer. |
void |
removeConstraints(IlvAttachable element)
Removes the specified IlvAttachable from the layout. |
void |
reset()
Removes all the constraints. |
boolean |
resizeFirstChildOnly()
Returns always true. |
void |
setAnchor(IlvAttachable anchor)
Sets the anchor. |
void |
setConstraints(IlvAttachable element,
Object constraints)
Adds the specified IlvAttachable to the layout, using the
specified constraint object. |
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 |
| Field Detail |
|---|
public static final String ANCHOR
| Constructor Detail |
|---|
public IlvAttachmentLayout()
IlvAttachmentLayout instance.
public IlvAttachmentLayout(IlvInputStream stream)
throws IlvReadFileException
IlvInputStream.
stream - The input stream.
IlvReadFileException - if the format is not correct.| Method Detail |
|---|
public void setConstraints(IlvAttachable element,
Object constraints)
IlvAttachable to the layout, using the
specified constraint object.
setConstraints in interface IlvLayoutManagerelement - the IlvAttachable to be addedconstraints - This must be an IlvAttachmentConstraint instance or
the string "Anchor".setAnchor(ilog.views.graphic.composite.layout.IlvAttachable),
IlvAttachmentConstraintpublic void removeConstraints(IlvAttachable element)
IlvAttachable from the layout.
removeConstraints in interface IlvLayoutManagerelement - the IlvAttachable>/code> object to be removed.public void layoutGroup(IlvAttachable parent)
IlvAttachablecontainer.
layoutGroup in interface IlvLayoutManagerparent - the container to be laid outpublic void attach(IlvAttachable target)
attach in interface IlvLayoutManagertarget - the container to be laid outIlvAttachable.getAttachables(),
IlvAttachable.getConstraints()public void setAnchor(IlvAttachable anchor)
IlvAttachable
instance used to attach the other elements.
public IlvAttachable getAnchor()
IlvAttachable instance used to attach the other elements.
public void reset()
reset in interface IlvLayoutManagerpublic Object clone()
clone in interface IlvLayoutManagerclone in class Objectpublic boolean resizeFirstChildOnly()
true.
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 | |||||||||