Crossfire JXClient, Trunk
Public Member Functions | List of all members
com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable2 Interface Reference
Inheritance diagram for com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable2:
Inheritance graph
Collaboration diagram for com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable2:
Collaboration graph

Public Member Functions

void addScrollableListener (@NotNull ScrollableListener listener)
 
void removeScrollableListener (@NotNull ScrollableListener listener)
 
void scrollTo (int pos)
 
- Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable
boolean canScroll (int distance)
 
void resetScroll ()
 
void scroll (int distance)
 

Detailed Description

A GUIScrollable that can be attached to GUIScrollBars.

Author
Andreas Kirschbaum

Definition at line 33 of file GUIScrollable2.java.

Member Function Documentation

◆ addScrollableListener()

void com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable2.addScrollableListener ( @NotNull ScrollableListener  listener)

Adds a scrollable listener to be informed about changes.

Parameters
listenerthe listener to add

Implemented in com.realtime.crossfire.jxclient.gui.log.GUILog.

◆ removeScrollableListener()

void com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable2.removeScrollableListener ( @NotNull ScrollableListener  listener)

Removes a scrollable listener.

Parameters
listenerthe listener to remove

Implemented in com.realtime.crossfire.jxclient.gui.log.GUILog.

Referenced by com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar.dispose().

Here is the caller graph for this function:

◆ scrollTo()

void com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable2.scrollTo ( int  pos)

Scrolls to the given location. The possible range is given by a previous notification through a listener registered with addScrollableListener(ScrollableListener).

Parameters
posthe location to scroll to

Implemented in com.realtime.crossfire.jxclient.gui.log.GUILog.

Referenced by com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar.mouseDragged(), and com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar.mousePressed().

Here is the caller graph for this function:

The documentation for this interface was generated from the following file: