!--a11y-->
Predefined Types 
The global type repository provides a set of default values for specific types, which you can use to define your application. The predefined types are sorted according to their type classes:
· Color
· Font
· Border
· Shape
· Editprops
· State
· Label
· Layout
· Edge
· Node
The predefined Java colors are also predefined in JNet. You can reference them by their Java names. However, unlike in Java, only the first letter is written in a capital letter and the remaining letters are written in small letters.

Example:
Java: Color.BLACK
JNet: Black
Predefined Types
Type name |
Values |
Description |
JNetBackground |
<type name="JNetBackground"> <rgb>250,250,250</rgb> |
|
None |
<type name="None"> <rgb>-1,-1,-1</rgb> </types> |
No color |
SAP Colors according to SAP Branding.doc |
||
SAPBlue |
<type name="SAPBlue"> <rgb>0,51,102</rgb> </types> |
|
SAPGold |
<type name="SAPGold"> <rgb>255,153,0</rgb> </types> |
|
SAPGray |
<type name="SAPGray"> <rgb>153,153,153</rgb> </types> |
|
SAP697 |
<type name="SAP697"> <rgb>153,51,51</rgb> </types> |
|
SAP364 |
<type name="SAP364"> <rgb>51,102,51</rgb> </types> |
|
Default values:
<name>Dialog</name>
<style>PLAIN</style>
<size>12</size>
Predefined Types
Type name |
Values |
Description |
Dialog |
<type name="Serif"> <family>dialog</family> <name>Dialog</name> <style>PLAIN</style> <size>12</size> </type> |
|
Serif |
<type name="Serif"> <family>serif</family> <name>Serif</name> </type> |
|
Monospaced |
<type name="Monospaced"> <family>monospaced</family> <name>Monospaced</name> </type> |
|
BigMono |
<type name="BigMono" inherits="Monospaced"> <style>ITALIC</style> <size>22</size> </type> |
|
Default values:
<thickness>0</thickness>
<stroke>SOLID</stroke>
<color type="Black" />
Predefined Types
Type name |
Values |
Description |
Empty |
<type name="Empty" /> |
No border |
Line |
<type name="Line" > <thickness>1</thickness> </type> |
Thin border |
StrongLine |
<type name="StrongLine" > <thickness>2</thickness> </type> |
Thick border |
Default values: (An outlined, unfilled rectangle)
<shape>RECTANGLE</shape>
<filled>TRUE</filled>
<fillColor type="LightGray" />
<border type="Line" />
Predefined Types
Type name |
Values |
Description |
Box |
<type name="Box"> <shape>RECTANGLE</shape> </type> |
|
RoundedBox |
<type name="RoundedBox"> <shape arcwidth="50%" archeight="100%">ROUNDEDRECT</shape> </type> |
|
Diamond |
<type name="Diamond"> <shape>DIAMOND</shape> </type> |
|
Container |
<type name="Container"> <border type="Empty" /> <fillColor type="None" /> </type> |
Transparent box without border |
Default values:
<selectable>TRUE</selectable>
<moveable>TRUE</moveable>
<sizeable>TRUE</sizeable>
<deleteable>TRUE</deleteable>
<editable>TRUE</editable>
Predefined Types
Type name |
Values |
Description |
Unsizeable |
<type name="Unsizeable"> <sizeable>FALSE</sizeable> </type> |
Object cannot be resized |
Unmoveable |
<type name="Unmoveable"> <moveable>FALSE</moveable> <sizeable>FALSE</sizeable> <deleteable>FALSE</deleteable> </type> |
Object cannot be moved, resized, or deleted |
Untouchable |
<type name="Untouchable"> <selectable>FALSE</selectable> <moveable>FALSE</moveable> <sizeable>FALSE</sizeable> <deleteable>FALSE</deleteable> <editable>FALSE</editable> </type> |
Object cannot be selected, moved, resized, deleted, or edited |
EditOnly |
<type name="EditOnly" inherits="Untouchable"> <editable>TRUE</editable> </type> |
Object cannot be selected, moved, resized, or deleted, but can be edited |
SelectOnly |
<type name="SelectOnly" inherits="Untouchable"> <selectable>TRUE</selectable> </type> |
Object cannot be moved, resized, deleted, or edited, but can be selected |
Default values:
<visible>TRUE</visible>
<enabled>TRUE</enabled>
<selected>FALSE</selected>
Predefined Types
Type name |
Values |
Description |
Invisible |
<type name="Invisible" > <visible>FALSE</visible> </type> |
Object is not visible |
Default values:
<color type="Black" />
<font type="Dialog" />
<mime-type>PLAIN</mime-type>
<icon position="WEST" />
<halign>CENTER</halign>
<valign>CENTER</valign>
<halignText>CENTER</halignText>
<valignText>CENTER</valignText>
<multiline>FALSE</multiline>
<editprops type="EditOnly"/>
Predefined Types
Type name |
Values |
Description |
Dialog20 |
<type name="Dialog20"> <font type="Dialog"> <size>20</size> </font> </type> |
Default label twice the size |
DialogSmall |
<type name="DialogSmall"> <font type="Dialog"> <size>8</size> </font> </type> |
Default label smaller |
Html |
<type name="Html"> <mime-type>HTML</mime-type> </type> |
Label for HTML texts |
SimpleNodeLabel |
<type name="SimpleNodeLabel"> <halignText>CENTER</halignText> <valignText>CENTER</valignText> </type> |
Default label |
NodeLabel |
<type name="NodeLabel"> <halignText>CENTER</halignText> <valignText>CENTER</valignText> <multiline>TRUE</multiline> <fittosize>TRUE</fittosize> </type> |
Label with line breaks. Text is cut off, if it is too long. |
Icon |
<type name="Icon"> <halignText>CENTER</halignText> <valignText>CENTER</valignText> </type> |
Label is an icon |
HiddenLabel |
<type name="HiddenLabel"> <state type="Invisible"/> </type> |
Is used for applications with JNet code of their own. They can use the label to transfer hidden information for each node from the (backend) application to the applet. |
Predefined Types
Type name |
Values |
Description |
PERT1
|
<type name="PERT1"> <component index="0" width="33%" height="33%" /> <component index="1" width="33%" height="33%" /> <component index="2" width="34%" height="33%" /> <component index="3" width="100%" height="33%" /> <component index="4" width="33%" height="34%" /> <component index="5" width="33%" height="34%" /> <component index="6" width="34%" height="34%" /> </type> |
See node type PERT1 in Visio |
PERT2
|
<type name="PERT2"> <component index="0" width="100%" height="33%" /> <component index="1" width="50%" height="33%" /> <component index="2" width="50%" height="33%" /> <component index="3" width="50%" height="34%" /> <component index="4" width="50%" height="34%" /> </type> |
See node type PERT2 in Visio |
Default values: (a straight black line with a small triangle as arrowhead)
<editprops >
<deleteable>FALSE</deleteable>(the default edge is only deletable through the node it comes from)
</editprops>
<color type="Black" />
<label>
<valignText>BOTTOM</valignText>
</label>
<thickness>2</thickness>
<shape>STRAIGHT</shape>
<style>RECT</style>
<stroke>SOLID</stroke>
Predefined Types
Type name |
Values |
Description |
FixLink |
<type name="FixLink"> <editprops type="Untouchable" /> </type> |
An edge that the user cannot change
|
Default values: (The default node has exactly one socket and one plug. Since the default direction of a graph is horizontal (left to right), their position is on the left and right side of a node. The individual socket or plug is identified using the parameter 'index'. The value is 0-based.)
<editprops type="Unsizeable" />
<state type="Default" />
<shape type="Box" />
<sockets min="1" max="UNLIMITED" position="WEST"/>
<plugs min="1" max="UNLIMITED" position="EAST"/>
Predefined Types
Type name |
Values |
Description |
NodeContainer |
<type name="NodeContainer"> <editprops type="Default" /> <sockets min="1" /> <plugs min="0" positionMode="CENTRIC" /> <zorderLayer>-1</zorderLayer> <container state="EXPANDED" /> </type> |
Container node that groups multiple nodes |
NodeTopDown
|
<type name="NodeTopDown"> <sockets position="NORTH"/> <plugs position="SOUTH"/> </type> |
A node for graphs, whose direction is from top to bottom (default direction is from left to right) |