megamek.client.ui.swing.util
Class ColorParser

java.lang.Object
  extended by megamek.client.ui.swing.util.ColorParser

public class ColorParser
extends java.lang.Object


Nested Class Summary
static class ColorParser.ParseException
           
 
Field Summary
protected  java.awt.Color color
           
protected  int currentToken
           
protected  ColorParser.ParseException exception
           
protected  java.io.StreamTokenizer st
           
 
Constructor Summary
ColorParser()
           
 
Method Summary
protected  void clear()
           
 java.awt.Color getColor()
           
 ColorParser.ParseException getException()
           
protected  void nextToken()
           
protected  boolean parse()
           
 boolean parse(java.io.StreamTokenizer st)
           
 boolean parse(java.lang.String color)
           
protected  void parseColor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

st

protected java.io.StreamTokenizer st

currentToken

protected int currentToken

exception

protected ColorParser.ParseException exception

color

protected java.awt.Color color
Constructor Detail

ColorParser

public ColorParser()
Method Detail

getColor

public java.awt.Color getColor()

parse

public boolean parse(java.lang.String color)

parse

public boolean parse(java.io.StreamTokenizer st)

getException

public ColorParser.ParseException getException()

clear

protected void clear()

parse

protected boolean parse()

parseColor

protected void parseColor()
                   throws ColorParser.ParseException
Throws:
ColorParser.ParseException

nextToken

protected void nextToken()