| Getting Started > Tutorial: Getting Started with ILOG JViews TGO > Configuring the Network Component |
Configuring the Network Component |
INDEX
PREVIOUS
NEXT
|
You can configure the background, behavior, and other aspects of the network component in a cascading style sheet file. See Configuring a Network Component through a CSS File in the Graphic Components documentation for detailed information on the content of this type of file. This section shows you how to read in one or more network configuration files.
Three network configuration files are loaded:
<installdir>/tutorials/gettingStarted/data/networkConfiguration.css
<installdir>/tutorials/gettingStarted/data/networkBackground.css
<installdir>/tutorials/gettingStarted/data/network.css
This part of the code is referred to as Step 4.
void step4() {
setStyleSheets method of the network component class. This method reads a configuration into an existing network, replacing the previous configuration. See Configuring a Network Component through a CSS File in the Graphic Components documentation for a detailed description of the properties used in this type of file.
ilog.cpl.network.action.toolbar package; the names found in the CSS file correspond to the class name of the button, without the IlpNetwork prefix and with the Button suffix. When invoked, each button sets its associated interactor to the network component.
ilog.cpl.network.action.toolbar package for a complete list.
networkConfiguration.css file is nearly the same as the default configuration of the network component toolbar, except that it disables the moving of nodes. Moving nodes is disabled by setting the moveAllowed property of the Select interactor to false. In real life, this feature could be useful for preventing accidental changes to the network layout. See Selection Interactor in the Graphic Components documentation for more details.
The sample with a configured network component should look as shown in Figure 2.4.
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |