| java.awt.Canvas org.w3c.tools.widgets.ImageButton
switchable | protected boolean switchable(Code) | | |
ImageButton | public ImageButton(Image img1, Image img2, String command)(Code) | | Construct an ImageButton with the specified action command
Parameters: img1 - The image of this ImageButton Parameters: img2 - The image of this ImageButton Parameters: command - The action command String |
ImageButton | public ImageButton(Image img1, Image img2)(Code) | | Construct an ImageButton with the specified action command
Parameters: img1 - The image of this ImageButton Parameters: realesed - The image of this ImageButton |
ImageButton | public ImageButton(Image img, String command)(Code) | | Construct an ImageButton with the specified action command
Parameters: img - The image of this ImageButton Parameters: command - The action command String |
ImageButton | public ImageButton(Image img)(Code) | | Construct an ImageButton with no action command
Parameters: img - The image of this ImageButton |
addActionListener | public synchronized void addActionListener(ActionListener al)(Code) | | Adds an action listener to this ImageButton
Parameters: al - The ActionListener |
fireActionEvent | protected void fireActionEvent()(Code) | | fire a new ActionEvent and process it, if some listeners are listening
|
getActionCommand | public String getActionCommand()(Code) | | Returns the action command String
|
getMinimumSize | public Dimension getMinimumSize()(Code) | | Returns the minimum size of the ImageButton
|
getPreferredSize | public Dimension getPreferredSize()(Code) | | Returns the preferred size of the ImageButton
|
imageUpdate | public boolean imageUpdate(Image img, int flaginfo, int x, int y, int width, int height)(Code) | | called when more informations about the image are available.
When the size is available, the ImageButton notifies its container
that the size may have changed.
See Also: java.awt.image.ImageObserver |
initSize | protected void initSize()(Code) | | Gets the size of the Image to calculate the minimum size of the
Button
|
max | int max(int a, int b)(Code) | | |
paint | public void paint(Graphics g)(Code) | | paint the ImageButton in its initial shape
Parameters: g - A Graphics |
paintShadow | protected void paintShadow(boolean raised)(Code) | | paints the ImageButton using double buffering
Parameters: raised - A boolean which shows the state of the button |
removeActionListener | public synchronized void removeActionListener(ActionListener al)(Code) | | Removes an action listener to this ImageButton
Parameters: al - The ActionListener |
setActionCommand | public void setActionCommand(String command)(Code) | | Sets the action command String used when an ActionEvent is fired
Parameters: command - The command String |
switchImage | public void switchImage()(Code) | | |
|
|