Release Notes > JViews TGO 7.5 Release Notes > New Features > Styling

The new styling features concern the following:

Look and Feel

The global settings of the look and feel can now be customized using CSS.

Refer to the section Styling>Using Cascading Style Sheets>Using Global Settings in the JViews TGO User's Documentation for an overview and in subsequent sections for details.

CSS Functions Configuration

It is now possible to configure CSS functions in a modular way using different CSS files. This configuration is now achieved using indexed property functions, as illustrated below:

StyleSheet {
  functions[0]: "ilog.cpl.css.ByteFunction";
  functions[1]: "ilog.cpl.css.NoopFunction";
}

Label Layout Configuration

IltAnnealingLabelLayout has been extended to support distinct configurations for objects and obstacles. By default, all object types are considered as obstacles by the label layout. The CSS properties used are:

The configuration can now be achieved in the following way:

LabelLayout {
  class: "ilog.tgo.graphic.graphlayout.labellayout.IltAnnealingLabelLayout";
  obstacleOffset: 3;
  labelOffset: 3;
  objects[0]: LINKS;
  objects[1]: NETWORK_ELEMENTS;
  objects[2]: POLY_GROUPS;
}