org.apache.fontbox.cff

Class CharStringRenderer

public class CharStringRenderer extends CharStringHandler

This class represents a renderer for a charstring.

Version: $Revision: 1.0 $

Author: Villu Russmann

Method Summary
Rectangle2DgetBounds()
Returns the bounds of the renderer path.
intgetWidth()
Returns the width of the current command.
voidhandleCommand(List<Integer> numbers, CharStringCommand command)
GeneralPathrender(List<Object> sequence)
Renders the given sequence and returns the result as a GeneralPath.

Method Detail

getBounds

public Rectangle2D getBounds()
Returns the bounds of the renderer path.

Returns: the bounds as Rectangle2D

getWidth

public int getWidth()
Returns the width of the current command.

Returns: the width

handleCommand

public void handleCommand(List<Integer> numbers, CharStringCommand command)
{@inheritDoc }

render

public GeneralPath render(List<Object> sequence)
Renders the given sequence and returns the result as a GeneralPath.

Parameters: sequence the given charstring sequence

Returns: the rendered GeneralPath

Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.