|
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.ImageWidget
public class ImageWidget
A widget representing image. The origin of the widget is at its top-left corner.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget |
---|
Widget.Dependency |
Constructor Summary | |
---|---|
ImageWidget(Scene scene)
Creates an image widget. |
|
ImageWidget(Scene scene,
Image image)
Creates an image widget. |
Method Summary | |
---|---|
protected Rectangle |
calculateClientArea()
Calculates a client area of the image |
Image |
getImage()
Returns an image. |
boolean |
isPaintAsDisabled()
Returns whether the label is painted as disabled. |
protected void |
paintWidget()
Paints the image widget. |
void |
setImage(Image image)
Sets an image |
void |
setPaintAsDisabled(boolean paintAsDisabled)
Sets whether the label is painted as disabled. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageWidget(Scene scene)
scene
- the scenepublic ImageWidget(Scene scene, Image image)
scene
- the sceneimage
- the imageMethod Detail |
---|
public Image getImage()
public void setImage(Image image)
image
- the imagepublic boolean isPaintAsDisabled()
public void setPaintAsDisabled(boolean paintAsDisabled)
paintAsDisabled
- if true, then the label is painted as disabledprotected Rectangle calculateClientArea()
calculateClientArea
in class Widget
protected void paintWidget()
paintWidget
in class Widget
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |