Overview
A ButtonNode provides interaction which is an equivalent to onMouseClicked
and is rendered according to it's visualization mode which needs to be set to either a FXTopicType or to a FXAssocType.
(The Types has to manually updated or given along with the Buttons definition.)
Specialities are:
- it can be weighted in two directions fatness and length IF it's visualization of type ASSOCIATION
- It has a lower label if it represents a FXTopicType (so it's visualization mode is
TOPIC
)- label can be rotated if needed, while button is fixed (imagine a carussel) see ButtonNode#pivot and ButtonNode#labelRotation attributes
the code:
ButtonNode {
id: "DummyTopic"
title: "Example Topic"
topicType: FXTopicType {
borderColor: "#FFFFCC";
bgColor: "#880000";
id: "tt-generic"
size: 10
iconFile: "generic.gif"
name: "Topic";
}
fat: 10
visualization: "Topic"
}
produces:
Profile: common, desktop
Script Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public | ASSOCIATION | String | ![]() | ||||
public | TOPIC | String | ![]() |
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public | assocType | FXAssocType | ![]() | ![]() | ![]() |
is serving the attributes for graphical representation like fillColor and strokeColor |
|
public | blabel | Label | ![]() | ![]() | ![]() |
a label visible for a ButtonNode which visualziation is ![]() a label visible for a ButtonNode which visualziation is |
|
public | buton | Group | ![]() | ![]() | ![]() |
The Group which aggregates all Elements that make a ButtonNode |
|
public | fat | Number | ![]() | ![]() | ![]() | ||
public-init | iconFile | String | ![]() | ![]() |
When a ButtonNode is of type TOPIC and the FXTopicType has an icon set, it is rendered onto the center and the top level of a ButtonNode |
||
public-init | isAssoc | Boolean | ![]() | ![]() | |||
public-init | isButton | Boolean | ![]() | ![]() | |||
public | labelRotate | <any> | ![]() | ![]() | ![]() | ||
public | labelRotation | Number | ![]() | ![]() | ![]() | ||
public | long | Number | ![]() | ![]() | ![]() | ||
public | mapColor | Color | ![]() | ![]() | ![]() |
is white but needs be updated when mapView is changed when used in combination with PresentationTopic |
|
public | myCircle | Circle | ![]() | ![]() | ![]() |
the shape for a |
|
public | onActivate | function(:FXType,:Point2D):Void | ![]() | ![]() | ![]() |
The onActivate Event Attribute is executed when one of the element that make a button are clicked. |
|
public | pivot | Circle | ![]() | ![]() | ![]() | ||
public | rect | Rectangle | ![]() | ![]() | ![]() |
the rectangulare shape is currently not in use |
|
public | title | String | ![]() | ![]() | ![]() | ||
public | topicType | FXTopicType | ![]() | ![]() | ![]() |
is serving the atributes for graphical representation like radius, strokeColor, fillColor and iconFile |
|
public-init | visualization | String | ![]() | ![]() | |||
public | xPos | Number | ![]() | ![]() | ![]() | ||
public | yPos | Number | ![]() | ![]() | ![]() |
Inherited Variables
Function Summary
- public create() : Node