ilog.views.prototypes
Class IlvGraphicGroup

java.lang.Object
  extended by ilog.views.IlvGraphic
      extended by ilog.views.graphic.IlvGraphicSet
          extended by ilog.views.prototypes.IlvGraphicGroup
All Implemented Interfaces:
GraphicBagHierarchyEventReceiver, ManagerViewsHierarchyEventReceiver, IlvGraphicBag, IlvPersistentObject, Transferable, Serializable

public class IlvGraphicGroup
extends IlvGraphicSet

The class 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.

See Also:
IlvGroup, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class ilog.views.graphic.IlvGraphicSet
IlvGraphicSet.DelegateObjectInteractor
 
Field Summary
 
Fields inherited from class ilog.views.graphic.IlvGraphicSet
list
 
Constructor Summary
IlvGraphicGroup(IlvGroup group)
          Creates a new IlvGraphicGroup.
IlvGraphicGroup(IlvInputStream in)
          Reads the group from an IlvInputStream stream.
 
Method Summary
 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.
 
Methods inherited from class ilog.views.graphic.IlvGraphicSet
addGraphicBagHierarchyListener, addManagerViewsHierarchyListener, addObject, addObjectAt, applyToObject, boundingBox, contains, contains, draw, drawCore, enableGraphicBagHierarchyEventForwarding, enableManagerViewsHierarchyEventForwarding, fireGraphicBagHierarchyEvent, fireManagerViewsHierarchyEvent, firstContains, getAlpha, getCardinal, getClip, getIndex, getIntersectionWithOutline, getObject, getObject, getObjectName, getObjects, getOriginalPopupMenu, getPopupMenu, getToolTipText, isPersistent, moveObject, needsGraphicBagHierarchyEvent, needsManagerViewsHierarchyEvent, reDrawObj, reDrawRegion, removeAll, removeGraphicBagHierarchyListener, removeManagerViewsHierarchyListener, removeObject, removeObjectAt, reshapeObject, setAlpha, setClip, setGraphicBag, setObjectName, zoomable
 
Methods inherited from class ilog.views.IlvGraphic
addActionListener, addNamedPropertyListener, boundingBox, getAndAssociateObjectInteractor, getCenter, getDefaultInteractor, getGraphicBag, GetGraphicObject, getName, getNamedProperty, getObjectInteractor, getPopupMenu, getPopupMenuName, getProperty, getToolTipText, getTopLevelGraphicBag, getTransferData, getTransferDataFlavors, hasProperty, inside, intersects, isDataFlavorSupported, isEditable, isInApplyToObject, isMovable, isSelectable, isVisible, makeSelection, move, move, moveResize, notifyObjectInteractorToManager, processActionEvent, reDraw, removeActionListener, removeNamedProperty, removeNamedPropertyListener, removeProperty, replaceProperty, resize, rotate, scale, setBackground, setEditable, setFillOn, setForeground, setInApplyToObject, setMovable, setName, setNamedProperty, setNameImpl, setObjectInteractor, setPopupMenu, setPopupMenuName, setProperty, setSelectable, setStrokeOn, setToolTipText, setVisible, toString, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ilog.views.IlvGraphicBag
getGraphicBag
 

Constructor Detail

IlvGraphicGroup

public IlvGraphicGroup(IlvGroup group)
Creates a new IlvGraphicGroup.

Parameters:
group - the group whose graphic elements must be controlled by the new graphic group.

IlvGraphicGroup

public IlvGraphicGroup(IlvInputStream in)
                throws IlvReadFileException
Reads the group from an IlvInputStream stream. This constructor must be called by the input constructors of subclasses.

Parameters:
in - The input stream.
Throws:
IlvReadFileException - if the stream format is not correct.
Method Detail

write

public void write(IlvOutputStream out)
           throws IOException
Writes the group to an IlvOutputStream.

Specified by:
write in interface IlvPersistentObject
Overrides:
write in class IlvGraphicSet
Parameters:
out - The output stream.
Throws:
IOException - thrown when an exception occurs during the write operation for this object.

copy

public IlvGraphic copy()
Returns a copy of the group.

Overrides:
copy in class IlvGraphicSet
Returns:
A copy of the object.
See Also:
IlvGraphic

applyTransform

public void applyTransform(IlvTransformer t)
Applies a transformation to the graphic group.

Overrides:
applyTransform in class IlvGraphicSet
Parameters:
t - The transformation to apply.
Since:
JViews 5.5
See Also:
IlvGraphic

getGroup

public IlvGroup getGroup()
Returns the group contained in this graphic object.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.