org.apache.fontbox.cff
Class CharStringRenderer

java.lang.Object
  extended by org.apache.fontbox.cff.CharStringHandler
      extended by org.apache.fontbox.cff.CharStringRenderer

public class CharStringRenderer
extends CharStringHandler

This class represents a renderer for a charstring.

Version:
$Revision: 1.0 $
Author:
Villu Russmann

Constructor Summary
CharStringRenderer()
           
 
Method Summary
 Rectangle2D getBounds()
          Returns the bounds of the renderer path.
 int getWidth()
          Returns the width of the current command.
 void 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.
 
Methods inherited from class org.apache.fontbox.cff.CharStringHandler
handleSequence
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharStringRenderer

public CharStringRenderer()
Method Detail

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

handleCommand

public void handleCommand(List<Integer> numbers,
                          CharStringCommand command)
Handler for CharStringCommands.

Specified by:
handleCommand in class CharStringHandler
Parameters:
numbers - a list of numbers
command - the CharStringCommand

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


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