|
||||||||||
| 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 SlimScrollbars. |
| 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
SlimScrollbars.
| Constructor Detail |
|---|
public SlimScrollbar()
| Method Detail |
|---|
public Dimension getMinimumSize()
getMinimumSize in class JComponentpublic Dimension getPreferredSize()
getPreferredSize in class JComponentprotected void paintComponent(Graphics g)
paintComponent in class JComponent
public void setValues(int required,
int available)
ColumnScrollBar
setValues in interface ColumnScrollBarrequired - the required pixels to show a columnavailable - the pixels actually availablepublic int getValue()
ColumnScrollBar0 and
available - required.
getValue in interface ColumnScrollBargetValue in interface Adjustablepublic Component getComponent()
ColumnScrollBarComponent which is the graphical representation of this scrollbar
getComponent in interface ColumnScrollBarnullpublic void setOrientation(Orientation orientation)
ColumnScrollBar
setOrientation in interface ColumnScrollBarorientation - the orientation, not nullpublic void addAdjustmentListener(AdjustmentListener listener)
ColumnScrollBarvalue
changes.
addAdjustmentListener in interface ColumnScrollBaraddAdjustmentListener in interface Adjustablelistener - the new listener, not nullpublic void removeAdjustmentListener(AdjustmentListener listener)
ColumnScrollBarlistener from this scrollbar.
removeAdjustmentListener in interface ColumnScrollBarremoveAdjustmentListener in interface Adjustablelistener - the listener to removepublic int getOrientation()
getOrientation in interface Adjustablepublic void setMinimum(int min)
setMinimum in interface Adjustablepublic int getMinimum()
getMinimum in interface Adjustablepublic void setMaximum(int max)
setMaximum in interface Adjustablepublic int getMaximum()
getMaximum in interface Adjustablepublic void setUnitIncrement(int u)
setUnitIncrement in interface Adjustablepublic int getUnitIncrement()
getUnitIncrement in interface Adjustablepublic void setBlockIncrement(int b)
setBlockIncrement in interface Adjustablepublic int getBlockIncrement()
getBlockIncrement in interface Adjustablepublic void setVisibleAmount(int v)
setVisibleAmount in interface Adjustablepublic int getVisibleAmount()
getVisibleAmount in interface Adjustablepublic void setValue(int v)
setValue in interface Adjustable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||