|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Canvas | +--lcarsbeans.LcarsTrackbar
A trackbar.
Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
Field Summary | |
static int |
tdRight
Direction of the trackbar: right. |
static int |
tdUp
Direction of the trackbar: up. |
Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
componentListener,
componentListenerK,
componentOrientation,
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,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
Constructor Summary | |
LcarsTrackbar()
Constructs a new instance. |
Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
Adds an Action Listener. |
void |
addLcarsTrackbarPositionChangeListener(LcarsTrackbarPositionChangeListener l)
Adds a listener for the LcarsTrackbarPositionChangedEvent. |
void |
addPosition(int difference)
Adds or subtracts the difference to/from the current position. |
protected void |
fireAction()
Sends the Action-Event to all listeners. |
protected void |
fireLcarsTrackbarPositionChange()
Sends the Change-Event to all listeners. |
int |
getCriticalValue()
Gets the critical value. |
int |
getMaxValue()
Gets the maximal position. |
int |
getMinValue()
Gets the minimal position. |
int |
getPosition()
Gets the current position. |
java.awt.Dimension |
getPreferredSize()
Gets the preferred size of the component. |
int |
getTextFrequency()
Gets the frequency of the large ticks and numbers. |
int |
getTickFrequency()
Gets the frequency of the little ticks. |
java.awt.Color |
getTrackbarColor()
Gets the color of the trackbar. |
int |
getTrackbarDirection()
Gets the direction of the trackbar. |
boolean |
isShowText()
Tells whether the current progress is shown beside the trackbar. |
void |
lcarsTimerFired(LcarsTimerFiredEvent e)
Event handler |
void |
mouseClicked(java.awt.event.MouseEvent evt)
Event handler (not implemented) |
void |
mouseDragged(java.awt.event.MouseEvent evt)
Event handler |
void |
mouseEntered(java.awt.event.MouseEvent evt)
Event handler (not implemented) |
void |
mouseExited(java.awt.event.MouseEvent evt)
Event handler (not implemented) |
void |
mouseMoved(java.awt.event.MouseEvent evte)
Event handler (not implemented) |
void |
mousePressed(java.awt.event.MouseEvent evt)
Event handler |
void |
mouseReleased(java.awt.event.MouseEvent evt)
Event handler |
void |
paint(java.awt.Graphics g)
Paints the control. |
void |
removeActionListener(java.awt.event.ActionListener l)
Removes an Action Listener. |
void |
removeLcarsTrackbarPositionChangeListener(LcarsTrackbarPositionChangeListener l)
Removes a listener for the LcarsTrackbarPositionChangedEvent. |
void |
setCriticalValue(int newCriticalValue)
Sets the critical value. The range between criticalValue and maxValue will be marked. |
void |
setMaxValue(int newMaxValue)
Sets the maximal position. Property should not be less than 0. |
void |
setMinValue(int newMinValue)
Sets the minimal position. Property should not be less than 0. |
void |
setPosition(int newPosition)
Sets the current position. |
void |
setShowText(boolean newShowText)
Sets whether the current progress is shown beside the trackbar. |
void |
setTextFrequency(int newTextFrequency)
Sets the frequency of the large ticks and numbers. |
void |
setTickFrequency(int newTickFrequency)
Sets the frequency of the little ticks. |
void |
setTrackbarColor(java.awt.Color newTrackbarColor)
Sets the color of the the trackbar. |
void |
setTrackbarDirection(int newTrackbarDirection)
Sets the direction of the trackbar. Possible values: gdUp, gdRight If the new value is not 0 or 1 the property is set to gdUp. |
void |
update(java.awt.Graphics g)
An overwritten and because of this almost flicker-free version of update(). |
Methods inherited from class java.awt.Canvas |
|
Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
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,
getLocale,
getLocation,
getLocation,
getLocationOnScreen,
getMaximumSize,
getMinimumSize,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getSize,
getSize,
getToolkit,
getToolkitImpl,
getTreeLock,
getWidth,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
hide,
imageUpdate,
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,
preferredSize,
prepareImage,
prepareImage,
print,
printAll,
processComponentEvent,
processEvent,
processFocusEvent,
processInputMethodEvent,
processKeyEvent,
processMouseEvent,
processMouseMotionEvent,
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 |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int tdUp
public static final int tdRight
Constructor Detail |
public LcarsTrackbar()
Method Detail |
public void paint(java.awt.Graphics g)
public void update(java.awt.Graphics g)
public java.awt.Dimension getPreferredSize()
public boolean isShowText()
public void setShowText(boolean newShowText)
public java.awt.Color getTrackbarColor()
public void setTrackbarColor(java.awt.Color newTrackbarColor)
public int getTrackbarDirection()
public void setTrackbarDirection(int newTrackbarDirection)
public int getTextFrequency()
public void setTextFrequency(int newTextFrequency)
public int getTickFrequency()
public void setTickFrequency(int newTickFrequency)
public int getCriticalValue()
public void setCriticalValue(int newCriticalValue)
public int getMinValue()
public void setMinValue(int newMinValue)
public int getMaxValue()
public void setMaxValue(int newMaxValue)
public int getPosition()
public void setPosition(int newPosition)
public void addPosition(int difference)
public void mouseClicked(java.awt.event.MouseEvent evt)
public void mousePressed(java.awt.event.MouseEvent evt)
public void mouseReleased(java.awt.event.MouseEvent evt)
public void mouseEntered(java.awt.event.MouseEvent evt)
public void mouseExited(java.awt.event.MouseEvent evt)
public void mouseDragged(java.awt.event.MouseEvent evt)
public void mouseMoved(java.awt.event.MouseEvent evte)
public void lcarsTimerFired(LcarsTimerFiredEvent e)
protected void fireLcarsTrackbarPositionChange()
public void addLcarsTrackbarPositionChangeListener(LcarsTrackbarPositionChangeListener l)
public void removeLcarsTrackbarPositionChangeListener(LcarsTrackbarPositionChangeListener l)
protected void fireAction()
public void addActionListener(java.awt.event.ActionListener l)
public void removeActionListener(java.awt.event.ActionListener l)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |