public class CharStringRenderer extends CharStringHandler
Constructor and Description |
---|
CharStringRenderer()
Constructor for the char string renderer.
|
CharStringRenderer(boolean isType1)
Constructor for the char string renderer with a parameter
to determine whether the rendered CharString is type 1.
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
getBounds()
Returns the bounds of the renderer path.
|
int |
getWidth()
Returns the width of the current command.
|
List<Integer> |
handleCommand(List<Integer> numbers,
CharStringCommand command)
Handler for CharStringCommands.
|
GeneralPath |
render(List<Object> sequence)
Renders the given sequence and returns the result as a GeneralPath.
|
handleSequence
public CharStringRenderer()
public CharStringRenderer(boolean isType1)
isType1
- Determines wheher the charstring is type 1public GeneralPath render(List<Object> sequence)
sequence
- the given charstring sequencepublic List<Integer> handleCommand(List<Integer> numbers, CharStringCommand command)
handleCommand
in class CharStringHandler
numbers
- a list of numberscommand
- the CharStringCommandpublic Rectangle2D getBounds()
public int getWidth()
Copyright © 2008–2018. All rights reserved.