 |
Crossfire JXClient, Trunk
|
Go to the documentation of this file.
23 package com.realtime.crossfire.jxclient.gui.log;
25 import java.util.List;
26 import org.jetbrains.annotations.NotNull;
87 public void lineAdded() {
93 public void lineReplaced() {
99 public void linesRemoved(@NotNull
final List<Line> lines) {
130 public void update(
final int oldBufferHeight) {
boolean lastCanScrollDown
The last known result of RenderState#canScrollDown() for renderState.
Interface for listeners for changes of Buffer contents.
void linesReplaced(@NotNull final Buffer buffer)
Some lines have been replaced at the end of the buffer.
void linesAdded(@NotNull final Buffer buffer)
Some lines have been added to the buffer.
void setHeight(final int height)
Sets the viewable height in pixel.
boolean canScrollUp
Whether scrolling up is possible.
void resetScroll()
Resets the scrolling range to default values.
final RenderState renderState
The underlying RenderState instance.
void addBufferListener(@NotNull final BufferListener listener)
Adds a listener to notify of changes.
final BufferListener bufferListener
The listener to re-render the window contents after changes.
boolean canScrollDown()
Returns whether scrolling down is possible.
boolean lastCanScrollUp
The last known result of RenderState#canScrollUp() for renderState.
int lastTopIndex
The first line of buffer to display.
void dispose()
Destroys this instance.
RenderStateManager(@NotNull final RenderStateListener renderStateListener, @NotNull final Buffer buffer)
Creates a new instance.
boolean mustRepaint
Whether the view has to be repainted even if no other value has changed.
Interface for listeners interested in changes of a RenderStateManager instance.
boolean canScrollUp()
Returns whether scrolling up is possible.
int getScrollPos()
Returns the location of the view area in pixels.
void setHeight(@NotNull final Buffer buffer, final int h)
Sets the viewable height in pixel.
int getTopOffset()
Returns the number of pixels to shift the first displayed line.
int getHeight()
Returns the height of the viewable area.
final Buffer buffer
The rendered buffer.
boolean canScrollDown
Whether scrolling down is possible.
Manages the contents of the contents of a log window.
void scrollDown(final int dy)
Scrolls down by pixels.
void scrollTo(final int y)
Scrolls to a location.
Encapsulates the state for rendering a Buffer instance.
void fireChanges()
Notifies listeners of changes.
void removeBufferListener(@NotNull final BufferListener listener)
Removes a listener to be notified of changes.
void scrollTo(@NotNull final Buffer buffer, final int y)
Scrolls to the given pixel location.
void update(@NotNull final Buffer buffer, final int oldBufferHeight)
Updates the internal state after the buffer has changed.
void stateChanged()
Notifies the listener about a state change in the tracked RenderStateManager object.
Encapsulates the state for a scroll bar.
int getTopIndex()
Returns the first line to render.
int getTopIndex()
Returns the index of the first line to display.
void scrollToBottom(@NotNull final Buffer buffer)
Sets the view area to the bottom-most value.
void linesRemoved(@NotNull final Buffer buffer, @NotNull final Collection< Line > lines)
Some lines have been removed from the buffer.
int getScrollPos()
Returns the location of the view area in pixels.
int getHeight()
Returns the height of the viewable area.
int lastTopOffset
The number of pixels to shift the first displayed line.
void update(final int oldBufferHeight)
Updates the internal state after the buffer has changed.
final RenderStateListener renderStateListener
The listener to notify about state changes.
int lastScrollPos
The position in pixels of the viewable window.
void scrollUp(final int dy)
Scrolls up by pixels.
int getTopOffset()
Returns the number of pixels to shift the first displayed line.