|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
bibliothek.gui.dock.station.toolbar.group.SlimScrollbar
public class SlimScrollbar
A slim version of a JScrollBar
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static ColumnScrollBarFactory |
FACTORY
A factory creating new SlimScrollbar s. |
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.Adjustable |
---|
HORIZONTAL, NO_ORIENTATION, VERTICAL |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
SlimScrollbar()
Creates a new scrollbar |
Method Summary | |
---|---|
void |
addAdjustmentListener(AdjustmentListener listener)
Adds a listener to this scrollbar, the listener is to be called whenever the value
changes. |
int |
getBlockIncrement()
|
Component |
getComponent()
Gets a Component which is the graphical representation of this scrollbar |
int |
getMaximum()
|
int |
getMinimum()
|
Dimension |
getMinimumSize()
|
int |
getOrientation()
|
Dimension |
getPreferredSize()
|
int |
getUnitIncrement()
|
int |
getValue()
Gets the offset of the scrollbar. |
int |
getVisibleAmount()
|
protected void |
paintComponent(Graphics g)
|
void |
removeAdjustmentListener(AdjustmentListener listener)
Removes listener from this scrollbar. |
void |
setBlockIncrement(int b)
|
void |
setMaximum(int max)
|
void |
setMinimum(int min)
|
void |
setOrientation(Orientation orientation)
Sets the orientation of the scrollbar |
void |
setUnitIncrement(int u)
|
void |
setValue(int v)
|
void |
setValues(int required,
int available)
Tells this scrollbar how much space is required, and how much space is available. |
void |
setVisibleAmount(int v)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ColumnScrollBarFactory FACTORY
SlimScrollbar
s.
Constructor Detail |
---|
public SlimScrollbar()
Method Detail |
---|
public Dimension getMinimumSize()
getMinimumSize
in class JComponent
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
protected void paintComponent(Graphics g)
paintComponent
in class JComponent
public void setValues(int required, int available)
ColumnScrollBar
setValues
in interface ColumnScrollBar
required
- the required pixels to show a columnavailable
- the pixels actually availablepublic int getValue()
ColumnScrollBar
0
and
available - required
.
getValue
in interface ColumnScrollBar
getValue
in interface Adjustable
public Component getComponent()
ColumnScrollBar
Component
which is the graphical representation of this scrollbar
getComponent
in interface ColumnScrollBar
null
public void setOrientation(Orientation orientation)
ColumnScrollBar
setOrientation
in interface ColumnScrollBar
orientation
- the orientation, not null
public void addAdjustmentListener(AdjustmentListener listener)
ColumnScrollBar
value
changes.
addAdjustmentListener
in interface ColumnScrollBar
addAdjustmentListener
in interface Adjustable
listener
- the new listener, not null
public void removeAdjustmentListener(AdjustmentListener listener)
ColumnScrollBar
listener
from this scrollbar.
removeAdjustmentListener
in interface ColumnScrollBar
removeAdjustmentListener
in interface Adjustable
listener
- the listener to removepublic int getOrientation()
getOrientation
in interface Adjustable
public void setMinimum(int min)
setMinimum
in interface Adjustable
public int getMinimum()
getMinimum
in interface Adjustable
public void setMaximum(int max)
setMaximum
in interface Adjustable
public int getMaximum()
getMaximum
in interface Adjustable
public void setUnitIncrement(int u)
setUnitIncrement
in interface Adjustable
public int getUnitIncrement()
getUnitIncrement
in interface Adjustable
public void setBlockIncrement(int b)
setBlockIncrement
in interface Adjustable
public int getBlockIncrement()
getBlockIncrement
in interface Adjustable
public void setVisibleAmount(int v)
setVisibleAmount
in interface Adjustable
public int getVisibleAmount()
getVisibleAmount
in interface Adjustable
public void setValue(int v)
setValue
in interface Adjustable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |