Perforce JViews Diagrammer Sample: Benchmark Timing
Description
This sample shows the performance of the Diagrammer component.
How to Use the Sample
- Press the Run button to create the graph with the default choices.
- Look at the performance results.
-
Select other:
- Graph sizes
- Node and link styles
- Node and link layouts
- Use the Help menu item for more explanations.
How to Run the Sample as an Application
This sample can
be run as an application.
The installation directory contains
a JAR file diagrammer-bench.jar
.
Do not double-click on this JAR file to start the demo, because it
needs extra arguments passed to the Java virtual machine.
Instead, you
can run the sample 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 sample and type:
ant run
Topics Covered
- Performance of the SDM engine and Graphics Framework.
Detailed Description
This sample shows the performance of the Diagrammer component
when creating and displaying graphs of various sizes using
various graphic features.
The graph is created using the Stylable Data Mapper (SDM), and
(optionally) the lower-level JViews Framework API to measure
the overhead of the SDM data mapping and styling features.
See this sample's help for more information.
Installation Directory
The Benchmark Timing sample is installed here.
Classes Involved
-
ilog.views.diagrammer.IlvDiagrammer
The main class of the diagram component.
-
ilog.views.sdm.IlvSDMEngine
The main class in the Stylable Data Mapper package.
-
ilog.views.sdm.IlvSDMModel
The interface describes a set of objects that constitute a graph of nodes connected by links.
Source Files
-
DiagrammerBench
The entry point of the sample.
-
GraphData
The class that generates the sample graphs.