| java.lang.Object org.acm.seguin.print.xml.State
All known Subclasses: org.acm.seguin.print.xml.QuoteAttributeValueState, org.acm.seguin.print.xml.AttributeState, org.acm.seguin.print.xml.TextState, org.acm.seguin.print.xml.TagState, org.acm.seguin.print.xml.AttributeValueState,
State | abstract public class State (Code) | | State pattern that is used to print the XML file
author: Chris Seguin |
Constructor Summary | |
public | State() |
State | public State()(Code) | | Constructor for the State object
|
getFont | abstract public Font getFont()(Code) | | Gets the Font attribute of the State object
The Font value |
getFontSize | public int getFontSize()(Code) | | Gets the FontSize attribute of the State object
The FontSize value |
getGraphics | public Graphics getGraphics()(Code) | | Gets the Graphics attribute of the State object
The Graphics value |
getX | public int getX()(Code) | | Gets the X attribute of the State object
The X value |
getY | public int getY()(Code) | | Gets the Y attribute of the State object
The Y value |
initState | protected void initState(State next)(Code) | | Set the state for the next state
Parameters: next - the next state |
print | protected void print(StringBuffer buf)(Code) | | Prints the buffer
Parameters: buf - the buffer |
processLine | public State processLine(String line)(Code) | | Processes a single line and returns the state that is in effect at the
end of the line.
Parameters: line - the line the state |
processLine | abstract protected State processLine(String line, int index, StringBuffer buf)(Code) | | The actual worker method that processes the line. This is what is defined
by the various states
Parameters: line - the line Parameters: index - the index of the character Parameters: buf - the buffer the state at the end of the line |
setFontSize | public void setFontSize(int value)(Code) | | Sets the FontSize attribute of the State object
Parameters: value - The new FontSize value |
setGraphics | public void setGraphics(Graphics value)(Code) | | Sets the Graphics attribute of the State object
Parameters: value - The new Graphics value |
setX | public void setX(int value)(Code) | | Sets the X attribute of the State object
Parameters: value - The new X value |
setY | public void setY(int value)(Code) | | Sets the Y attribute of the State object
Parameters: value - The new Y value |
|
|