Class Main.SingleValueOptionHandler
java.lang.Object
org.apache.batik.apps.rasterizer.Main.AbstractOptionHandler
org.apache.batik.apps.rasterizer.Main.SingleValueOptionHandler
- All Implemented Interfaces:
Main.OptionHandler
- Direct Known Subclasses:
Main.ColorOptionHandler, Main.FloatOptionHandler, Main.RectangleOptionHandler
- Enclosing class:
Main
Base class for options with a single option value. Subclasses should
provide an implementation for the
handleOption method which
takes a String and an SVGConverter as parameters.- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of values which the option handler requires.abstract voidhandleOption(String optionValue, SVGConverter c) voidsafeHandleOption(String[] optionValues, SVGConverter c) Methods inherited from class Main.AbstractOptionHandler
handleOptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Main.OptionHandler
getOptionDescription
-
Constructor Details
-
SingleValueOptionHandler
public SingleValueOptionHandler()
-
-
Method Details
-
safeHandleOption
- Specified by:
safeHandleOptionin classMain.AbstractOptionHandler
-
getOptionValuesLength
public int getOptionValuesLength()Description copied from interface:Main.OptionHandlerReturns the number of values which the option handler requires. This defines the length of the optionValues array passed to the handler in the handleOption method -
handleOption
-