Property
Name |
Type
of Value |
Default
|
Description
|
---|---|---|---|
toolTipGraphic
|
IlvGraphic
or
JComponent
|
null
|
If the value is other than
null
, the given graphic object is used as the tooltip. If the
value is
null
, the tooltip will be a simple string as configured by the
toolTipText
property.
|
toolTipText
|
String
|
null
|
Tooltip text for the object, used only if toolTipGraphic is
null
. If the values of this property and the toolTipGraphic
property are both
null
, no tooltip is displayed.
|
toolTipFont
|
Font |
null
(the default tooltip font defined in the Java™ environment is
used)
|
Defines
the font to be used when creating text tooltips. |
toolTipForeground
|
Color
|
null
(the default tooltip foreground color defined in the Java
environment is used)
|
Defines
the foreground color to be used when creating text tooltips.
|
toolTipBackground
|
Color
|
null
(the default tooltip background color defined in the Java
environment is used)
|
Defines
the background color to be used when creating text tooltips.
|
object."ilog.tgo.model.IltObject" { toolTipText: @name; }
object."ilog.tgo.model.IltObject" { toolTipText: @name; toolTipFont: "arial-plain-12"; }
<HTML>
and then use HTML notation for text attributes. For example, the
tooltip shown in A two-line tooltip with different font
styles uses the following string:
<HTML>A <b>simple</b> tool tip<br>with <u>two</u> lines</HTML>
object."ilog.tgo.model.IltObject" { toolTipText: "<HTML>A <b>simple</b> tool tip<br>with <u>two</u> lines</ HTML>"; }
IlvGraphic
or
JComponent
instances. Graphic tooltips are customized in CSS through the
property '
toolTipGraphic
' as follows:
object."ilog.tgo.model.IltObject" { toolTipGraphic: @+myToolTip; } Subobject#myToolTip { class: 'ilog.views.graphic.IlvIcon'; image: '@|image("question.png")'; }
family
attribute.
object."ilog.tgo.model.IltNetworkElement/family" { toolTipText: @family; }
'name'
attribute displaying the full value of the attribute over the
label decoration so that you can still see the full name of the
object.
object."ilog.tgo.model.IltNetworkElement" { label: @name; labelWrappingMode: Truncate; labelWrappingWidth: 50; } object."ilog.tgo.model.IltNetworkElement/name" { toolTipText: @name; }
object."ilog.tgo.model.IltObject/objectState" { toolTipGraphic: @+SecStateModifierToolTipGraphic; } #SecStateModifierToolTipGraphic { class: 'ilog.tgo.graphic.IltSecStateModifierToolTipGraphic'; }