JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

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)
  • The whole ButtonNode-Group can be explicitly positioned through setting it's attrributes ButtonNode#xPos and ButtonNode#yPos An example using a ButtonNode with both visualization modes is..

    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

    accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
    publicASSOCIATIONString
    publicTOPICString

    Variable Summary

    accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
    publicassocTypeFXAssocType

    is serving the attributes for graphical representation like fillColor and strokeColor

    publicblabelLabel

    a label visible for a ButtonNode which visualziation is TOPIC, placed below a button.

    a label visible for a ButtonNode which visualziation is TOPIC, placed below a button. Per Default Free Sans, 10pt, BLACK, textwrap true, TextAlignment.LEFT, width is 50 chars.
    StylesheetClassName is "dmButtonNodeLabel"

     
    publicbutonGroup

    The Group which aggregates all Elements that make a ButtonNode

    publicfatNumber
    public-initiconFileString

    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-initisAssocBoolean
    public-initisButtonBoolean
    publiclabelRotate<any>
    publiclabelRotationNumber
    publiclongNumber
    publicmapColorColor

    is white but needs be updated when mapView is changed when used in combination with PresentationTopic

    publicmyCircleCircle

    the shape for a TOPIC visualization radius, color, strokeWidth and strokeColor are bound to the de.deepamehta.fxclient.view.ButtonNode#topicType

    publiconActivatefunction(:FXType,:Point2D):Void

    The onActivate Event Attribute is executed when one of the element that make a button are clicked.

    publicpivotCircle
    publicrectRectangle

    the rectangulare shape is currently not in use

    publictitleString
    publictopicTypeFXTopicType

    is serving the atributes for graphical representation like radius, strokeColor, fillColor and iconFile

    public-initvisualizationString
    publicxPosNumber
    publicyPosNumber

    Inherited Variables

    Function Summary

    public create() : Node

    When a ButtonNode is created all it's elements are contained within the public de.deepamehta.fxclient.view.ButtonNode#buton Group

    When a ButtonNode is created all it's elements are contained within the public de.deepamehta.fxclient.view.ButtonNode#buton Group

    Returns
    Node
    &nbsp;

    Inherited Functions