Class symantec.itools.awt.HorizontalSlider
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.HorizontalSlider

Object
   |
   +----Component
           |
           +----Canvas
                   |
                   +----Slider
                           |
                           +----symantec.itools.awt.HorizontalSlider

public class HorizontalSlider
extends Slider
This component is used to select one value from a continuous range of values. It has a movable thumb in front of a gauge with ticks marks on it.

Version:
1.1, July 17, 1997
Author:
Symantec
See Also:
VerticalSlider

Variable Index

 o TICK_HEIGHT
Length of the gauge ticks in pixels.
 o actionCommand
The command name of the action event fired by this component.

Constructor Index

 o symantec.itools.awt.HorizontalSlider()
Constructs a default HorizontalSlider.

Method Index

 o addNotify()
Tells this component that it has been added to a container.
 o do_reshape(int, int)
This abstract function is called by reshape.
 o paint(Graphics)
Paints this component using the given graphics context.
 o removeNotify()
Tells this component that it is being removed from a container.
 o setTickStyle(int)
Sets the current slider tick mark style.

Variables

 o TICK_HEIGHT
protected static final int TICK_HEIGHT
Length of the gauge ticks in pixels.

 o actionCommand
protected java.lang.String actionCommand
The command name of the action event fired by this component.

Constructors

 o HorizontalSlider
public HorizontalSlider()
Constructs a default HorizontalSlider. The ticks are drawn on both sides of the gauge with a frequency of 1. The minimum value is 1. The maximum value is 10. The border is shown.

Methods

 o addNotify
public synchronized void addNotify()
Tells this component that it has been added to a container. This is a standard Java AWT method which gets called by the AWT when this component is added to a container. Typically, it is used to create this component's peer. It has been overridden here to handle registering event listeners.

Overrides:
addNotify in class Slider
See Also:
removeNotify
 o do_reshape
protected void do_reshape(int w,
                          int h)
This abstract function is called by reshape.

Overrides:
do_reshape in class Slider
 o paint
public void paint(Graphics g)
Paints this component using the given graphics context. This is a standard Java AWT method which typically gets called by the AWT to handle painting this component. It paints this component using the given graphics context. The graphics context clipping region is set to the bounding rectangle of this component and its [0,0] coordinate is this component's top-left corner.

Parameters:
g - the graphics context used for painting
Overrides:
paint in class Slider
See Also:
repaint, update
 o removeNotify
public synchronized void removeNotify()
Tells this component that it is being removed from a container. This is a standard Java AWT method which gets called by the AWT when this component is removed from a container. Typically, it is used to destroy the peers of this component and all its subcomponents. It has been overridden here to handle registering event listeners.

Overrides:
removeNotify in class Slider
See Also:
addNotify
 o setTickStyle
public void setTickStyle(int style) throws PropertyVetoException
Sets the current slider tick mark style.

Parameters:
style - the new tick mark style, one of TICK_TOP, TICK_BOTTOM, or TICK_BOTH
Throws: PropertyVetoException
if the specified property value is unacceptable
Overrides:
setTickStyle in class Slider
See Also:
getTickStyle, TICK_TOP, TICK_BOTTOM, TICK_BOTH

All Packages  Class Hierarchy  This Package  Previous  Next  Index