public class CharStringRenderer extends CharStringHandler
Constructor | 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 | Description |
---|---|---|
java.awt.geom.Rectangle2D |
getBounds() |
Returns the bounds of the renderer path.
|
int |
getWidth() |
Returns the width of the current command.
|
java.util.List<java.lang.Integer> |
handleCommand(java.util.List<java.lang.Integer> numbers,
CharStringCommand command) |
Handler for CharStringCommands.
|
java.awt.geom.GeneralPath |
render(java.util.List<java.lang.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 java.awt.geom.GeneralPath render(java.util.List<java.lang.Object> sequence)
sequence
- the given charstring sequencepublic java.util.List<java.lang.Integer> handleCommand(java.util.List<java.lang.Integer> numbers, CharStringCommand command)
handleCommand
in class CharStringHandler
numbers
- a list of numberscommand
- the CharStringCommandpublic java.awt.geom.Rectangle2D getBounds()
public int getWidth()
Copyright © 2008–2018. All rights reserved.