Crossfire JXClient, Trunk
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec:
Collaboration graph

Public Member Functions

void checkState (final int expectedTopIndex, final int expectedTopOffset)
 
Buffer getBuffer ()
 
 RenderStateTestRec (final int maxLines)
 
void scrollTo (final int y)
 

Static Public Attributes

static final int FONT_HEIGHT = 11
 
static final int HEIGHT = 10*FONT_HEIGHT
 

Private Member Functions

String formatState (final int topIndex, final int topOffset, final int scrollPos)
 

Private Attributes

final Buffer buffer
 
final RenderState rs
 

Detailed Description

Encapsulates the state.

Definition at line 10 of file RenderStateTestRec.java.

Constructor & Destructor Documentation

◆ RenderStateTestRec()

com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec.RenderStateTestRec ( final int  maxLines)

Member Function Documentation

◆ checkState()

void com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec.checkState ( final int  expectedTopIndex,
final int  expectedTopOffset 
)

◆ formatState()

String com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec.formatState ( final int  topIndex,
final int  topOffset,
final int  scrollPos 
)
private

Returns a text representation of the state.

Parameters
topIndexthe top index value
topOffsetthe top offset value
scrollPosthe scroll pos value
Returns
the text representation

Definition at line 111 of file RenderStateTestRec.java.

References com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec.buffer, and com.realtime.crossfire.jxclient.gui.log.Buffer.getTotalHeight().

Referenced by com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec.checkState().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBuffer()

Buffer com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec.getBuffer ( )

◆ scrollTo()

void com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec.scrollTo ( final int  y)

Member Data Documentation

◆ buffer

final Buffer com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec.buffer
private

◆ FONT_HEIGHT

final int com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec.FONT_HEIGHT = 11
static

◆ HEIGHT

final int com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec.HEIGHT = 10*FONT_HEIGHT
static

◆ rs

final RenderState com.realtime.crossfire.jxclient.gui.log.RenderStateTestRec.rs
private

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