Perforce JViews Framework Code Example: Hover Highlight
Description
This sample shows how to set and change the hover on highlight image operation on a sample manager, and how to create new image operations.
How to Use the Code Example
- This application displays a sample graph, including simple graphical objects, images, submanagers and IlvJComponentGraphic.
- When you hover the mouse on each specific object, the hover highlight image operation is applied, and you can see what effect it has on the view.
- You can select various image operations. The 5 first ones are predefined in JViews, the rest of operations available in the combo box at the bottom of the window are defined in the code sample itself.
- You can also change the opacity of the effect. In fact, this effect is displayed on top of the regular appearance of the object, and by using the slider at the bottom of the window, you can make that effect more or less visible.
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,
hoverhighlight.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
- Hover Highlight
Installation Directory
The Hover Highlight code example is installed here.
Classes Involved
- ilog.views.IlvHoverHighlightingImageOperation
- ilog.views.IlvDefaultManagerFrame
- ilog.views.graphic.IlvIcon
- ilog.views.graphic.IlvPolylineLinkImage
- ilog.views.graphic.IlvRectangle
- ilog.views.graphic.IlvShadowRectangle
- ilog.views.graphic.IlvText
- ilog.views.swing.IlvJComponentGraphic
- ilog.views.IlvGrapher
- ilog.views.IlvManagerView
- ilog.views.swing.IlvJScrollManagerView
- ilog.views.swing.IlvJManagerViewControlBar