public class IlvGraphicGroup extends IlvGraphicSet
IlvGraphicGroup
is a subclass of
IlvGraphicSet
that encapsulates an IlvGroup
.
When an IlvGroup
is encapsulated in an
IlvGraphicGroup
, the graphic elements in the group are under the
control of the IlvGraphicGroup
object. In particular, they are
drawn by the IlvGraphicGroup
object, not by the manager.
The IlvGraphicGroup
class uses the layer
property
of the graphic elements to draw them in the correct order.
Also, the visible
property of the graphic elements is taken into
account. The graphic group draws only the graphic elements that are set as
visible.
This class is different from the IlvGroupFrame
class. An
IlvGroupFrame
merely provides visual feedback for selecting a
group controlled directly by a manager, whereas an
IlvGraphicGroup
actually contains the graphic elements.
IlvGroup
,
Serialized FormIlvGraphicSet.DelegateObjectInteractor
list
Constructor and Description |
---|
IlvGraphicGroup(IlvGroup group)
Creates a new
IlvGraphicGroup . |
IlvGraphicGroup(IlvInputStream in)
Reads the group from an
IlvInputStream stream. |
Modifier and Type | Method and Description |
---|---|
void |
applyTransform(IlvTransformer t)
Applies a transformation to the graphic group.
|
IlvGraphic |
copy()
Returns a copy of the group.
|
IlvGroup |
getGroup()
Returns the group contained in this graphic object.
|
void |
write(IlvOutputStream out)
Writes the group to an
IlvOutputStream . |
addGraphicBagHierarchyListener, addManagerViewsHierarchyListener, addObject, addObjectAt, applyToObject, applyToObjectImpl, baseTextDirectionChanged, boundingBox, componentOrientationChanged, contains, contains, draw, drawCore, enableGraphicBagHierarchyEventForwarding, enableManagerViewsHierarchyEventForwarding, fireGraphicBagHierarchyEvent, fireManagerViewsHierarchyEvent, firstContains, getAlpha, getCardinal, getClip, getIndex, getIntersectionWithOutline, getObject, getObject, getObjectName, getObjects, getOriginalPopupMenu, getPopupMenu, getToolTipText, invalidateAndApplyToObject, invalidateBBoxCache, isBaseTextDirectionSensitive, isComponentOrientationSensitive, isLocaleSensitive, isPersistent, moveObject, needsGraphicBagHierarchyEvent, needsManagerViewsHierarchyEvent, reDrawObj, reDrawRegion, removeAll, removeGraphicBagHierarchyListener, removeManagerViewsHierarchyListener, removeObject, removeObjectAt, reshapeObject, setAlpha, setBaseTextDirection, setClip, setGraphicBag, setInsideApply, setObjectName, shouldElementBePartOfClip, shouldRestrictListOfElementsForClip, zoomable
calcResolvedBaseTextDirection, getBaseTextDirection, getComponentOrientation, getResolvedBaseTextDirection, getULocale, invalidateBidiCache, setBaseTextDirection, setBaseTextDirectionDuringConstruction
addActionListener, addNamedPropertyListener, allViewsRemoved, blinkingStateOn, boundingBox, callDraw, getAndAssociateObjectInteractor, getBlinkingAction, getBlinkingObjectOwner, getBlinkingOffPeriod, getBlinkingOnPeriod, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getLocale, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenuName, getProperty, getToolTipBaseTextDirection, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, getZOrderIndex, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isSelectable, isVisible, localeChanged, makeSelection, move, move, moveResize, needsViewNotification, notifyObjectInteractorToManager, processActionEvent, reDraw, registerBlinkingResource, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGraphicBag
public IlvGraphicGroup(IlvGroup group)
IlvGraphicGroup
.group
- the group whose graphic elements must be controlled by the new
graphic group.public IlvGraphicGroup(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 IlvGraphicSet
out
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.public IlvGraphic copy()
copy
in class IlvGraphicSet
IlvGraphic
public void applyTransform(IlvTransformer t)
applyTransform
in class IlvGraphicSet
t
- The transformation to apply.IlvGraphic
public IlvGroup getGroup()
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.