|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gerhardb.lib.playlist.Scroller
public class Scroller
Commands to scroll among a group of pages. Used for making a slide show with sound. Class is a singleton.
| Field Summary | |
|---|---|
static Scroller |
gblScroller
|
static int |
SORT_DATE
|
static int |
SORT_LENGTH
|
static int |
SORT_NAME_CASE_INSENSATIVE
|
static int |
SORT_NAME_CASE_SENSATIVE
|
static int |
SORT_OFF
|
| Method Summary | |
|---|---|
void |
addChangeListener(javax.swing.event.ChangeListener x)
|
void |
addListDataListener(javax.swing.event.ListDataListener l)
|
void |
addScrollerListener(ScrollerListener x)
|
void |
addSlideShowListener(SlideShowListener l)
|
void |
doSort(boolean realSort)
|
void |
down()
|
void |
editedImage()
Does not reset the slider. |
void |
end()
|
void |
forceFocus()
|
java.awt.image.BufferedImage |
getBeyondBounds()
|
javax.swing.ImageIcon |
getBeyondBoundsIcon()
|
java.io.File |
getCurrentFile()
|
java.awt.image.BufferedImage |
getCurrentImage()
|
IOImage |
getCurrentIOImage()
|
java.lang.String |
getDescription()
|
java.lang.Object |
getElementAt(int index)
|
int |
getExtent()
|
java.io.File |
getFile(int index)
|
java.awt.Component |
getFocusComponent()
|
ListMaker |
getListMaker()
|
int |
getMaximum()
Min and max are zero based which works well for the JSlider. |
int |
getMaximumZeroBased()
|
int |
getMinimum()
|
java.awt.event.MouseWheelListener |
getMouseWheelListener()
|
java.io.File[] |
getPictureFiles()
|
ScrollerKeyListener |
getScrollerKeyListener()
|
java.awt.event.KeyListener |
getShowViewKeyListener()
|
int |
getSize()
|
int |
getSlideFlipDelay()
|
java.io.File[] |
getSortedFiles()
|
java.lang.String |
getStatusBarCount()
|
java.lang.String |
getStatusBarFileName()
|
int |
getValue()
|
boolean |
getValueIsAdjusting()
|
int |
getValueZeroBased()
|
void |
home()
|
boolean |
isBeyond()
|
boolean |
isSlideShowRunning()
|
void |
jumpTo(int index)
Jump to a particular index. |
boolean |
jumpTo(java.lang.Object jumpTo)
Jump to a particular object. |
void |
jumpToPercent(int jumpTo)
Jumps to some percentage down the list. |
void |
pageDown()
|
void |
pageUp()
|
void |
refreshCurrentImage()
|
void |
reloadScroller()
|
void |
reloadScroller(int index)
|
void |
removeChangeListener(javax.swing.event.ChangeListener x)
|
void |
removeCurrentPage()
Used for DnD. |
void |
removeListDataListener(javax.swing.event.ListDataListener l)
|
void |
removeScrollerListener(ScrollerListener x)
|
void |
removeSlideShowListener(SlideShowListener l)
|
void |
requestFocus()
|
void |
selectFile(java.io.File file)
|
void |
setAutoFocus(java.awt.Component focus)
Component to get focus when value is changed. |
void |
setEndMessages(boolean showEndMessages)
|
void |
setExtent(int newExtent)
|
void |
setFrame(javax.swing.JFrame frame)
|
void |
setListMaker(ListMaker lm)
|
void |
setListSelectionModel(FileListSelectionModel sm)
|
void |
setMaximum(int newMaximum)
|
void |
setMinimum(int newMinimum)
|
void |
setPageSize(int pageSize)
Set File size. |
void |
setRangeProperties(int value,
int extent,
int min,
int max,
boolean adjusting)
|
void |
setShowViewKeyListener(java.awt.event.KeyListener k)
|
void |
setSlideFlipDelay(int millisedonds)
|
void |
setValue(int newValue)
|
void |
setValueIsAdjusting(boolean b)
|
void |
sort(int type)
|
void |
startSlideShow(boolean continuous)
|
void |
stopSlideShow()
|
void |
up()
|
void |
updateSelectionInterval()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Scroller gblScroller
public static final int SORT_OFF
public static final int SORT_NAME_CASE_INSENSATIVE
public static final int SORT_NAME_CASE_SENSATIVE
public static final int SORT_DATE
public static final int SORT_LENGTH
| Method Detail |
|---|
public void setListMaker(ListMaker lm)
public void setListSelectionModel(FileListSelectionModel sm)
public void updateSelectionInterval()
public ListMaker getListMaker()
public java.lang.String getDescription()
public ScrollerKeyListener getScrollerKeyListener()
public java.lang.String getStatusBarCount()
public java.lang.String getStatusBarFileName()
public void setShowViewKeyListener(java.awt.event.KeyListener k)
public java.awt.event.KeyListener getShowViewKeyListener()
public void setEndMessages(boolean showEndMessages)
public java.io.File[] getSortedFiles()
public void addListDataListener(javax.swing.event.ListDataListener l)
addListDataListener in interface javax.swing.ListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic int getSize()
getSize in interface javax.swing.ListModelpublic void removeListDataListener(javax.swing.event.ListDataListener l)
removeListDataListener in interface javax.swing.ListModelpublic int getValueZeroBased()
public int getMaximumZeroBased()
public int getValue()
getValue in interface javax.swing.BoundedRangeModelpublic int getMaximum()
getMaximum in interface javax.swing.BoundedRangeModelpublic int getMinimum()
getMinimum in interface javax.swing.BoundedRangeModelpublic void setValue(int newValue)
setValue in interface javax.swing.BoundedRangeModelnewValue - Invalid values are silently ignored.public void addChangeListener(javax.swing.event.ChangeListener x)
addChangeListener in interface javax.swing.BoundedRangeModelpublic void removeChangeListener(javax.swing.event.ChangeListener x)
removeChangeListener in interface javax.swing.BoundedRangeModelpublic int getExtent()
getExtent in interface javax.swing.BoundedRangeModelpublic boolean getValueIsAdjusting()
getValueIsAdjusting in interface javax.swing.BoundedRangeModelpublic void setValueIsAdjusting(boolean b)
setValueIsAdjusting in interface javax.swing.BoundedRangeModel
public void setRangeProperties(int value,
int extent,
int min,
int max,
boolean adjusting)
setRangeProperties in interface javax.swing.BoundedRangeModelpublic void setExtent(int newExtent)
setExtent in interface javax.swing.BoundedRangeModelpublic void setMaximum(int newMaximum)
setMaximum in interface javax.swing.BoundedRangeModelpublic void setMinimum(int newMinimum)
setMinimum in interface javax.swing.BoundedRangeModelpublic void sort(int type)
public void doSort(boolean realSort)
public java.io.File getCurrentFile()
public java.io.File getFile(int index)
public void reloadScroller()
public void selectFile(java.io.File file)
public void reloadScroller(int index)
public void removeCurrentPage()
public java.io.File[] getPictureFiles()
public void setPageSize(int pageSize)
pageSize - How many items File up and File down should Scroller.public void up()
public void down()
public void pageUp()
public void pageDown()
public void home()
public void end()
public void jumpToPercent(int jumpTo)
jumpTo - between 0 and 100public boolean jumpTo(java.lang.Object jumpTo)
jumpTo - where to jump
public void jumpTo(int index)
index - where to jumppublic void addSlideShowListener(SlideShowListener l)
public void removeSlideShowListener(SlideShowListener l)
public void startSlideShow(boolean continuous)
public void stopSlideShow()
public boolean isSlideShowRunning()
public void setFrame(javax.swing.JFrame frame)
public void setAutoFocus(java.awt.Component focus)
focus - what get focuspublic void requestFocus()
public void forceFocus()
public java.awt.Component getFocusComponent()
public void refreshCurrentImage()
public IOImage getCurrentIOImage()
public java.awt.image.BufferedImage getCurrentImage()
public void addScrollerListener(ScrollerListener x)
public void removeScrollerListener(ScrollerListener x)
public void setSlideFlipDelay(int millisedonds)
public int getSlideFlipDelay()
public java.awt.event.MouseWheelListener getMouseWheelListener()
public boolean isBeyond()
public java.awt.image.BufferedImage getBeyondBounds()
public javax.swing.ImageIcon getBeyondBoundsIcon()
public void editedImage()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||