All Packages Class Hierarchy This Package Previous Next Index
Class ejmf.toolkit.gui.TickPanel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----ejmf.toolkit.gui.TickPanel
- public class TickPanel
- extends JPanel
A TickPanel is a JPanel with tick marks drawn along the top.
-
TickPanel(int, int, int, Dimension)
-
Create a TickPanel whose values range from
min
to max appearing increment
units
apart.
-
getMaximumSize()
-
-
getMinimumSize()
-
-
getPreferredSize()
-
-
paint(Graphics)
-
Paint the ticks in the panel.
-
setLabelIncrement(int)
- Sets the increment between tick marks.
TickPanel
public TickPanel(int min,
int max,
int increment,
Dimension size)
- Create a TickPanel whose values range from
min
to max appearing increment
units
apart.
The size
argument determines the horizontal
dimension of the TickPanel.
getPreferredSize
public Dimension getPreferredSize()
- Overrides:
- getPreferredSize in class JComponent
getMaximumSize
public Dimension getMaximumSize()
- Overrides:
- getMaximumSize in class JComponent
getMinimumSize
public Dimension getMinimumSize()
- Overrides:
- getMinimumSize in class JComponent
setLabelIncrement
public void setLabelIncrement(int labelIncrement)
- Sets the increment between tick marks.
- Parameters:
- labelIncrement - Increment between tick marks.
paint
public void paint(Graphics g)
- Paint the ticks in the panel.
- Overrides:
- paint in class JComponent
All Packages Class Hierarchy This Package Previous Next Index