public class IlvGroupFrame extends IlvGraphic
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.
| Constructor and Description |
|---|
IlvGroupFrame(IlvGroup group)
Creates a new
IlvGroupFrame. |
IlvGroupFrame(IlvInputStream in)
Reads the group frame from an
IlvInputStream stream. |
| Modifier and Type | Method and Description |
|---|---|
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. |
addActionListener, addNamedPropertyListener, allViewsRemoved, baseTextDirectionChanged, blinkingStateOn, boundingBox, callDraw, componentOrientationChanged, contains, getAndAssociateObjectInteractor, getBaseTextDirection, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getComponentOrientation, getDefaultInteractor, getGraphicBag, GetGraphicObject, getIntersectionWithOutline, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenu, getPopupMenuName, getProperty, getResolvedBaseTextDirection, getToolTipBaseTextDirection, getToolTipText, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getULocale, getZOrderIndex, hasProperty, inside, intersects, invalidateBBoxCache, invalidateBidiCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isDataFlavorSupported, isEditable, isInApplyToObject, isLocaleSensitive, isMovable, isPersistent, isSelectable, isVisible, localeChanged, makeSelection, move, move, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setBaseTextDirection, setBaseTextDirectionDuringConstruction, setBlinkingAction, setBlinkingOffPeriod, setBlinkingOnPeriod, setEditable, setFillOn, setForeground, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipBaseTextDirection, setToolTipText, setVisible, setZOrderIndex, toString, translate, updateNeedsViewNotification, usesBidiMarkers, viewAddedOrRemovedpublic 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.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.IlvGraphicpublic void draw(Graphics dst, IlvTransformer t)
draw in class IlvGraphicdst - The destination Graphics instance.t - The transformation used to draw the object.IlvGraphic.callDraw(Graphics,IlvTransformer),
IlvGraphic.boundingBox(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© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.