Eclipse Draw2d
2.1

org.eclipse.draw2d.text
Interface FlowContext

All Known Implementing Classes:
FlowContainerLayout

public interface FlowContext

The context that a FlowFigureLayout uses to perform its layout.

WARNING: This interface is not intended to be implemented by clients. It exists to define the API between the layout and its context.


Method Summary
 void addToCurrentLine(FlowBox box)
          Adds the given box into the current line.
 void endLine()
          The current line should be committed if it is occupied, and then set to null.
 LineBox getCurrentLine()
          Obtains the current line, creating a new line if there is no current line.
 int getCurrentY()
          Returns the current Y value.
 boolean isCurrentLineOccupied()
           
 

Method Detail

addToCurrentLine

public void addToCurrentLine(FlowBox box)
Adds the given box into the current line.

Parameters:
box - the FlowBox to add

endLine

public void endLine()
The current line should be committed if it is occupied, and then set to null. Otherwise, do nothing.


getCurrentLine

public LineBox getCurrentLine()
Obtains the current line, creating a new line if there is no current line.

Returns:
the current line

getCurrentY

public int getCurrentY()
Returns the current Y value.

Returns:
the current Y value

isCurrentLineOccupied

public boolean isCurrentLineOccupied()
Returns:
true if the current line contains any fragments

Eclipse Draw2d
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.