net.kwfgrid.gwui.graphview
Class TransitionNodePainter2

java.lang.Object
  extended by org.glassbox.graphview.TextNodePainter2
      extended by net.kwfgrid.gwui.graphview.TransitionNodePainter2
All Implemented Interfaces:
NodePainter, ZoomableNodePainter, Member

public class TransitionNodePainter2
extends TextNodePainter2
implements Member

The painter for TransitionNodes.
This painter has the following properties which can be configured via the application's theme:


Nested Class Summary
protected static class TransitionNodePainter2.TransitionImageNodePainter
          Painter for the icons of the nodes.
protected static class TransitionNodePainter2.TransitionPainter
          Painter for inner part of the nodes.
 
Field Summary
protected static java.awt.Color BLACK_BORDER_COLOR
           
protected static java.lang.String BLACK_BORDER_COLOR_KEY
           
protected static java.awt.Paint BLACK_PAINT
           
protected static java.lang.String BLACK_PAINT_KEY
           
protected static java.awt.Color BLUE_BORDER_COLOR
           
protected static java.lang.String BLUE_BORDER_COLOR_KEY
           
protected static java.awt.Paint BLUE_PAINT
           
protected static java.lang.String BLUE_PAINT_KEY
           
protected static java.awt.Font BOLD_FONT
           
protected static java.lang.String BOLD_FONT_KEY
           
protected static java.awt.Stroke BORDER_STROKE
           
protected static java.lang.String BORDER_STROKE_KEY
           
protected static java.awt.Insets BUTTON_INSETS
           
protected static java.lang.String BUTTON_INSETS_KEY
           
protected static java.awt.Color DEAD_BORDER_COLOR
           
protected static java.lang.String DEAD_BORDER_COLOR_KEY
           
protected static java.awt.Paint DEAD_PAINT
           
protected static java.lang.String DEAD_PAINT_KEY
           
protected static java.awt.Font DEFAULT_FONT
           
protected static java.lang.String DEFAULT_FONT_KEY
           
protected static java.awt.Color GREEN_BORDER_COLOR
           
protected static java.lang.String GREEN_BORDER_COLOR_KEY
           
protected static java.awt.Paint GREEN_PAINT
           
protected static java.lang.String GREEN_PAINT_KEY
           
static java.lang.String IDENTIFIER
           
protected static java.awt.Insets IMAGE_INSETS
           
protected static java.lang.String IMAGE_INSETS_KEY
           
protected static java.awt.Dimension IMAGE_SIZE
           
protected static java.lang.String IMAGE_SIZE_KEY
           
protected static java.awt.Insets INSETS
           
protected static java.awt.Color RED_BORDER_COLOR
           
protected static java.lang.String RED_BORDER_COLOR_KEY
           
protected static java.awt.Paint RED_PAINT
           
protected static java.lang.String RED_PAINT_KEY
           
protected static java.awt.Dimension SIZE
           
protected static java.lang.String SIZE_KEY
           
protected static java.awt.Color TEXT_COLOR
           
protected static java.lang.String TEXT_COLOR_KEY
           
protected static java.awt.Color YELLOW_BORDER_COLOR
           
protected static java.lang.String YELLOW_BORDER_COLOR_KEY
           
protected static java.awt.Paint YELLOW_PAINT
           
protected static java.lang.String YELLOW_PAINT_KEY
           
 
Fields inherited from class org.glassbox.graphview.TextNodePainter2
BOTTOM, TOP
 
Constructor Summary
TransitionNodePainter2()
           
 
Method Summary
 void addButton(NodeIconSet.Icon icon)
           
 Manipulator getGraphManipulator()
           
 Group getGroup()
          Get the group this member belongs to.
 java.lang.String getIdentifier()
          Get a unique identifier of the member.
protected  java.lang.String[] getText(Node node)
          Subclasses may override this method to provide the text to be painted for the specified node.
 void groupPropertyChanged(java.lang.String name, java.lang.Object oldvalue, java.lang.Object newvalue)
          Called by this member's group if a property of the group changed.
 void setGroup(Group group)
          Sets the group of this member.
 
Methods inherited from class org.glassbox.graphview.TextNodePainter2
getDelegate, getNodeScreenBounds, getTextBounds, getToolTipText, isInNode, paintNode, setZoomFactor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
See Also:
Constant Field Values

INSETS

protected static final java.awt.Insets INSETS

IMAGE_SIZE_KEY

protected static final java.lang.String IMAGE_SIZE_KEY
See Also:
Constant Field Values

IMAGE_SIZE

protected static final java.awt.Dimension IMAGE_SIZE

IMAGE_INSETS_KEY

protected static final java.lang.String IMAGE_INSETS_KEY
See Also:
Constant Field Values

IMAGE_INSETS

protected static final java.awt.Insets IMAGE_INSETS

DEFAULT_FONT_KEY

protected static final java.lang.String DEFAULT_FONT_KEY
See Also:
Constant Field Values

DEFAULT_FONT

protected static final java.awt.Font DEFAULT_FONT

BOLD_FONT_KEY

protected static final java.lang.String BOLD_FONT_KEY
See Also:
Constant Field Values

BOLD_FONT

