站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

VMDPinWidget (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

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

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.
 
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, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isHitAt, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyRemoved, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setForeground, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setState, setToolTipText, setVisible
 
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
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.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.