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

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

org.netbeans.api.visual 2.2

org.netbeans.api.visual.widget.general
Class IconNodeWidget

java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by org.netbeans.api.visual.widget.general.IconNodeWidget

public class IconNodeWidget
extends Widget

This class represents a general icon node widget which is rendered as a image and a label placed to the right or bottom from the image.


Nested Class Summary
static class IconNodeWidget.TextOrientation
          The text orientation specified relatively to the image
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
Widget.Dependency
 
Constructor Summary
IconNodeWidget(Scene scene)
          Creates an icon node widget with bottom-center orientation.
IconNodeWidget(Scene scene, IconNodeWidget.TextOrientation orientation)
          Creates an icon node widget with a specified orientation.
 
Method Summary
 ImageWidget getImageWidget()
          Returns the image widget part of the icon node widget.
 LabelWidget getLabelWidget()
          Returns the label widget part of the icon node widget.
 void notifyStateChanged(ObjectState previousState, ObjectState state)
          Implements the widget-state specific look of the widget.
 void setImage(Image image)
          Sets an image.
 void setLabel(String label)
          Sets a label.
 
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

IconNodeWidget

public IconNodeWidget(Scene scene)
Creates an icon node widget with bottom-center orientation.

Parameters:
scene - the scene

IconNodeWidget

public IconNodeWidget(Scene scene,
                      IconNodeWidget.TextOrientation orientation)
Creates an icon node widget with a specified orientation.

Parameters:
scene - the scene
orientation - the text orientation
Method Detail

notifyStateChanged

public void notifyStateChanged(ObjectState previousState,
                               ObjectState state)
Implements the widget-state specific look of the widget.

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

setImage

public final void setImage(Image image)
Sets an image.

Parameters:
image - the image

setLabel

public final void setLabel(String label)
Sets a label.

Parameters:
label - the label

getImageWidget

public final ImageWidget getImageWidget()
Returns the image widget part of the icon node widget.

Returns:
the image widget

getLabelWidget

public final LabelWidget getLabelWidget()
Returns the label widget part of the icon node widget.

Returns:
the label widget

org.netbeans.api.visual 2.2

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