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, viewAddedOrRemoved
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.public void write(IlvOutputStream out) throws IOException
IlvOutputStream
.write
in interface IlvPersistentObject
write
in class IlvGraphic
out
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.public IlvGraphic copy()
copy
in class IlvGraphic
IlvGraphic
instance.IlvGraphic
public void draw(Graphics dst, IlvTransformer t)
draw
in class IlvGraphic
dst
- The destination Graphics
instance.t
- The transformation used to draw the object.IlvGraphic.callDraw(Graphics,IlvTransformer)
,
IlvGraphic.boundingBox(IlvTransformer)
,
IlvGraphic.zoomable()
,
IlvGraphic
public IlvRect boundingBox(IlvTransformer t)
IlvGroupGraphic
is the union of all the
bounding boxes of the graphic elements in the group.boundingBox
in class IlvGraphic
t
- 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()
,
IlvGraphic
public 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 IlvGraphic
t
- The transformation to be applied.IlvGraphic
public 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 IlvGraphic
bag
- The graphic bag.IlvGraphic
public IlvGroup getGroup()
public boolean zoomable()
IlvGroupFrame
objects are not zoomable.zoomable
in class IlvGraphic
IlvGraphic
,
IlvGraphic.draw(java.awt.Graphics, ilog.views.IlvTransformer)
,
IlvGraphic.boundingBox(IlvTransformer)
,
IlvManager
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.