com.yospace.yae.yogi
Class YogiSlider

java.lang.Object
  |
  +--com.yospace.yae.yogi.YogiComponent
        |
        +--com.yospace.yae.yogi.YogiRange
              |
              +--com.yospace.yae.yogi.YogiSlider

public class YogiSlider
extends YogiRange

YogiSlider class. Extends YogiRange which provides the numerical range within the YogiSlider can be adjusted. This class and its corresponding UI allow user alteration of the the current value in a YogiRange to give a slider type object.


Field Summary
static int ORIENTATION_HORIZONTAL
          Constant for horizontal orientation
static int ORIENTATION_VERTICAL
          Constant for vertical orientation
static int PROPERTY_ORIENTATION
          Constant for the orientation property
static int PROPERTY_VIEW_SIZE
          Constant for the viewSize property
 
Fields inherited from class com.yospace.yae.yogi.YogiRange
maxValue, minValue, PROPERTY_BLOCK_INCREMENT, PROPERTY_MAX_VALUE, PROPERTY_MIN_VALUE, PROPERTY_UNIT_INCREMENT, PROPERTY_VALUE, value
 
Fields inherited from class com.yospace.yae.yogi.YogiComponent
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, BORDER_DOTTED, BORDER_NONE, BORDER_PLAIN, BORDER_ROUNDED, BORDER_SOLID, COLOR_BACKGROUND, COLOR_BORDER, COLOR_FOREGROUND, FOCUS_DEFAULT, FOCUS_OFF, FOCUS_ON, PROPERTY_ALIGN, PROPERTY_BORDER_STYLE, PROPERTY_BOUNDS, PROPERTY_COLOR, PROPERTY_CONTEXT_ENABLED, PROPERTY_ENABLED, PROPERTY_FOCUS, PROPERTY_FOCUS_INDEX, PROPERTY_FOCUS_TRAVERSABLE, PROPERTY_FONT, PROPERTY_HOTKEY, PROPERTY_LOCATION, PROPERTY_OPAQUE, PROPERTY_SIZE, PROPERTY_VISIBLE, PROPERTY_X_INSET, PROPERTY_Y_INSET
 
Constructor Summary
YogiSlider()
          Default constructor.
YogiSlider(int orientation)
          Constructor taking the orientation of the slider.
 
Method Summary
 int getOrientation()
          Gets the orientation of the slider.
 int getViewSize()
          Gets the length in pixels of the slider.
 void setOrientation(int orientation)
          Sets the orientation of a slider.
 void setViewSize(int viewSize)
          Sets the length in pixels of the slider.
 
Methods inherited from class com.yospace.yae.yogi.YogiRange
getBlockIncrement, getMaxValue, getMinValue, getRange, getUnitIncrement, getValue, setBlockIncrement, setMaxValue, setMinValue, setUnitIncrement, setValue
 
Methods inherited from class com.yospace.yae.yogi.YogiComponent
_debugPrintComponents, add, addPropertyChangeListener, bringForwards, bringInFrontOf, bringToFront, contains, containsComponent, ensureVisible, ensureVisible, findComponentAt, findCurrentFocus, findFirstFocus, findFocusDomainRoot, findFocusDomainRootImpl, findHotkeyComponent, findNextFocus, fireActionPerformedEvent, firePropertyChangeEvent, getAlign, getBorderStyle, getBounds, getColor, getColors, getComponent, getComponent, getComponentCount, getComponentIndex, getComponents, getFocusBounds, getFocusIndex, getFont, getGlobalLocation, getHeight, getHotkey, getId, getParent, getParent, getTreeLock, getUI, getWidth, getX, getXInset, getY, getYInset, hasFocus, isActive, isContextEnabled, isEnabled, isFocusDomainRoot, isFocusTraversable, isOpaque, isVisible, keyPressed, keyReleased, keyRepeated, paint, paintBackground, paintBorder, paintForeground, pointerDragged, pointerPressed, pointerReleased, remove, remove, removeAll, removePropertyChangeListener, repaint, repaint, repaintAfterRebounding, requestFocus, requestFocus, sendBackwards, sendBehind, sendToBack, setActionListener, setActive, setAlign, setBorderStyle, setBounds, setColor, setColors, setContextEnabled, setDefaultColor, setEnabled, setFocusDomainRoot, setFocusIndex, setFocusTraversable, setFont, setHotkey, setId, setLocation, setNoFocus, setOpaque, setProperty, setSize, setUI, setVisible, setXInset, setYInset, updateUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORIENTATION_HORIZONTAL

public static final int ORIENTATION_HORIZONTAL
Constant for horizontal orientation

ORIENTATION_VERTICAL

public static final int ORIENTATION_VERTICAL
Constant for vertical orientation

PROPERTY_ORIENTATION

public static final int PROPERTY_ORIENTATION
Constant for the orientation property

PROPERTY_VIEW_SIZE

public static final int PROPERTY_VIEW_SIZE
Constant for the viewSize property
Constructor Detail

YogiSlider

public YogiSlider()
Default constructor. Sets the YogiSlider's orientation to ORIENTATION_HORIZONTAL.

YogiSlider

public YogiSlider(int orientation)
Constructor taking the orientation of the slider. Orientation must be one of: ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL.
Parameters:
orientation - the slider orientation.
Method Detail

setOrientation

public void setOrientation(int orientation)
Sets the orientation of a slider. Orientation must be one of: ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL.
Parameters:
orientation - the slider orientation.

setViewSize

public void setViewSize(int viewSize)
Sets the length in pixels of the slider.
Parameters:
viewSize - the width in pixels of the slider.

getViewSize

public int getViewSize()
Gets the length in pixels of the slider.
Returns:
the slider length.

getOrientation

public int getOrientation()
Gets the orientation of the slider. Orientation must be one of: ORIENTATION_HORIZONTAL, ORIENTATION_VERTICAL.
Returns:
the slider orientation.

Copyright 2002 Yospace Holdings Ltd. All Rights Reserved.