@Deprecated
public class SwImageButton
extends java.awt.Canvas
| Constructor and Description |
|---|
SwImageButton()
Deprecated.
Create a button that can integrate an image.
|
SwImageButton(java.awt.image.ImageProducer producer,
int width,
int height)
Deprecated.
Create an image button using an image producer.
|
SwImageButton(java.lang.String path,
int width,
int height)
Deprecated.
Create an image button with the image given by a path.
|
SwImageButton(java.net.URL url,
int width,
int height)
Deprecated.
Create an image button with the image given by an url.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Dimension |
getMinimumSize()
Deprecated.
|
java.awt.Dimension |
getPreferredSize()
Deprecated.
|
boolean |
getState()
Deprecated.
Returns the current state of the button.
|
void |
paint(java.awt.Graphics g)
Deprecated.
|
void |
setImage(java.awt.image.ImageProducer producer,
int width,
int height)
Deprecated.
Set the image of an image button using an image producer.
|
void |
setImage(java.lang.String path,
int width,
int height)
Deprecated.
Set the image of an image button given the path of an image.
|
void |
setImage(java.net.URL url,
int width,
int height)
Deprecated.
Set the image of an image button given the url of an image.
|
void |
setState(boolean bool)
Deprecated.
Changes the state of the button.
|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, updateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validatepublic SwImageButton()
public SwImageButton(java.net.URL url,
int width,
int height)
public SwImageButton(java.lang.String path,
int width,
int height)
public SwImageButton(java.awt.image.ImageProducer producer,
int width,
int height)
public void setImage(java.net.URL url,
int width,
int height)
public void setImage(java.lang.String path,
int width,
int height)
public void setImage(java.awt.image.ImageProducer producer,
int width,
int height)
public void paint(java.awt.Graphics g)
paint in class java.awt.Canvaspublic void setState(boolean bool)
public boolean getState()
public java.awt.Dimension getMinimumSize()
getMinimumSize in class java.awt.Componentpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.ComponentGenerated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com