|
||||||||||
| 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.IlvManager
public class IlvManager
IlvManager is the container class used to store and manipulate
IlvGraphic objects displayed in one or more IlvManagerView
instance.
All graphic objects stored in a manager share the same coordinate system. The smallest rectangle encompassing all graphic objects in a manager is called the bounding box of the manager.
For each graphic object stored in a manager, you can specify if it is:
setVisible(IlvGraphic, boolean, boolean)setSelectable(int, boolean)setMovable(IlvGraphic, boolean)setEditable(IlvGraphic, boolean)Each graphic object is managed by one single manager at a time, but can
be moved from one manager to another. A graphic object cannot be contained
by two different managers simultaneously. Graphic objects are added to
a manager by calling addObject(IlvGraphic, boolean) or
addObject(IlvGraphic, int, boolean) and removed
using removeObject(IlvGraphic, boolean).
Managers organize graphic objects by placing them in a layer, that is, an
IlvManagerLayer instance; by default, a manager is
created with one layer. New layers are created automatically when
you add a graphic object to a manager and specify a layer it is to be placed
in by calling addObject(IlvGraphic, int, boolean). For
example, a call to addObject(obj, n, false) will insert
obj in layer n. If layer n does not exist, the number of layers
in the manager is increased automatically. Objects stored in a
higher layer are displayed in front of objects in lower layers. As with
graphic objects, each layer is controlled by a single manager at a time.
You display graphic objects stored in a manager using a view, that is, an
IlvManagerView instance. As with layers and graphic objects, a
view is attached to a single manager at a time. However, each manager
can have multiple views. For more information, see IlvManagerView.
Managers are themselves graphic objects that can be embedded inside another manager. This nesting feature of ILOG JViews allows you to create applications that display a graphic inside another graphic. A manager nested inside another manager is called a submanager.
The following example shows how to display graphic objects contained in layers in a manager using a view.
IlvManager manager = new IlvManager();
// Create new graphic objects and add them to bottom layer in the
// manager.
IlvGraphic obj = new IlvEllipse(new IlvRect(30, 10, 50, 50), true, false);
manager.addObject(obj, false);
// Add a new graphic object on a higher layer
obj = new IlvRectangle(new IlvRect(70, 40, 50, 50), false, true);
manager.addObject(obj, 2, true);
// Attach the manager to a view
IlvManagerView view = new IlvManagerView(manager);
view.setBackground(Color.RED);
// Display the view in a scrollable component
JFrame frame = new JFrame("IlvManagerExample");
IlvJScrollManagerView scrollView = new IlvJScrollManagerView(view);
scrollView.setHorizontalScrollBarPolicy(IlvJScrollManagerView.HORIZONTAL_SCROLLBAR_AS_NEEDED);
scrollView.setVerticalScrollBarPolicy(IlvJScrollManagerView.VERTICAL_SCROLLBAR_AS_NEEDED);
frame.getContentPane().add(scrollView);
frame.setSize(160, 160);
frame.setVisible(true);
The following image shows the manager created in the code example.
IlvManager enables you to add interactive content to your
application in the form of shortcut menus. For a full explanation
of how to do this, see IlvGraphic.
IlvManagerViewInteractor that are attached to a view and process
global events for the specific view;IlvObjectInteractor that are attached to a graphic object and
process local events;IlvAccelerator instances that
are added to a manager and process the events for the manager.
Typically, accelerators are used to handle keyboard events that initiate an
action.
When the content of the manager changes, the manager fires a
ManagerContentChangedEvent
event. Manager content change is defined as when an object is added to or
removed from the manager, or when the visibility, the bounding box or the
layer of a graphic object changes. To listen for and handle manager content
modifications, implement the ManagerContentChangedListener
interface and register the listener using
addManagerContentChangedListener(ManagerContentChangedListener).
For nested managers, you can also register a global listener for events
occurring in any submanager using
addManagerTreeContentChangedListener(ManagerContentChangedListener).
Similar mechanisms exist for listening to other types of events. For details,
see the methods
addManagerExpansionListener(ManagerExpansionListener),
addManagerLayerListener(ManagerLayerListener),
addManagerSelectionListener(ManagerSelectionListener),
addManagerTreeSelectionListener(ManagerSelectionListener),
and addManagerViewsListener(ManagerViewsChangedListener).
IlvManager contains a set of methods to read and write graphic
object descriptions to a file. Manager properties, such as the layer or
name of an object, can also be read and written.
Note: The recommended way to serialize any manager is through IVL
serialization and not Java serialization.
Serialization cannot work for managers that contain graphic objects such as
IlvIcon. These classes manage internal JDK
objects that are not serializable.
IlvManagerLayer,
IlvObjectInteractor,
IlvManagerViewInteractor,
IlvAccelerator,
ManagerContentChangedEvent,
IlvGraphic,
IlvRectangle,
IlvPolyline,
IlvSpline,
Serialized Form| Field Summary | |
|---|---|
static int |
HH_BLUR
The "Blur" mode for hover highlighting in setHoverHighlightingMode(int). |
static int |
HH_BRIGHTEN
The "Brighten" mode for hover highlighting in setHoverHighlightingMode(int). |
static int |
HH_CUSTOM
Indicates a custom mode for hover highlighting when returned by getHoverHighlightingMode(). |
static int |
HH_GRAYSCALE
The "Gray scale" mode for hover highlighting in setHoverHighlightingMode(int). |
static int |
HH_INVERT_COLORS
The "Invert Colors" mode for hover highlighting in * setHoverHighlightingMode(int). |
static int |
HH_NONE
Constant to indicate deactivation of the hover highlighting in setHoverHighlightingMode(int). |
static int |
HH_SHARPEN
The "Sharpen" mode for hover highlighting in setHoverHighlightingMode(int). |
| Constructor Summary | |
|---|---|
IlvManager()
Creates a new IlvManager. |
|
IlvManager(IlvInputStream stream)
Reads the manager from an IlvInputStream. |
|
IlvManager(IlvManager origin)
Creates a new IlvManager by copying an existing one. |
|
IlvManager(int numberOfLayers)
Creates a new IlvManager. |
|
IlvManager(int numberOfLayers,
int maxInList)
Creates a new IlvManager. |
|
| Method Summary | |
|---|---|
void |
abortReDraws()
Aborts an initRedraws/invalidateRegion session. |
void |
addAccelerator(IlvAccelerator a)
Adds an accelerator in the manager. |
void |
addGraphicBagHierarchyListener(GraphicBagHierarchyListener listener)
Adds the specified listener to receive events from the ancestor managers and from this manager when the hierarchy of managers has changed. |
void |
addLayer(IlvManagerLayer layer,
int index)
Adds a layer at the specified index in the manager. |
void |
addLayer(int index)
Adds a layer at the specified index. |
void |
addManagerContentChangedListener(ManagerContentChangedListener listener)
Adds the specified listener to receive events from the manager when its contents have changed, for example when an object is added or removed. |
void |
addManagerExpansionListener(ManagerExpansionListener listener)
Adds the specified listener to receive events from the manager when the manager is collapsed or expanded. |
void |
addManagerLayerListener(ManagerLayerListener listener)
Adds the specified layer listener to receive layer modification events when a layer is added or removed, or when the index of a layer changes. |
void |
addManagerSelectionListener(ManagerSelectionListener listener)
Adds the specified listener to receive events from the manager when the selection changes. |
void |
addManagerTreeContentChangedListener(ManagerContentChangedListener listener)
Adds the specified listener to receive events from this manager and its submanagers when the contents have changed, for example when an object is added or removed. |
void |
addManagerTreeSelectionListener(ManagerSelectionListener listener)
Adds the specified listener to receive events from the manager and the submanagers when the selection changes. |
void |
addManagerViewsHierarchyListener(ManagerViewsChangedListener listener)
Adds the specified listener to receive events from this manager or ancestor managers when a view displaying the content of the manager is added or removed. |
void |
addManagerViewsListener(ManagerViewsChangedListener listener)
Adds the specified listener to receive events from this manager when a view displaying the contents of the manager is added or removed. |
void |
addObject(IlvGraphic obj,
boolean redraw)
Adds the specified graphic object in the manager. |
void |
addObject(IlvGraphic obj,
int layer,
boolean redraw)
Adds the specified graphic object in the manager. |
protected boolean |
afterInvalidateRegion(IlvGraphic object,
IlvRect objectBBox,
IlvManagerView view,
IlvTransformer t,
Object info)
Returns true if the region of the object must be invalidated. |
void |
afterTransform(IlvGraphic obj,
boolean redraw,
boolean ifneeded,
boolean parent,
boolean fireEvent)
This method is automatically called by applyToObject
after the contents of this manager changed. |
protected void |
afterTransformObj(IlvGraphic obj,
boolean redraw,
boolean ifneeded,
boolean parent,
boolean fireEvent)
Called from afterTransform(ilog.views.IlvGraphic, boolean, boolean, boolean, boolean). |
boolean |
allowMoving(IlvGraphic obj)
Returns true if the object can be moved with
the selection interactor (IlvSelectInteractor). |
void |
applyToObject(IlvGraphic obj,
IlvApplyObject f,
Object arg,
boolean redraw)
Applies a method to a graphic object. |
void |
applyToObjects(IlvGraphicEnumeration enumeration,
IlvApplyObject f,
Object arg,
boolean redraw)
Applies a method to many graphic objects. |
void |
applyToObjects(IlvGraphicEnumeration enumeration,
IlvApplyObjects f,
Object arg,
boolean redraw)
Applies a method that affects many graphic objects. |
void |
applyToObjects(IlvGraphicVector vector,
IlvApplyObject f,
Object arg,
boolean redraw)
Applies a method to many graphic objects. |
void |
applyToObjects(IlvGraphicVector vector,
IlvApplyObjects f,
Object arg,
boolean redraw)
Applies a method that affects many graphic objects. |
void |
applyTransform(IlvTransformer t)
Applies a transformation to the manager. |
protected Object |
beforeInvalidateRegion(IlvGraphic object,
IlvManagerView view,
IlvTransformer t)
Calculates the info necessary to decide whether the region of the object must be invalidated. |
void |
beforeTransform(IlvGraphic obj,
boolean redraw,
boolean ifneeded,
boolean parent)
This method is automatically called by applyToObject
before the contents of this manager changes. |
protected void |
beforeTransformObj(IlvGraphic obj,
boolean redraw,
boolean ifneeded,
boolean parent)
Called from beforeTransform(ilog.views.IlvGraphic, boolean, boolean, boolean). |
IlvRect |
boundingBox(IlvTransformer t)
Returns the bounding rectangle of the manager when drawn with the specified transformer. |
void |
check(boolean verbose)
Performs a deep integrity test of the manager. |
IlvRect |
computeBBox(IlvTransformer t)
Computes the rectangle that contains all the graphic objects of the manager. |
IlvRect |
computeBBox(IlvTransformer t,
boolean withSelection)
Computes the rectangle that contains all the graphic objects of the manager. |
boolean |
contains(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Tests if a point lies within this manager. |
boolean |
containsFrame(IlvPoint p,
IlvPoint tp,
IlvTransformer t)
Tests if the specified point lie within the manager frame. |
protected void |
contentsChanged(int type)
Called when the contents of the manager have changed. |
IlvGraphic |
copy()
Creates a new manager by copying this manager. |
void |
copySelection()
Copies the selected graphic objects to the clipboard. |
protected IlvInputStream |
createInputStream(InputStream stream)
Creates an IlvInputStream to read a manager. |
protected IlvManagerLayer |
createManagerLayer(int index)
Creates a new manager layer. |
protected IlvOutputStream |
createOutputStream(OutputStream stream)
Creates an IlvOutputStream to write a manager. |
void |
deleteAll(boolean redraw)
Removes all the graphic objects from the manager. |
void |
deleteAll(int layer,
boolean redraw)
Removes all the graphic objects from a manager layer. |
void |
deleteSelections(boolean redraw)
Removes the selected objects. |
void |
deleteSelections(boolean traverse,
boolean redraw)
Removes the selected objects. |
void |
deSelectAll(boolean redraw)
Deselects all the graphic objects in the manager. |
void |
deSelectAll(boolean traverse,
boolean redraw)
Deselects all the graphic objects in the manager. |
void |
deSelectAll(int layer,
boolean redraw)
Deselects all the graphic objects in a layer. |
boolean |
dispatchToObjects(AWTEvent event,
IlvManagerView view)
Dispatches the event to an object. |
void |
draw(Graphics dst,
IlvManagerView view)
Draws the contents of the manager. |
void |
draw(Graphics dst,
IlvTransformer t)
Draws the manager. |
void |
duplicateSelections(float dx,
float dy,
IlvTransformer t,
boolean traverse)
Duplicates the selected objects. |
void |
duplicateSelections(int dx,
int dy)
Duplicates the selected objects. |
void |
enableGraphicBagHierarchyEventForwarding()
Enables forwarding of GraphicBagHierarchyEvent events, since
the objects contained in this manager need to receive the events. |
void |
enableManagerViewsHierarchyEventForwarding()
Enables forwarding of ManagerViewsChangedEvent events through the nesting hierarchy,
since the subobjects contained in this manager need to receive the events. |
void |
fireGraphicBagHierarchyEvent(GraphicBagHierarchyEvent event)
Fires a graphic bag hierarchy event to this manager and all contained objects. |
void |
fireManagerViewsHierarchyEvent(ManagerViewsChangedEvent event)
Fires a ManagerViewsChangedEvent event to all listeners
installed via addManagerViewsHierarchyListener(ilog.views.event.ManagerViewsChangedListener) on this manager or
contained objects. |
IlvAccelerator[] |
getAccelerators()
Returns an array of all the accelerators. |
IlvGraphicVector |
getAllObjects(IlvPoint p,
IlvManagerView view,
boolean traverse,
boolean includeSubManagersIfInnerNodesFound)
Returns all visible graphic objects located at the specified point in a manager view. |
IlvGraphicVector |
getAllObjects(IlvPoint p,
int layer,
IlvManagerView view)
Returns all visible graphic objects located at the specified point in a manager view for a specified layer. |
int |
getCardinal()
Returns the number of objects stored in the manager. |
int |
getCardinal(boolean traverse)
Returns the number of objects stored in the manager and in the managers that have been added recursively in this manager. |
int |
getCardinal(int layer)
Returns the number of objects in the specified layer. |
IlvGraphic |
getCollapsedGraphic()
Returns the representation of the manager when the manager is collapsed. |
IlvTransformer |
getDrawingTransformer(IlvManagerView view)
Returns the transformer used to draw this manager. |
URL |
getFileName()
Returns the file read in the manager. |
IlvManagerFrame |
getFrame()
Returns the frame of the manager. |
IlvHoverHighlightingImageOperation |
getHoverHighlightingImageOperation()
Returns the hover highlighting image operation or null if
none is set on this manager. |
int |
getHoverHighlightingMode()
Returns the highlight modes. |
int |
getInsertionLayer()
Returns the default layer where objects are inserted. |
IlvPoint |
getIntersectionWithOutline(IlvPoint innerPoint,
IlvPoint outerPoint,
IlvTransformer t)
Returns the intersection of the line segment from inner point to outer point with the shape of the graphic object. |
int |
getLayer(IlvGraphic obj)
Returns the index of the layer where the specified graphic object is stored. |
int |
getLayer(String name)
Returns the index of the layer with the specified name. |
String |
getLayerName(int layer)
Returns the name of the specified layer. |
int |
getLayersCount()
Returns the number of layers in the manager. |
IlvManagerLayer |
getManagerLayer(IlvGraphic obj)
Returns the layer where the specified graphic object is stored. |
IlvManagerLayer |
getManagerLayer(int layer)
Returns the layer at a specified index. |
IlvManagerLayer |
getManagerLayer(String name)
Returns the layer with the specified name. |
IlvGraphicEnumeration |
getManagers()
Returns an enumeration of all the managers that have been added in this manager. |
IlvGraphicEnumeration |
getManagers(int layer)
Returns an enumeration of all the managers that have been added in this manager in the specified layer. |
int |
getManagersCount()
Returns the number of managers that have been added in this manager. |
int |
getManagersCount(int layer)
Returns the number of managers that have been added in this manager in the specified layer. |
IlvGraphic |
getObject(IlvPoint p,
IlvManagerView view)
Returns the graphic object located at the specified point in a manager view; otherwise, it returns null. |
IlvGraphic |
getObject(IlvPoint p,
IlvManagerView view,
boolean traverse)
Returns the graphic object located at the specified point in a manager view; otherwise, it returns null. |
IlvGraphic |
getObject(IlvPoint p,
int layer,
IlvManagerView view)
Returns the graphic object located at the specified point in a manager view for a specified layer; otherwise, it returns null. |
IlvGraphic |
getObject(String name)
Returns the object with the specified name, or null if there
is no object with this name. |
IlvObjectInteractor |
getObjectInteractor(IlvGraphic obj)
Deprecated. Beginning with ILOG JViews 5.0 you should use IlvGraphic.getObjectInteractor() instead. |
String |
getObjectName(IlvGraphic obj)
Returns the name of the specified graphic object. |
protected static IlvObjectProperty |
getObjectProperty(IlvGraphic obj)
Returns the object property for the input object. |
IlvGraphicEnumeration |
getObjects()
Returns an enumeration of all the objects in the manager. |
IlvGraphicEnumeration |
getObjects(boolean traverse)
Returns an enumeration of all the objects in the manager and in the managers that have been added recursively in this manager. |
IlvGraphicEnumeration |
getObjects(int layer)
Returns an enumeration of all the objects in a layer. |
long |
getOptimizedLayerThreshold()
Returns the threshold for optimized layer operations. |
IlvManager |
getParent()
Returns the manager that contains this manager, or null if this manager is not contained
in a manager. |
Object |
getProperty(String key)
Returns the value of a property. |
IlvGraphicEnumeration |
getSelectedMovingObjects(boolean[] flags)
Returns the selected objects that should be moved by the select interactor. |
IlvGraphicEnumeration |
getSelectedObjects()
Returns an enumeration of all the selected objects. |
IlvGraphicEnumeration |
getSelectedObjects(boolean traverse)
Returns an enumeration of all the selected objects in this manager. |
int |
getSelectedObjectsCount()
Returns the number of selected objects. |
int |
getSelectedObjectsCount(boolean traverse)
Returns the number of selected objects. |
IlvSelection |
getSelection(IlvGraphic obj)
Returns the selection object (instance of IlvSelection)
associated with the specified graphic object, or null
if the object is not selected. |
IlvSelection |
getSelection(IlvPoint p,
IlvManagerView view)
Returns the selection object (instance of IlvSelection)
located at the specified point in a manager view. |
IlvSelection |
getSelection(IlvPoint p,
IlvManagerView view,
boolean traverse)
Returns the selection object (instance of IlvSelection)
located at the specified point in a manager view. |
IlvSelectionFactory |
getSelectionFactory()
Returns the selection factory installed in the manager, or null
if no factory is installed. |
IlvGraphicEnumeration |
getSelections()
Returns an enumeration of all the selection objects (instances of IlvSelection). |
float |
getSizeLimitToDrawSubmanagerContents()
Returns the size limit to draw the contents of the manager when used as submanager. |
IlvManagerStreamFactory |
getStreamFactory()
Returns the stream factory installed in the manager. |
IlvTransformer |
getTopLevelTransformer()
Returns the transformer that allows converting from the coordinate system of this manager to the coordinate system of the top-level manager. |
IlvTransformer |
getTransformer()
Returns the local transformer of this manager. |
Object |
getTreeLock()
Returns the object used to synchronize the content of the manager for multi-threaded environment. |
Object |
getUserData()
Deprecated. Beginning with ILOG JViews 5.5 you should use IlvGraphic.getProperty(java.lang.String) instead. |
Enumeration |
getViews()
Returns an enumeration of the manager views. |
protected boolean |
handleAccelerators(AWTEvent evt,
IlvManagerView view)
Handles the accelerators in the manager view. |
boolean |
hasProperty(String key,
Object value)
Tests the value of a property. |
protected void |
init(int numberOfLayers,
int maxInList)
Initializes the manager. |
void |
initReDraws()
Starts an initRedraws/invalidateRegion/reDrawViews
session. |
void |
invalidateRegion(IlvGraphic object)
Stores the rectangle occupied by object
in all manager views for a further call of reDrawViews(). |
void |
invalidateRegion(IlvManagerView view,
IlvRect rect)
Stores the rectangle in a manager view for a further call of reDrawViews(). |
void |
invalidateRegion(IlvRect rect)
Stores the rectangle in all manager views for a further call of reDrawViews. |
boolean |
isCollapsed()
Returns the collapsed/expanded status of the manager. |
boolean |
isContentsAdjusting()
Returns true if the manager is currently doing
a major modification of its contents. |
boolean |
isEditable(IlvGraphic obj)
Returns true if the object is editable with the
selection interactor (IlvSelectInteractor). |
boolean |
isInvalidating()
Returns true if the manager is in an
initReDraws/reDrawViews session. |
boolean |
isKeepingAspectRatio()
Returns true if the local transformer of this manager
keeps the aspect ratio; otherwise it returns false. |
boolean |
isManaged(IlvGraphic obj)
Returns true if the specified object is in the manager. |
boolean |
isMovable(IlvGraphic obj)
Returns true if the object was set to movable. |
boolean |
isSelectable(IlvGraphic obj)
Returns true if the object can be selected with
the select interactor (IlvSelectInteractor). |
boolean |
isSelectable(int layer)
Returns true if the objects of a layer can be selected
with the selection interactor (IlvSelectInteractor). |
boolean |
isSelected(IlvGraphic obj)
Returns true if the specified graphic object is selected,
that is, there is a selection object associated with it. |
boolean |
isSelectionAdjusting()
Returns whether we are currently selecting or deselecting a series of objects. |
boolean |
isVisible(IlvGraphic obj)
Returns true if the specified object is visible. |
boolean |
isVisible(IlvGraphic obj,
IlvManagerView view)
Returns true if the object is visible in the manager view. |
boolean |
isVisible(IlvManagerView view,
int layer)
Returns true if the layer is visible in the specified view. |
boolean |
isVisible(int layer)
Returns the visibility of the specified layer. |
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
Called when the ownership of the clipboard is lost by the manager. |
protected IlvObjectProperty |
makeObjectProperty(IlvGraphic obj)
Creates the object property for the input object. |
void |
map(IlvApplyObject f,
Object arg)
Applies a function on all objects of the manager. |
void |
map(IlvApplyObject f,
Object arg,
boolean traverse)
Applies a function on all objects of the manager. |
void |
mapInside(IlvApplyObject f,
Object arg,
IlvRect rect,
IlvTransformer t)
Applies a function on all objects of the manager that are inside the specified rectangle. |
void |
mapInside(IlvApplyObject f,
Object arg,
IlvRect rect,
IlvTransformer t,
boolean traverse)
Applies a function on all objects of the manager that are inside the specified rectangle. |
void |
mapIntersects(IlvApplyObject f,
Object arg,
IlvRect rect,
IlvTransformer t)
Applies a function on all objects of the manager that intersect the specified rectangle. |
void |
mapIntersects(IlvApplyObject f,
Object arg,
IlvRect rect,
IlvTransformer t,
boolean traverse)
Applies a function on all objects of the manager that intersect the specified rectangle. |
void |
moveObject(IlvGraphic obj,
float x,
float y,
boolean redraw)
Changes the position of the specified graphic object. |
void |
moveResize(IlvRect size)
Resizes the IlvManager. |
protected boolean |
needsDrawSubmanagerContents(float innerWidth,
float innerHeight,
IlvTransformer t)
Returns whether the contents of this manager needs to be drawn if the manager is used a submanager. |
boolean |
needsGraphicBagHierarchyEvent()
Returns whether this manager needs to receive GraphicBagHierarchyEvent events, either from itself or from its
ancestors. |
boolean |
needsManagerViewsHierarchyEvent()
Returns whether the manager needs to receive ManagerViewsChangedEvent events, either from itself or from its
ancestors. |
boolean |
objectIsSelectable(IlvGraphic obj)
Returns true if the object can be selected with
the select interactor (IlvSelectInteractor). |
protected void |
objectRemoved(IlvGraphic obj)
This method is called when an object is removed from the manager. |
IlvGraphicEnumeration |
pasteSelection(IlvPoint p,
boolean select)
Pastes the graphic objects saved in the clipboard into the manager. |
void |
print(Graphics dst,
IlvRect area,
IlvManagerView view,
IlvTransformer t,
boolean allLayers)
Prints the contents of the manager. |
boolean |
processEvent(AWTEvent evt,
IlvManagerView view)
Handles the events in the specified view of the manager. |
protected boolean |
processEvent(IlvGraphic obj,
AWTEvent event,
IlvManagerView view)
Sends the event to an object. |
boolean |
processHoverHighlightingEvent(AWTEvent event,
IlvManagerView view)
Handles the hover highlighting events in the specified view of the manager. |
boolean |
read(InputStream stream)
Reads an ILOG JViews formatted file in the manager. |
boolean |
read(String filename)
Reads an ILOG JViews formatted file in the manager. |
boolean |
read(URL url)
Reads an ILOG JViews formatted file from an URL. |
void |
reDraw()
Redraws all the views of the manager. |
void |
reDrawObj(IlvGraphic obj)
Redraws a graphic object of the manager. |
void |
reDrawRegion(IlvRegion region)
Redraws a region of the manager. |
void |
reDrawViews()
Redraws all the invalid regions of the manager views. |
void |
removeAccelerator(IlvAccelerator a)
Removes an accelerator from the manager. |
void |
removeGraphicBagHierarchyListener(GraphicBagHierarchyListener listener)
Removes the specified listener so that it no longer receives events from ancestor manager and from this manager when the hierarchy of managers has changed. |
void |
removeLayer(int layer,
boolean redraw)
Removes the layer at the specified index. |
void |
removeManagerContentChangedListener(ManagerContentChangedListener listener)
Removes the specified listener so that it no longer receives events from this manager when the contents of the manager change. |
void |
removeManagerExpansionListener(ManagerExpansionListener listener)
Removes the specified listener so that it no longer receives events from this manager when the manager is collapsed or expanded. |
void |
removeManagerLayerListener(ManagerLayerListener listener)
Removes the specified listener so that it no longer receives layer-changed events from this manager. |
void |
removeManagerSelectionListener(ManagerSelectionListener listener)
Removes the specified selection listener so that it no longer receives events from the manager when the selection changes. |
void |
removeManagerTreeContentChangedListener(ManagerContentChangedListener listener)
Removes the specified listener so that it no longer receives events from this manager and its submanagers when the contents change. |
void |
removeManagerTreeSelectionListener(ManagerSelectionListener listener)
Removes the specified selection listener so that it no longer receives events from the manager or its submanager when the selection changes. |
void |
removeManagerViewsHierarchyListener(ManagerViewsChangedListener listener)
Removes the specified listener so that it no longer receives events from ancestors and from this manager when a manager view was added or removed. |
void |
removeManagerViewsListener(ManagerViewsChangedListener listener)
Removes the specified listener so that it no longer receives events from this manager when a view is added or removed. |
void |
removeObject(IlvGraphic obj,
boolean redraw)
Removes the specified object from the manager. |
boolean |
removeProperty(String key)
Removes a property. |
void |
replaceObject(IlvGraphic oldObject,
IlvGraphic newObject,
boolean redraw)
Replaces an object of the IlvManager by another one. |
boolean |
replaceProperty(String key,
Object value)
Replaces the value of an existing property. |
void |
reshapeObject(IlvGraphic obj,
IlvRect newrect,
boolean redraw)
Changes the size of the specified object. |
void |
selectAll(boolean redraw)
Selects all the visible graphic objects in the manager. |
void |
selectAll(boolean traverse,
boolean redraw)
Selects all the visible graphic objects in the manager. |
void |
selectAll(IlvManagerView view,
boolean redraw)
Selects all the graphic objects that are visible in a view. |
protected void |
selectionChanged( |