|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectpamScrollSystem.AbstractPamScroller
pamScrollSystem.PamScroller
public class PamScroller
| Nested Class Summary | |
|---|---|
(package private) class |
PamScroller.ScrollListener
|
| Nested classes/interfaces inherited from class pamScrollSystem.AbstractPamScroller |
|---|
AbstractPamScroller.MouseWheel, AbstractPamScroller.PageBackAction, AbstractPamScroller.PageForwardAction, AbstractPamScroller.ShowMenuButtonPress |
| Field Summary | |
|---|---|
private javax.swing.JPanel |
controlPanel
small panel to go in the East or the South to hold additional controls such as the navigation buttons and tools for setting the range. |
private PamLabel |
endLabel
|
private javax.swing.JPanel |
panel
|
private javax.swing.JScrollBar |
scrollBar
|
private PamLabel |
startLabel
|
private PamPanel |
timePanel
|
| Fields inherited from class pamScrollSystem.AbstractPamScroller |
|---|
HORIZONTAL, iconFill, iconLine, observers, scrollerData, usedDataBlocks, VERTICAL |
| Constructor Summary | |
|---|---|
PamScroller(java.lang.String name,
int orientation,
int stepSizeMillis,
long defaultLoadTime,
boolean hasMenu)
Construct a Pamguard scroll bar which contains a main scroll bar bit and buttons for moving forward in large sections of data. |
|
| Method Summary | |
|---|---|
void |
addControl(javax.swing.JComponent component)
Add an additional control to the control panel which will sit to the right of or just below the wee buttons used for scroll bar navigation. |
void |
anotherScrollerMovedInner(long newValue)
Another managed scroller moved it's position |
private void |
checkValueRange()
Called after setvisibleAmount to check that the value is now not higher than the realistic maximum which is |
(package private) void |
doMouseWheelAction(java.awt.event.MouseWheelEvent mouseWheelEvent)
|
long |
getBlockIncrement()
|
javax.swing.JComponent |
getComponent()
|
long |
getValueMillis()
|
long |
getVisibleAmount()
|
void |
rangesChanged(long setValue)
Called when ranges have been changed and tells scroller to go to a particular absolute value. |
private void |
sayTimes()
|
void |
scrollMoved()
|
void |
setBlockIncrement(long blockIncrement)
|
void |
setShowTimes(boolean showTimes)
|
void |
setUnitIncrement(long unitIncrement)
|
void |
setVisibleAmount(long visibleAmount)
|
java.lang.String |
toString()
|
void |
valueSetMillis(long valueMillis)
Called when a new position has been set |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private javax.swing.JPanel panel
private javax.swing.JScrollBar scrollBar
private PamPanel timePanel
private PamLabel startLabel
private PamLabel endLabel
private javax.swing.JPanel controlPanel
| Constructor Detail |
|---|
public PamScroller(java.lang.String name,
int orientation,
int stepSizeMillis,
long defaultLoadTime,
boolean hasMenu)
orientation - orientation of the scroller.| Method Detail |
|---|
public void setShowTimes(boolean showTimes)
public void addControl(javax.swing.JComponent component)
component - public void rangesChanged(long setValue)
AbstractPamScroller
rangesChanged in class AbstractPamScrollerpublic void scrollMoved()
void doMouseWheelAction(java.awt.event.MouseWheelEvent mouseWheelEvent)
doMouseWheelAction in class AbstractPamScrollerprivate void sayTimes()
public void anotherScrollerMovedInner(long newValue)
AbstractPamScroller
anotherScrollerMovedInner in class AbstractPamScrollernewValue - new value in millispublic javax.swing.JComponent getComponent()
getComponent in class AbstractPamScrollerpublic void setBlockIncrement(long blockIncrement)
setBlockIncrement in class AbstractPamScrollerblockIncrement - the blockIncrement to set in millispublic long getBlockIncrement()
public void setVisibleAmount(long visibleAmount)
setVisibleAmount in class AbstractPamScrollervisibleAmount - the visibleAmount to set in millispublic long getVisibleAmount()
private void checkValueRange()
public void setUnitIncrement(long unitIncrement)
setUnitIncrement in class AbstractPamScrollerunitIncrement - the unitIncrement to set in millispublic long getValueMillis()
getValueMillis in class AbstractPamScrollerpublic void valueSetMillis(long valueMillis)
AbstractPamScroller
valueSetMillis in class AbstractPamScrollervalueMillis - new scroll value in millisecondspublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||