|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.IlvGraphic
ilog.views.prototypes.IlvGroupFrame
public class IlvGroupFrame
Instances of the class IlvGroupFrame are graphic objects used to display
a rectangle around an IlvGroup object inside a manager.
When
a group frame is moved or resized, the
transformation is applied to all the elements belonging to the group.
The main purpose of IlvGroupFrame objects is to provide visual
feedback when IlvGroup objects are selected. The
select interactor creates instances of this
class to show that a group is selected.
It is also possible for an application to explicitly create an
IlvGroupFrame object so that groups are surrounded
with a rectangle each time they are selected.
IlvGroup,
IlvGroupBag.selectGroup(ilog.views.prototypes.IlvGroup, boolean),
Serialized Form| Constructor Summary | |
|---|---|
IlvGroupFrame(IlvGroup group)
Creates a new IlvGroupFrame. |
|
IlvGroupFrame(IlvInputStream in)
Reads the group frame from an IlvInputStream stream. |
|
| Method Summary | |
|---|---|
void |
applyTransform(IlvTransformer t)
Applies a transformer to this group frame by setting the transformation value for the group. |
IlvRect |
boundingBox(IlvTransformer t)
The bounding box of an IlvGroupGraphic
is the union of all the bounding boxes of the graphic elements in
the group. |
IlvGraphic |
copy()
Returns a copy of the group frame. |
void |
draw(Graphics dst,
IlvTransformer t)
Draws a rectangle around the group. |
IlvGroup |
getGroup()
Returns the group to which the group frame is associated. |
void |
setGraphicBag(IlvGraphicBag bag)
Changes the bag that contains the object. |
void |
write(IlvOutputStream out)
Writes the group frame to an IlvOutputStream. |
boolean |
zoomable()
The IlvGroupFrame objects are not zoomable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvGroupFrame(IlvGroup group)
IlvGroupFrame.
group - the group to which the group frame is associated.
public IlvGroupFrame(IlvInputStream in)
throws IlvReadFileException
IlvInputStream stream.
This constructor must be called by the
input constructors of subclasses.
in - The input stream.
IlvReadFileException - if the stream format is not correct.| Method Detail |
|---|
public void write(IlvOutputStream out)
throws IOException
IlvOutputStream.
write in interface IlvPersistentObjectwrite in class IlvGraphicout - The output stream.
IOException - thrown when an exception occurs during
the write operation for this object.public IlvGraphic copy()
copy in class IlvGraphicIlvGraphic instance.IlvGraphic
public void draw(Graphics dst,
IlvTransformer t)
draw in class IlvGraphicdst - The destination Graphics.t - The transformation used to draw the object.IlvGraphic.boundingBox(ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphicpublic IlvRect boundingBox(IlvTransformer t)
IlvGroupGraphic
is the union of all the bounding boxes of the graphic elements in
the group.
boundingBox in class IlvGraphict - The transformer used to draw the object. If the
transformer is null, the bounding box for the
identity transformer is returned.IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer),
IlvGraphic.zoomable(),
IlvGraphicpublic void applyTransform(IlvTransformer t)
transformation value for the group. This value is
recursively propagated to all the graphic elements belonging to the group.
applyTransform in class IlvGraphict - The transformation to be applied.IlvGraphicpublic void setGraphicBag(IlvGraphicBag bag)
IlvGraphicBag such as an
IlvManager.
You should not call this method directly unless you are
creating a new type of bag.
setGraphicBag in class IlvGraphicbag - The graphic bag.IlvGraphicpublic IlvGroup getGroup()
public boolean zoomable()
IlvGroupFrame objects are not zoomable.
zoomable in class IlvGraphicIlvGraphic,
IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer),
IlvGraphic.boundingBox(IlvTransformer),
IlvManager
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||