Class RoundButton

java.lang.Object
  |
  +--java.awt.Component
        |
        +--ButtonCtrl
              |
              +--RoundButton

public class RoundButton
extends ButtonCtrl

RoundButton is a class to manage a button using two images. The handling is the same as RectButton but no border is drawn. The first image is used to display an unpress button and the second one is the press button.

See Also:
Serialized Form

Inner classes inherited from class java.awt.Component
java.awt.Component.AWTTreeLock
 
Field Summary
private  java.awt.Image m_ImagePress
           
 
Fields inherited from class ButtonCtrl
kstrBorderParam, kstrHintParam, kstrInputParam, kstrNameParam, kstrPrefixParam, kstrValueParam, kstrXYLocParam, m_applet, m_bIsAutoPlace, m_borderColor, m_bPressed, m_Img, m_Listener, m_nXSize, m_nYSize, m_strCmd, m_strHint, m_strName, m_strNameParam, m_strValueParam
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
RoundButton(java.lang.String strName, java.awt.Image img, java.awt.Image impPress, boolean bAutoPress, Rosa2000 applet)
          Constructor.
RoundButton(java.lang.String strName, java.awt.Image img, java.awt.Image impPress, int nXSize, int nYSize, boolean bAutoPress, Rosa2000 applet)
           
 
Method Summary
 void paint(java.awt.Graphics g)
          Paint the current button.
 
Methods inherited from class ButtonCtrl
addActionListener, getActionCommand, getButtonActionName, getButtonActionValue, getHint, getListener, getPreferredSize, getPrefixButtonParam, init, isAutoPlacement, isPressed, readBorder, readLocation, removeActionListener, setActionCommand, setAutoPlacement, setPressed, update
 
Methods inherited from class java.awt.Component
, action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, constructComponentName, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, dispatchEventImpl, doLayout, enable, enable, enableEvents, enableInputMethods, eventEnabled, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getIntrinsicCursor, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, initIDs, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, lightweightPrint, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, postsOldMouseEvents, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, readObject, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, validate, writeObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

m_ImagePress

private java.awt.Image m_ImagePress
Constructor Detail

RoundButton

public RoundButton(java.lang.String strName,
                   java.awt.Image img,
                   java.awt.Image impPress,
                   boolean bAutoPress,
                   Rosa2000 applet)
Constructor.
Parameters:
strName - Button name. This string will be used to load all paramerter from the applet.
img - It's the image on the button.
imgPress - It's the image on the button in the pressed state.
bAutoPress - true is the button will be automaticaly unpress after the action.
applet - Used to draw tooltips.

RoundButton

public RoundButton(java.lang.String strName,
                   java.awt.Image img,
                   java.awt.Image impPress,
                   int nXSize,
                   int nYSize,
                   boolean bAutoPress,
                   Rosa2000 applet)
Method Detail

paint

public void paint(java.awt.Graphics g)
Paint the current button. No border is drawing.
Overrides:
paint in class ButtonCtrl