public class ImageWidget extends Widget
Widget.Dependency
Constructor and Description |
---|
ImageWidget(Scene scene)
Creates an image widget.
|
ImageWidget(Scene scene,
Image image)
Creates an image widget.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 ImageWidget(Scene scene)
scene
- the scenepublic 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