org.freehep.postscript
Class FontOperator

java.lang.Object
  extended by org.freehep.postscript.PSObject
      extended by org.freehep.postscript.PSSimple
          extended by org.freehep.postscript.PSOperator
              extended by org.freehep.postscript.FontOperator
All Implemented Interfaces:
Cloneable

public class FontOperator
extends PSOperator

Font Operators for PostScript Processor

Version:
$Id: FontOperator.java 8951 2006-09-12 21:44:14Z duns $
Author:
Mark Donszelmann

Field Summary
protected  PSGlyph currentGlyph
           
protected static Hashtable fontCache
           
static Class[] operators
           
 
Fields inherited from class org.freehep.postscript.PSOperator
operandTypes
 
Fields inherited from class org.freehep.postscript.PSObject
name
 
Constructor Summary
FontOperator()
           
 
Method Summary
protected  void defineFont(PSDictionary fontDirectory, PSName key, PSDictionary font)
           
 boolean execute(OperandStack os)
           
protected  PSDictionary findFont(PSDictionary fontDirectory, PSName key)
           
protected  PSGlyph getCachedGlyph(PSDictionary font, PSName name)
           
protected  PSDictionary makeFont(PSDictionary font, double[] matrix)
           
protected  void setFont(OperandStack os, PSDictionary font)
           
protected  void show(OperandStack os, int cc)
           
protected  void show(OperandStack os, int cc, PSName name)
           
protected  void show(OperandStack os, PSGState gs, PSDictionary font, int cc, PSName name)
           
static float stringWidth(OperandStack os, int cc)
           
protected static float stringWidth(PSDictionary font, PSName name)
           
 
Methods inherited from class org.freehep.postscript.PSOperator
checkAndExecute, clone, copy, cvs, equals, getName, getType, hashCode, toString
 
Methods inherited from class org.freehep.postscript.PSObject
error, isExecutable, isLiteral, setExecutable, setLiteral, setName, toPrint
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

fontCache

protected static Hashtable fontCache

operators

public static Class[] operators

currentGlyph

protected PSGlyph currentGlyph
Constructor Detail

FontOperator

public FontOperator()
Method Detail

findFont

protected PSDictionary findFont(PSDictionary fontDirectory,
                                PSName key)

defineFont

protected void defineFont(PSDictionary fontDirectory,
                          PSName key,
                          PSDictionary font)

makeFont

protected PSDictionary makeFont(PSDictionary font,
                                double[] matrix)

setFont

protected void setFont(OperandStack os,
                       PSDictionary font)

getCachedGlyph

protected PSGlyph getCachedGlyph(PSDictionary font,
                                 PSName name)

show

protected void show(OperandStack os,
                    int cc)

show

protected void show(OperandStack os,
                    int cc,
                    PSName name)

show

protected void show(OperandStack os,
                    PSGState gs,
                    PSDictionary font,
                    int cc,
                    PSName name)

stringWidth

public static float stringWidth(OperandStack os,
                                int cc)

stringWidth

protected static float stringWidth(PSDictionary font,
                                   PSName name)

execute

public boolean execute(OperandStack os)
Specified by:
execute in class PSObject


Copyright © 2000-2006 FreeHEP. All Rights Reserved.