public class ResizableImageWidget
extends org.netbeans.api.visual.widget.Widget
Modifier and Type | Field and Description |
---|---|
protected java.awt.image.ImageObserver |
_observer
The image observer.
|
Constructor and Description |
---|
ResizableImageWidget(org.netbeans.api.visual.widget.Scene scene)
Creates an image widget.
|
ResizableImageWidget(org.netbeans.api.visual.widget.Scene scene,
java.awt.Image image)
Creates an image widget.
|
Modifier and Type | Method and Description |
---|---|
protected java.awt.Rectangle |
calculateClientArea()
Calculates a client area of the image.
|
java.awt.Image |
getImage()
Returns an image.
|
boolean |
isPaintAsDisabled()
Returns whether the label is painted as disabled.
|
protected void |
paintWidget()
Paints the image widget.
|
void |
setImage(java.awt.Image image)
Sets an image.
|
void |
setPaintAsDisabled(boolean paintAsDisabled)
Sets whether the label is painted as disabled.
|
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, 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, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, 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
public ResizableImageWidget(org.netbeans.api.visual.widget.Scene scene)
scene
- The scene.public ResizableImageWidget(org.netbeans.api.visual.widget.Scene scene, java.awt.Image image)
scene
- The scene.image
- The image.public java.awt.Image getImage()
setImage(Image)
public boolean isPaintAsDisabled()
public void setImage(java.awt.Image image)
image
- The imagegetImage()
public void setPaintAsDisabled(boolean paintAsDisabled)
paintAsDisabled
- If true, then the label is painted as disabled.protected java.awt.Rectangle calculateClientArea()
calculateClientArea
in class org.netbeans.api.visual.widget.Widget
protected void paintWidget()
paintWidget
in class org.netbeans.api.visual.widget.Widget