org.apache.batik.apps.rasterizer

Class Main.ColorOptionHandler

public abstract static class Main.ColorOptionHandler extends Main.SingleValueOptionHandler

Base class for options which expect a Color optionValue. Subclasses should implement the handleOption method which takes a Color and an SVGConverter as parameters.
Method Summary
voidhandleOption(String optionValue, SVGConverter c)
abstract voidhandleOption(Color color, SVGConverter c)
ColorparseARGB(String argbVal)
Parse the input value, which should be in the following format: a.r.g.b where a, r, g and b are integer values, in decimal notation, between 0 and 255.

Method Detail

handleOption

public void handleOption(String optionValue, SVGConverter c)

handleOption

public abstract void handleOption(Color color, SVGConverter c)

parseARGB

public Color parseARGB(String argbVal)
Parse the input value, which should be in the following format: a.r.g.b where a, r, g and b are integer values, in decimal notation, between 0 and 255.

Returns: the parsed color if successful. null otherwise.

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.