|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--ago.beans.AgoSlider
Cool Slider for editing color, or numbers from [0..1]
Field Summary | |
static int |
COLOR
CONSTANT for thumbMode |
static java.lang.String |
icon16
filename of 16x16 color icon. |
static int |
IMAGE
CONSTANT for track mode |
static int |
NOIMAGE
CONSTANT for track mode |
static int |
OVAL
CONSTANT for shape of thumb |
static int |
PENTAGON
CONSTANT for shape of thumb |
static int |
PENTAGON2
CONSTANT for shape of thumb |
static int |
RECTANGLE
CONSTANT for shape of thumb |
static int |
RHOMBUS
CONSTANT for shape of thumb |
static int |
SOLID
CONSTANT for thumbMode |
static int |
TRANS
CONSTANT for thumbMode |
static int |
TRIANGLE
CONSTANT for shape of thumb |
static int |
TRIANGLE2
CONSTANT for shape of thumb |
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 | |
AgoSlider()
default constructor. |
Method Summary | |
void |
addActionListener(java.awt.event.ActionListener a)
register ActionListener, which listen ActionEvents. |
void |
addChangeListener(javax.swing.event.ChangeListener c)
register ChangeListener, which listen ChangeEvents. |
void |
focusGained(java.awt.event.FocusEvent fe)
focus listener method |
void |
focusLost(java.awt.event.FocusEvent fe)
focus listener method |
java.lang.String |
getAbout()
Application code will not use these methods explicitly. |
java.awt.Color |
getColor()
color's getter |
ago.beans.Gradient |
getGradient()
Gradient's getter |
int |
getMode()
|
int |
getShape()
|
int |
getThickness()
|
int |
getThumbHeight()
|
int |
getThumbMode()
|
int |
getThumbs()
|
int |
getThumbWidth()
|
float |
getValue()
|
float[] |
getValues()
|
boolean |
isHorizontal()
|
void |
keyPressed(java.awt.event.KeyEvent e)
realization of KeyListener interface. |
void |
keyReleased(java.awt.event.KeyEvent e)
realized without noname classes, coz need to reduce jar size. |
void |
keyTyped(java.awt.event.KeyEvent e)
realization of KeyListener interface. |
void |
mouseClicked(java.awt.event.MouseEvent event)
realization of MouseListener interface |
void |
mouseDragged(java.awt.event.MouseEvent event)
realization of MouseMotionListener interface realized without noname classes, coz need to reduce jar size |
void |
mouseEntered(java.awt.event.MouseEvent mouseevent)
realization of MouseListener interface |
void |
mouseExited(java.awt.event.MouseEvent mouseevent)
realization of MouseListener interface |
void |
mouseMoved(java.awt.event.MouseEvent event)
realization of MouseMotionListener interface |
void |
mousePressed(java.awt.event.MouseEvent event)
realization of MouseListener interface realized without noname classes, coz need to reduce jar size |
void |
mouseReleased(java.awt.event.MouseEvent mouseevent)
realization of MouseListener interface |
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
realization of MouseWheelListener interface. |
void |
paintComponent(java.awt.Graphics g)
|
void |
removeActionListener(java.awt.event.ActionListener a)
|
void |
removeChangeListener(javax.swing.event.ChangeListener c)
|
void |
setAbout(java.lang.String s)
Application code will not use these methods explicitly. |
void |
setColor(java.awt.Color c)
in fact application code will not use this method explicitly. |
void |
setGradient(ago.beans.Gradient g)
Gradient's setter |
void |
setHorizontal(boolean b)
|
void |
setHue()
setup Hue-line as image |
void |
setMode(int i)
|
void |
setShape(int i)
|
void |
setThickness(int i)
|
void |
setThumbHeight(int height)
|
void |
setThumbMode(int i)
|
void |
setThumbs(int n)
set thumb's quantity & init values by default |
void |
setThumbWidth(int width)
|
void |
setValue(float f)
|
void |
setValues(float[] values)
|
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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 |
public static final java.lang.String icon16
public static final int SOLID
public static final int TRANS
public static final int COLOR
public static final int NOIMAGE
public static final int IMAGE
public static final int OVAL
public static final int RHOMBUS
public static final int TRIANGLE2
public static final int TRIANGLE
public static final int RECTANGLE
public static final int PENTAGON
public static final int PENTAGON2
Constructor Detail |
public AgoSlider()
Method Detail |
public void setHue()
public void setAbout(java.lang.String s)
public java.lang.String getAbout()
public int getThumbWidth()
public void setThumbWidth(int width)
width
- width of thumb (3..25 - limitations)public int getThumbHeight()
public void setThumbHeight(int height)
height
- height of thumb (3..25 - limitations)public int getShape()
public void setShape(int i)
i
- - shape of slider's thumb (see CONSTANTS, describe shapes)public int getMode()
public void setMode(int i)
i
- mode of slider's track (IMAGE/ NOIMAGE)public int getThumbMode()
public void setThumbMode(int i)
i
- mode of slider's thumb (SOLID/ TRANS/ COLOR)public int getThickness()
public void setThickness(int i)
i
- thickness of slider's track (height for horizontal,
width for vertical)public boolean isHorizontal()
public void setHorizontal(boolean b)
b
- true - horizontal orientation, false - verticalpublic int getThumbs()
public void setThumbs(int n)
n
- - quantity of thumbspublic ago.beans.Gradient getGradient()
Gradientable
getGradient
in interface Gradientable
public void setGradient(ago.beans.Gradient g)
Gradientable
setGradient
in interface Gradientable
g
- gradient for slider. Will visible only in IMAGE modepublic java.awt.Color getColor()
Colorable
getColor
in interface Colorable
public void setColor(java.awt.Color c)
setColor
in interface Colorable
c
- colorpublic float getValue()
public void setValue(float f)
f
- value for values[0], sets only if one thumbpublic float[] getValues()
public void setValues(float[] values)
values
- values for thumbs positions. must to be in[0..1]public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
g
- graphics where drawpublic void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface java.awt.event.MouseMotionListener
event
- mouse eventpublic void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface java.awt.event.MouseListener
event
- mouse eventpublic void mouseClicked(java.awt.event.MouseEvent event)
mouseClicked
in interface java.awt.event.MouseListener
event
- mouse eventpublic void mouseExited(java.awt.event.MouseEvent mouseevent)
mouseExited
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent mouseevent)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent mouseevent)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface java.awt.event.MouseMotionListener
event
- mouse eventpublic void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void addChangeListener(javax.swing.event.ChangeListener c)
c
- ChangeListener for sliderpublic void removeChangeListener(javax.swing.event.ChangeListener c)
c
- ChangeListener to removepublic void addActionListener(java.awt.event.ActionListener a)
public void removeActionListener(java.awt.event.ActionListener a)
a
- ActionListener to removepublic void focusLost(java.awt.event.FocusEvent fe)
focusLost
in interface java.awt.event.FocusListener
public void focusGained(java.awt.event.FocusEvent fe)
focusGained
in interface java.awt.event.FocusListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |