|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.vex.layout.LayoutContext
Encapsulation of all the resources needed to create a box tree. Most operations on a box tree, such as creating the tree, painting the tree, and converting between spatial and model coordinates, require the context.
Constructor Summary | |
LayoutContext()
Class constructor. |
Method Summary | |
BoxFactory |
getBoxFactory()
Returns the BoxFactory used to generate boxes for the layout. |
Document |
getDocument()
Returns the document being layed out. |
java.awt.Graphics |
getGraphics()
Returns the Graphics object used for layout. |
int |
getSelectionEnd()
Returns the offset where the current selection ends. |
int |
getSelectionStart()
Returns the offset where the current selection starts. |
StyleSheet |
getStyleSheet()
Returns the StyleSheet used for this layout. |
void |
setBoxFactory(BoxFactory factory)
Sets the BoxFactory used to generate boxes for this layout. |
void |
setDocument(Document document)
Sets the document being layed out. |
void |
setGraphics(java.awt.Graphics graphics)
Sets the Graphics object used for this layout. |
void |
setSelectionEnd(int i)
Sets the offset where the current selection ends. |
void |
setSelectionStart(int i)
Sets the offset where the current selection starts. |
void |
setStyleSheet(StyleSheet sheet)
Sets the stylesheet used for this layout. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LayoutContext()
Method Detail |
public BoxFactory getBoxFactory()
public Document getDocument()
public java.awt.Graphics getGraphics()
Graphics
object used for layout. Box paint
methods use this graphics for painting.
public StyleSheet getStyleSheet()
StyleSheet
used for this layout.
public void setBoxFactory(BoxFactory factory)
public void setDocument(Document document)
public void setGraphics(java.awt.Graphics graphics)
public void setStyleSheet(StyleSheet sheet)
public int getSelectionEnd()
public int getSelectionStart()
public void setSelectionEnd(int i)
i
- the new value for selectionEndpublic void setSelectionStart(int i)
i
- the new value for selectionStart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |