org.apache.fontbox.cff
Class CharStringConverter

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

public class CharStringConverter
extends CharStringHandler

A class to convert for a sequence of Type1/Type2 commands into a sequence of CharStringCommands.

Version:
$Revision$
Author:
Villu Russmann

Constructor Summary
CharStringConverter(int defaultWidth, int nominalWidth)
          Constructor.
 
Method Summary
 List<Object> convert(List<Object> commandSequence)
          Converts a sequence of Type1/Type2 commands into a sequence of CharStringCommands.
 void handleCommand(List<Integer> numbers, CharStringCommand command)
          Handler for CharStringCommands.
 
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

CharStringConverter

public CharStringConverter(int defaultWidth,
                           int nominalWidth)
Constructor.

Parameters:
defaultWidth - default width
nominalWidth - nominal width
Method Detail

convert

public List<Object> convert(List<Object> commandSequence)
Converts a sequence of Type1/Type2 commands into a sequence of CharStringCommands.

Parameters:
commandSequence - the type1/type2 sequence
Returns:
the CHarStringCommandSequence

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


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