|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.general.IconNodeWidget
public class IconNodeWidget
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 java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IconNodeWidget(Scene scene)
scene
- the scenepublic IconNodeWidget(Scene scene, IconNodeWidget.TextOrientation orientation)
scene
- the sceneorientation
- the text orientationMethod Detail |
---|
public void notifyStateChanged(ObjectState previousState, ObjectState state)
notifyStateChanged
in class Widget
previousState
- the previous statestate
- the new statepublic final void setImage(Image image)
image
- the imagepublic final void setLabel(String label)
label
- the labelpublic final ImageWidget getImageWidget()
public final LabelWidget getLabelWidget()
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |