The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

yEd::Node::GenericNode - Generic node type

DESCRIPTION

This is a very generic node type. Its shape is defined by its configuration property. Special configurations are defined by using java style properties. This indeed makes the Node type very generic and versatile but also cumbersome to configure as you don't have a GUI.

For configuration of these java style properties use getJavaStyle() and setJavaStyle().

Make sure to have a look at yEd::Node, the properties and functions described there will not be repeated here.

SUPPORTED FEATURES

The GenericNode type are the nodes defined in the following yEd groups:

  • Modern Nodes

  • Flowchart

  • BPMN

  • Entity Relationship

However the node types defined in BPMN are not supported, yet.

The Entity Relationship Nodes are added with no Labels, you have to provide them yourself.

For basic Node type feature support and which Node types are supported see yEd::Node.

PROPERTIES

all properties from base class

yEd::Node

configuration

Type: descrete values ( see "CONFIGURATIONS" section )

Default: 'com.yworks.flowchart.cloud'

The specialized type of GenericNode.

The cloud has been choosen as default because I think people may need it as basic shape even if not working on a flowchart and on the other hand it is one of the types with a rather long identifier.

SUBROUTINES/METHODS

all functions from base class

yEd::Node

setJavaStyle

Takes arguments of the form 'property1 => value, property2 => value2, ...' and sets the provided java style properties accordingly.

EXAMPLE

    $node->setJavaStyle('y.view.ShadowNodePainter.SHADOW_PAINTING' => 'true');

getJavaStyle

Takes a java style property name as parameter and returns its current value.

EXAMPLE

    if ($node->getJavaStyle('y.view.ShadowNodePainter.SHADOW_PAINTING') eq 'true') { ...

KNOWN JAVA STYLE PROPERTIES

See "CONFIGURATIONS" for which configuration supports which style.

ModernNodeShadow

Type: java.lang.Boolean ('true'|'false')

Default: 'false'

use shadow

ModernNodeRadius

Type: java.lang.Double (ufloat, no negative values allowed here)

Default: 10.0

corner radius

y.view.ShadowNodePainter.SHADOW_PAINTING

Type: java.lang.Boolean ('true'|'false')

Default: 'false'

use shadow

com.yworks.flowchart.style.orientation

Type: java.lang.Byte (^[01234]$)

Default: 0

orientation of single side border (0 = auto, 1..4 = edges)

doubleBorder

Type: java.lang.Boolean ('true'|'false')

Default 'false'

draw a second border with a slight inset to the first

CONFIGURATIONS

yEd Group: Modern Nodes

Styles all: ModernNodeRadius , ModernNodeShadow

Configurations:

  • BevelNode

  • BevelNode2

  • BevelNode3

  • BevelNodeWithShadow

  • ShinyPlateNode

  • ShinyPlateNode2

  • ShinyPlateNode3

  • ShinyPlateNodeWithShadow

yEd Group: Flowchart

Styles all: y.view.ShadowNodePainter.SHADOW_PAINTING

Configurations:

  • com.yworks.flowchart.start1

  • com.yworks.flowchart.start2

  • com.yworks.flowchart.terminator

  • com.yworks.flowchart.process

  • com.yworks.flowchart.predefinedProcess

  • com.yworks.flowchart.decision

  • com.yworks.flowchart.loopLimit

  • com.yworks.flowchart.loopLimitEnd

  • com.yworks.flowchart.document

  • com.yworks.flowchart.data

  • com.yworks.flowchart.directData

  • com.yworks.flowchart.storedData

  • com.yworks.flowchart.sequentialData

  • com.yworks.flowchart.dataBase

  • com.yworks.flowchart.internalStorage

  • com.yworks.flowchart.manualInput

  • com.yworks.flowchart.card

  • com.yworks.flowchart.paperType

  • com.yworks.flowchart.cloud

  • com.yworks.flowchart.delay

  • com.yworks.flowchart.display

  • com.yworks.flowchart.manualOperation

  • com.yworks.flowchart.preparation

  • com.yworks.flowchart.onPageReference

  • com.yworks.flowchart.offPageReference

  • com.yworks.flowchart.userMessage

  • com.yworks.flowchart.networkMessage

  • com.yworks.flowchart.annotation

    Styles: y.view.ShadowNodePainter.SHADOW_PAINTING , com.yworks.flowchart.style.orientation

yEd Group: Entity Relationship

Configurations:

  • com.yworks.entityRelationship.big_entity

    Styles: y.view.ShadowNodePainter.SHADOW_PAINTING

  • com.yworks.entityRelationship.small_entity

    Styles: y.view.ShadowNodePainter.SHADOW_PAINTING , doubleBorder

  • com.yworks.entityRelationship.relationship

    Styles: y.view.ShadowNodePainter.SHADOW_PAINTING , doubleBorder

  • com.yworks.entityRelationship.attribute

    Styles: y.view.ShadowNodePainter.SHADOW_PAINTING , doubleBorder

SEE ALSO

yEd::Document for further informations about the whole package

yEd::PropertyBasedObject for further basic information about properties and their additional functions

yEd::Node for information about the Node base class and which other Node types are currently supported