org.netbeans.api.visual 2.17.1

org.netbeans.api.visual.vmd
Class VMDColorScheme

java.lang.Object
  extended by org.netbeans.api.visual.vmd.VMDColorScheme

public abstract class VMDColorScheme
extends Object

This class specifies look and feel of vmd widgets. There are predefined schemes in VMDFactory class.

Since:
2.5

Constructor Summary
protected VMDColorScheme()
          Creates a new vmd color scheme.
 
Method Summary
abstract  Widget createPinCategoryWidget(VMDNodeWidget widget, String categoryDisplayName)
          Called to create a pin-category widget.
abstract  Image getMinimizeWidgetImage(VMDNodeWidget widget)
          Returns an minimize-widget image for a specific node widget.
abstract  int getNodeAnchorGap(VMDNodeAnchor anchor)
          Returns a gap size of a node-anchor from a node-widget.
abstract  void installUI(VMDConnectionWidget widget)
          Called to install UI to a connection widget.
abstract  void installUI(VMDNodeWidget widget)
          Called to install UI to a node widget.
abstract  void installUI(VMDPinWidget widget)
          Called to install UI to a pin widget.
abstract  boolean isNodeMinimizeButtonOnRight(VMDNodeWidget widget)
          Returns whether the node minimize button is on the right side of the node header.
abstract  void updateUI(VMDConnectionWidget widget, ObjectState previousState, ObjectState state)
          Called to update UI of a connection widget.
abstract  void updateUI(VMDNodeWidget widget, ObjectState previousState, ObjectState state)
          Called to update UI of a node widget.
abstract  void updateUI(VMDPinWidget widget, ObjectState previousState, ObjectState state)
          Called to update UI of a pin widget.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMDColorScheme

protected VMDColorScheme()
Creates a new vmd color scheme.

Since:
2.5
Method Detail

installUI

public abstract void installUI(VMDNodeWidget widget)
Called to install UI to a node widget.

Parameters:
widget - the node widget
Since:
2.5

updateUI

public abstract void updateUI(VMDNodeWidget widget,
                              ObjectState previousState,
                              ObjectState state)
Called to update UI of a node widget. Called from VMDNodeWidget.notifyStateChanged method.

Parameters:
widget - the node widget
previousState - the previous state
state - the new state
Since:
2.5

isNodeMinimizeButtonOnRight

public abstract boolean isNodeMinimizeButtonOnRight(VMDNodeWidget widget)
Returns whether the node minimize button is on the right side of the node header.

Parameters:
widget - the node widget
Returns:
true, if the button is on the right side; false, if the button is on the left side
Since:
2.5

getMinimizeWidgetImage

public abstract Image getMinimizeWidgetImage(VMDNodeWidget widget)
Returns an minimize-widget image for a specific node widget.

Parameters:
widget - the node widget
Returns:
the minimize-widget image
Since:
2.5

createPinCategoryWidget

public abstract Widget createPinCategoryWidget(VMDNodeWidget widget,
                                               String categoryDisplayName)
Called to create a pin-category widget.

Parameters:
widget - the node widget
categoryDisplayName - the category display name
Returns:
the pin-category widget
Since:
2.5

installUI

public abstract void installUI(VMDConnectionWidget widget)
Called to install UI to a connection widget.

Parameters:
widget - the connection widget
Since:
2.5

updateUI

public abstract void updateUI(VMDConnectionWidget widget,
                              ObjectState previousState,
                              ObjectState state)
Called to update UI of a connection widget. Called from VMDConnectionWidget.notifyStateChanged method.

Parameters:
widget - the connection widget
previousState - the previous state
state - the new state
Since:
2.5

installUI

public abstract void installUI(VMDPinWidget widget)
Called to install UI to a pin widget.

Parameters:
widget - the pin widget
Since:
2.5

updateUI

public abstract void updateUI(VMDPinWidget widget,
                              ObjectState previousState,
                              ObjectState state)
Called to update UI of a pin widget. Called from VMDPinWidget.notifyStateChanged method.

Parameters:
widget - the pin widget
previousState - the previous state
state - the new state
Since:
2.5

getNodeAnchorGap

public abstract int getNodeAnchorGap(VMDNodeAnchor anchor)
Returns a gap size of a node-anchor from a node-widget.

Parameters:
anchor - the node anchor
Returns:
the gap size
Since:
2.5

org.netbeans.api.visual 2.17.1

Built on November 10 2008.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.