public class ImageWidget extends Widget
Widget.Dependency| Constructor | Description |
|---|---|
ImageWidget(Scene scene) |
Creates an image widget.
|
ImageWidget(Scene scene,
java.awt.Image image) |
Creates an image widget.
|
| Modifier and Type | Method | 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.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddChild, 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, updateResourcespublic ImageWidget(Scene scene)
scene - the scenepublic ImageWidget(Scene scene, java.awt.Image image)
scene - the sceneimage - the imagepublic java.awt.Image getImage()
public void setImage(java.awt.Image image)
image - the imagepublic boolean isPaintAsDisabled()
public void setPaintAsDisabled(boolean paintAsDisabled)
paintAsDisabled - if true, then the label is painted as disabledprotected java.awt.Rectangle calculateClientArea()
calculateClientArea in class Widgetprotected void paintWidget()
paintWidget in class WidgetBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.