| Styling > Customizing Links > Customizing Link Technology |
Customizing Link Technology |
INDEX
PREVIOUS
NEXT
|
This section shows how to create a new link technology. This operation is similar to adding a new media to links and involves three steps.
IltLink.Technology enumeration.
You can also create new link technologies by using global CSS settings, see Using Global Settings for more information):
setting."ilog.tgo.model.IltLink" {
technology[0]: @+linkTechnology0;
}
Subobject#linkTechnology0 {
class: 'ilog.tgo.model.IltLink.Technology';
name: "PacketSwitching";
}
You can obtain the same customization as with the API by using global CSS settings. To do so, you need to specify the full path to the object to be customized, as well as the value of its name attribute in order to match the right object in the system. The CSS properties to customize here are icon and color.
setting."ilog.tgo.model.IltLink.Technology"[name="PacketSwitching"] {
icon: '@|image("pSwitching.png")';
color: '#80C4D2';
}
The following properties allow you to customize the representation of link technology:
By default, the link technology is hidden, but you can show or hide it using the properties technologyIconVisible and technologyColorVisible as follows:
object."ilog.tgo.model.IltLink" {
technologyIconVisible: true;
technologyColorVisible: true;
}
Note that the primary state color of a link will override the technology color. You can force the link technology color by using the property baseStyleEnabled as follows:
object."ilog.tgo.model.IltLink" {
baseStyleEnabled: false;
}
The resource that applies to link technology is:
ilog.tgo.Link_Technology_<TECHNOLOGY NAME>_ToolTip: link technology tooltip
For the predefined link technology, you can edit this value directly in the JViews TGO resource bundle file.
For newly created technology values, the tooltip information will also be retrieved from this resource bundle. As you declare new technologies, register the corresponding entry into the resource bundle file so that tooltips can be automatically displayed.
Supposing that you have created the link technology PacketSwitching, you should declare the entry in the resource bundle file as follows:
ilog.tgo.Link_Technology_PacketSwitching_ToolTip=Packet Switching
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. All rights reserved. Legal terms. | PREVIOUS NEXT |