Perforce JViews Framework Code Example: Sub Manager or Grapher
Description
This sample shows how to:
- Create sub managers or sub graphers,
- Use IlvDefaultManagerFrame,
- Use IlvConstantModeManagerFrame.
How to Use the Code Example
- This sample does not run as an applet. See "How to Run the Sample as an Application" for information on how to start the sample.
-
This application displays an
IlvManagerView
. The view contains a sub-manager and a sub-grapher. The sub-manager is created using aIlvConstantModeManagerFrame
, the sub-grapher using aIlvDefaultManagerFrame
. -
A
IlvSelectInteractor
is added to theIlvManagerView
instance. - Select, move, and reshape the sub-manager and sub-grapher to see how constant and default manager frames interact.
How to Run the Code Example as an Application
This code example can
be run as an application.
The installation directory contains
an executable JAR file,
subgraphs.jar
,
that allows you to execute the code example with a double click from a
file browser. Note that if you are using Internet Explorer, you can
open the installation directory
and execute the JAR file from the browser. This
technique may not work in other Web browsers.
Alternatively, you
can run the code example application from the command line.
First check that the Ant utility is properly configured. If not, see the
instructions on how to configure Ant for Perforce JViews.
Then, go to the installation directory
of the code example and type:
ant run
Topics Covered
- Nested Manager
- Manager Frames
Installation Directory
The Sub Manager or Grapher code example is installed here.
Classes Involved
- ilog.views.IlvDefaultManagerFrame
- ilog.views.IlvConstantModeManagerFrame
- ilog.views.graphic.IlvRectangle
- ilog.views.IlvGrapher
- ilog.views.IlvManager
- ilog.views.IlvManagerView
- ilog.views.swing.IlvJScrollManagerView
- ilog.views.accelerator.IlvIdentityAccelerator
- ilog.views.accelerator.IlvZoomOutAccelerator
- ilog.views.accelerator.IlvZoomInAccelerator
- ilog.views.interactor.IlvSelectInteractor