org.netbeans.api.visual 2.17.1

org.netbeans.api.visual.vmd
Class VMDPinWidget

java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by org.netbeans.api.visual.vmd.VMDPinWidget
All Implemented Interfaces:
Accessible

public class VMDPinWidget
extends Widget

This class represents a pin widget in the VMD visualization style. The pin widget consists of a name and a glyph set.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
Widget.Dependency
 
Constructor Summary
VMDPinWidget(Scene scene)
          Creates a pin widget.
VMDPinWidget(Scene scene, VMDColorScheme scheme)
          Creates a pin widget with a specific color scheme.
 
Method Summary
 Anchor createAnchor()
          Creates a horizontally oriented anchor similar to VMDNodeWidget.createAnchorPin
 String getPinName()
          Returns a pin name.
 Widget getPinNameWidget()
          Returns a pin name widget.
protected  void notifyStateChanged(ObjectState previousState, ObjectState state)
          Called to notify about the change of the widget state.
 void setGlyphs(List<Image> glyphs)
          Sets pin glyphs.
 void setPinName(String name)
          Sets a pin name.
 void setProperties(String name, List<Image> glyphs)
          Sets all pin properties at once.
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, calculateClientArea, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getCursorAt, getDependencies, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getResourceTable, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isHitAt, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyBackgroundChanged, notifyFontChanged, notifyForegroundChanged, notifyRemoved, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBackgroundFromResource, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setFontFromResource, setForeground, setForegroundFromResource, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setResourceTable, setState, setToolTipText, setVisible, updateResources
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VMDPinWidget

public VMDPinWidget(Scene scene)
Creates a pin widget.

Parameters:
scene - the scene

VMDPinWidget

public VMDPinWidget(Scene scene,
                    VMDColorScheme scheme)
Creates a pin widget with a specific color scheme.

Parameters:
scene - the scene
scheme - the color scheme
Method Detail

notifyStateChanged

protected void notifyStateChanged(ObjectState previousState,
                                  ObjectState state)
Called to notify about the change of the widget state.

Overrides:
notifyStateChanged in class Widget
Parameters:
previousState - the previous state
state - the new state

getPinNameWidget

public Widget getPinNameWidget()
Returns a pin name widget.

Returns:
the pin name widget

setPinName

public void setPinName(String name)
Sets a pin name.

Parameters:
name - the pin name

getPinName

public String getPinName()
Returns a pin name.

Returns:
the pin name

setGlyphs

public void setGlyphs(List<Image> glyphs)
Sets pin glyphs.

Parameters:
glyphs - the list of images

setProperties

public void setProperties(String name,
                          List<Image> glyphs)
Sets all pin properties at once.

Parameters:
name - the pin name
glyphs - the pin glyphs

createAnchor

public Anchor createAnchor()
Creates a horizontally oriented anchor similar to VMDNodeWidget.createAnchorPin

Returns:
the anchor

org.netbeans.api.visual 2.17.1

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