XSlotLabels
, or by setting the attribute
xSlotIndex
. The properties listed in the following table can be used to
customize slot labels.
Property
Name |
Type |
Default
Value |
Description
|
---|---|---|---|
XSlotNumbersOnTop
|
boolean
|
true
|
Denotes
whether the slot numbers along the x axis are displayed on
top of the shelf or not. |
XSlotNumbersOffset
|
int |
1 |
Denotes
the distance between the slot numbers and the shelf along the
x axis. |
XSlotLabels
|
String[]
|
null
|
Denotes
the labels used on each slot along the x axis. |
labelVisible
|
boolean
|
true
|
Controls
whether the label is shown or not. |
labelAntialiasing
|
boolean
|
true
|
Controls
whether the label is drawn using anti-aliasing or not. |
labelFont
|
Font
|
Helvetica
12, except:
- in IltShelf: Helvetica 10
- in IltShelfItem: Helvetica 11 (Courier New
11 on Windows® )
|
Specifies
the font to use to draw the label. |
labelForeground
|
Color
|
black,
except:
- in IltEmptySlot: 50% gray
|
Gives
the color of the label text. |
object."ilog.tgo.model.IltShelf" { labelVisible: true; labelForeground: blue; XSlotNumbersOffset: 3; }
Property
Name |
Type |
Default
Value |
Description
|
---|---|---|---|
alarmBorderVisible
|
boolean
|
true
|
Indicates
whether the alarm border is visible or not around the object
base. |
alarmBorderWidth
|
int
|
2
pixels
|
Defines
the width of the alarm border |
alarmBorderColor
|
Color
|
null
(transparent)
|
Defines the color used to represent the alarm border around
the base. Setting the value to
null
resets the alarm border color to its default value
|
alarmColorVisible
|
boolean
|
false
|
Determines
whether the alarm color is visible or not in the object
value. |
object."ilog.tgo.model.IltShelf" { alarmBorderVisible: false; alarmColorVisible: false; }
ilog.tgo.Shelf_Type_<TYPE
NAME>
: shelf type labels
ilog.tgo.Shelf_Type_<TYPE
NAME>_ToolTip
: shelf type tooltips
IltShelf.Type MyType = new IltShelf.Type("MyType");
JTGOMessages.properties
file:
ilog.tgo.Shelf_Type_MyType=My Type
ilog.tgo.Shelf_Type_MyType_ToolTip=My
New Shelf Type
IltShelfBaseRenderer
. The principle is the same as to create a new
IltNEBaseRenderer
. For details, refer to Extending the class IltNEBaseRenderer.
IltShelf.Type MyType = new IltShelf.Type("MyType"); IltSettings.SetValue("Shelf.Type.MyType.Renderer", new IltBaseRendererFactory() { public IltBaseRenderer createValue() { return new MyTypeBaseRenderer(); } });
setting."ilog.tgo.model.IltShelf"{ types[0]: @+shelfType0; } Subobject#shelfType0 { class: 'ilog.tgo.model.IltShelf.Type'; name: "MyType"; }
renderer
.
setting."ilog.tgo.model.IltShelf.Type"[name="MyType"] { renderer: @+shelfRendererFactory; } Subobject#shelfRendererFactory { class: 'MyShelfRendererFactory'; }
MyShelfRendererFactory
.
IltTinyBaseRenderer
is the same as to create a new IltNEBaseRenderer.
IltShelf.Type MyType = new IltShelf.Type("MyType"); IltSettings.SetValue("Shelf.TinyType.MyType.Renderer", new IltTinyImageBaseRendererFactory(YOUR_IMAGE, YOUR_IMAGE_PARAMETERS));
tinyRenderer
.
MyShelfTinyRendererFactory
.
setting."ilog.tgo.model.IltShelf.Type"[name="MyType"] { tinyRenderer: @+shelfTinyRendererFactory0; } Subobject#shelfTinyRendererFactory0 { class: 'MyShelfTinyRendererFactory'; }