protected static final java.awt.Font BOLD_FONT

BORDER_STROKE_KEY

protected static final java.lang.String BORDER_STROKE_KEY
See Also:
Constant Field Values

BORDER_STROKE

protected static final java.awt.Stroke BORDER_STROKE

SIZE_KEY

protected static final java.lang.String SIZE_KEY
See Also:
Constant Field Values

SIZE

protected static final java.awt.Dimension SIZE

TEXT_COLOR_KEY

protected static final java.lang.String TEXT_COLOR_KEY
See Also:
Constant Field Values

TEXT_COLOR

protected static final java.awt.Color TEXT_COLOR

BUTTON_INSETS_KEY

protected static final java.lang.String BUTTON_INSETS_KEY
See Also:
Constant Field Values

BUTTON_INSETS

protected static final java.awt.Insets BUTTON_INSETS

DEAD_BORDER_COLOR_KEY

protected static final java.lang.String DEAD_BORDER_COLOR_KEY
See Also:
Constant Field Values

DEAD_PAINT_KEY

protected static final java.lang.String DEAD_PAINT_KEY
See Also:
Constant Field Values

DEAD_BORDER_COLOR

protected static final java.awt.Color DEAD_BORDER_COLOR

DEAD_PAINT

protected static final java.awt.Paint DEAD_PAINT

BLACK_BORDER_COLOR_KEY

protected static final java.lang.String BLACK_BORDER_COLOR_KEY
See Also:
Constant Field Values

BLACK_PAINT_KEY

protected static final java.lang.String BLACK_PAINT_KEY
See Also:
Constant Field Values

BLACK_BORDER_COLOR

protected static final java.awt.Color BLACK_BORDER_COLOR

BLACK_PAINT

protected static final java.awt.Paint BLACK_PAINT

RED_BORDER_COLOR_KEY

protected static final java.lang.String RED_BORDER_COLOR_KEY
See Also:
Constant Field Values

RED_PAINT_KEY

protected static final java.lang.String RED_PAINT_KEY
See Also:
Constant Field Values

RED_BORDER_COLOR

protected static final java.awt.Color RED_BORDER_COLOR

RED_PAINT

protected static final java.awt.Paint RED_PAINT

YELLOW_BORDER_COLOR_KEY

protected static final java.lang.String YELLOW_BORDER_COLOR_KEY
See Also:
Constant Field Values

YELLOW_PAINT_KEY

protected static final java.lang.String YELLOW_PAINT_KEY
See Also:
Constant Field Values

YELLOW_BORDER_COLOR

protected static final java.awt.Color YELLOW_BORDER_COLOR

YELLOW_PAINT

protected static final java.awt.Paint YELLOW_PAINT

GREEN_BORDER_COLOR_KEY

protected static final java.lang.String GREEN_BORDER_COLOR_KEY
See Also:
Constant Field Values

GREEN_PAINT_KEY

protected static final java.lang.String GREEN_PAINT_KEY
See Also:
Constant Field Values

GREEN_BORDER_COLOR

protected static final java.awt.Color GREEN_BORDER_COLOR

GREEN_PAINT

protected static final java.awt.Paint GREEN_PAINT

BLUE_BORDER_COLOR_KEY

protected static final java.lang.String BLUE_BORDER_COLOR_KEY
See Also:
Constant Field Values

BLUE_PAINT_KEY

protected static final java.lang.String BLUE_PAINT_KEY
See Also:
Constant Field Values

BLUE_BORDER_COLOR

protected static final java.awt.Color BLUE_BORDER_COLOR

BLUE_PAINT

protected static final java.awt.Paint BLUE_PAINT
Constructor Detail

TransitionNodePainter2

public TransitionNodePainter2()
Method Detail

getText

protected java.lang.String[] getText(Node node)
Description copied from class: TextNodePainter2
Subclasses may override this method to provide the text to be painted for the specified node.

Overrides:
getText in class TextNodePainter2
Parameters:
node - The node to be painted.
Returns:
An array of strings: the lines of text to be painted for the node.

getGroup

public Group getGroup()
Description copied from interface: Member
Get the group this member belongs to.

Specified by:
getGroup in interface Member
Returns:
The group this member belong to or null if the member currently does not belong to a group.

getIdentifier

public java.lang.String getIdentifier()
Description copied from interface: Member
Get a unique identifier of the member.

Specified by:
getIdentifier in interface Member

groupPropertyChanged

public void groupPropertyChanged(java.lang.String name,
                                 java.lang.Object oldvalue,
                                 java.lang.Object newvalue)
Description copied from interface: Member
Called by this member's group if a property of the group changed.

Specified by:
groupPropertyChanged in interface Member

setGroup

public void setGroup(Group group)
              throws java.lang.IllegalArgumentException
Description copied from interface: Member
Sets the group of this member. This method will usually be called by the group itself when this member is added to or removed from it.

Specified by:
setGroup in interface Member
Throws:
java.lang.IllegalArgumentException

getGraphManipulator

public Manipulator getGraphManipulator()

addButton

public void addButton(NodeIconSet.Icon icon)


Copyright © 2005-2010 The K-Wf Grid Consortium. All Rights Reserved.