miSim

misim.editor
Class BasicLineFactory

java.lang.Object
  |
  +--misim.editor.BasicLineFactory
All Implemented Interfaces:
LineFactory

public class BasicLineFactory
extends java.lang.Object
implements LineFactory

The BasicLineFactory class implements the LineFactory interface to create Lines for a default editor.


Constructor Summary
BasicLineFactory()
           
 
Method Summary
 Line createLine()
          Create an instance of a Line with no tokens - ie.
 Line createLine(java.util.Vector tokens)
          Create an instance of a Line with the given set of tokens.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicLineFactory

public BasicLineFactory()
Method Detail

createLine

public Line createLine()
Create an instance of a Line with no tokens - ie. an empty line
Specified by:
createLine in interface LineFactory
Returns:
An instance of the Line class

createLine

public Line createLine(java.util.Vector tokens)
Create an instance of a Line with the given set of tokens.
Specified by:
createLine in interface LineFactory
Parameters:
tokens - A vector of tokens for this line
Returns:
An instance of the Line class

miSim