Sky View Café - Java

org.shetline.gui
Class MiniAdjustor

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.shetline.gui.KPanel
                      extended by org.shetline.gui.MiniAdjustor
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class MiniAdjustor
extends KPanel

See Also:
Serialized Form

Nested Class Summary
protected  class MiniAdjustor.Repeater
           
 
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected static int CLEAR
           
protected  int clickState
           
protected  int currentDelay
           
protected static int DECREMENT_PRESSED
           
protected static int DEFAULT_INITIAL_DELAY
           
protected static int DEFAULT_REPEAT_DELAY
           
static int DO_DECREMENT
           
static int DO_INCREMENT
           
protected  boolean hasRepeated
           
protected static int INCREMENT_PRESSED
           
protected  int initialDelay
           
protected  ListenerHandler listenerHandler
           
protected  boolean performingAction
           
protected static Color PLATINUM
           
protected static int REPEAT_KILL_DELAY
           
protected  int repeatDelay
           
protected  Thread repeater
           
 
Fields inherited from class org.shetline.gui.KPanel
maxHeight, maxWidth, minHeight, minWidth, prefHeight, prefWidth
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MiniAdjustor()
           
 
Method Summary
 void addActionListener(ActionListener listener)
           
 void addActionListener(ActionListener listener, boolean addWeakly)
           
protected  void doClickAction()
           
 int getInitialDelay()
           
 Dimension getMinimumInnerSize()
           
 Dimension getPreferredInnerSize()
           
 int getRepeatDelay()
           
 boolean isFocusable()
           
protected  void paintInnerComponent(Graphics g)
           
protected  void processInnerMouseEvent(MouseEvent event)
           
protected  boolean readyForRepeat()
           
protected  boolean readyForRepeatAux()
           
 void removeActionListener(ActionListener listener)
           
 void setEnabled(boolean state)
           
 void setInitialDelay(int initialDelay)
           
 void setRepeatDelay(int repeatDelay)
           
 
Methods inherited from class org.shetline.gui.KPanel
beep, getInnerSize, getInsets, getInsetsWithinBorder, getMaximumHeight, getMaximumInnerSize, getMaximumSize, getMaximumWidth, getMinimumHeight, getMinimumSize, getMinimumWidth, getPreferredHeight, getPreferredSize, getPreferredWidth, getScreenSize, paintComponent, processInnerMouseMotionEvent, processMouseEvent, processMouseMotionEvent, setInsets, setInsets, setInsets, setMaximumHeight, setMaximumWidth, setMinimumHeight, setMinimumWidth, setPreferredHeight, setPreferredWidth
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getListeners, getLocation, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

clickState

protected int clickState

currentDelay

protected volatile int currentDelay

hasRepeated

protected boolean hasRepeated

initialDelay

protected volatile int initialDelay

listenerHandler

protected ListenerHandler listenerHandler

performingAction

protected boolean performingAction

repeatDelay

protected volatile int repeatDelay

repeater

protected Thread repeater

CLEAR

protected static final int CLEAR
See Also:
Constant Field Values

INCREMENT_PRESSED

protected static final int INCREMENT_PRESSED
See Also:
Constant Field Values

DECREMENT_PRESSED

protected static final int DECREMENT_PRESSED
See Also:
Constant Field Values

DO_INCREMENT

public static final int DO_INCREMENT
See Also:
Constant Field Values

DO_DECREMENT

public static final int DO_DECREMENT
See Also:
Constant Field Values

DEFAULT_INITIAL_DELAY

protected static final int DEFAULT_INITIAL_DELAY
See Also:
Constant Field Values

DEFAULT_REPEAT_DELAY

protected static final int DEFAULT_REPEAT_DELAY
See Also:
Constant Field Values

REPEAT_KILL_DELAY

protected static final int REPEAT_KILL_DELAY
See Also:
Constant Field Values

PLATINUM

protected static final Color PLATINUM
Constructor Detail

MiniAdjustor

public MiniAdjustor()
Method Detail

isFocusable

public boolean isFocusable()
Overrides:
isFocusable in class Component

getInitialDelay

public int getInitialDelay()

setInitialDelay

public void setInitialDelay(int initialDelay)

getRepeatDelay

public int getRepeatDelay()

setRepeatDelay

public void setRepeatDelay(int repeatDelay)

paintInnerComponent

protected void paintInnerComponent(Graphics g)
Overrides:
paintInnerComponent in class KPanel

processInnerMouseEvent

protected void processInnerMouseEvent(MouseEvent event)
Overrides:
processInnerMouseEvent in class KPanel

setEnabled

public void setEnabled(boolean state)
Overrides:
setEnabled in class JComponent

addActionListener

public void addActionListener(ActionListener listener)

addActionListener

public void addActionListener(ActionListener listener,
                              boolean addWeakly)

removeActionListener

public void removeActionListener(ActionListener listener)

doClickAction

protected void doClickAction()

getMinimumInnerSize

public Dimension getMinimumInnerSize()
Overrides:
getMinimumInnerSize in class KPanel

getPreferredInnerSize

public Dimension getPreferredInnerSize()
Overrides:
getPreferredInnerSize in class KPanel

readyForRepeat

protected boolean readyForRepeat()

readyForRepeatAux

protected boolean readyForRepeatAux()

Sky View Café - Java