net.sf.jcgm.core
Class Text

java.lang.Object
  extended by net.sf.jcgm.core.Command
      extended by net.sf.jcgm.core.TextCommand
          extended by net.sf.jcgm.core.Text
All Implemented Interfaces:
java.lang.Cloneable

public class Text
extends TextCommand

Class=4, Element=4

Version:
$Id: Text.java 46 2011-12-14 08:26:44Z phica $
Author:
xphc (Philippe Cadé), BBNT Solutions

Field Summary
 
Fields inherited from class net.sf.jcgm.core.TextCommand
position, string
 
Fields inherited from class net.sf.jcgm.core.Command
args, currentArg
 
Constructor Summary
Text(int ec, int eid, int l, java.io.DataInput in)
           
 
Method Summary
protected  void scaleText(CGMDisplay d, java.awt.FontMetrics fontMetrics, java.awt.font.GlyphVector glyphVector, double width, double height)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.jcgm.core.TextCommand
applyTextPath, flipString, getString, paint
 
Methods inherited from class net.sf.jcgm.core.Command
alignOnWord, clone, getElementClass, getElementCode, info, makeByte, makeChar, makeColorIndex, makeColorIndex, makeDirectColor, makeEnum, makeFixedPoint, makeFixedString, makeFloat32, makeFloatingPoint, makeFloatingPoint32, makeIndex, makeInt, makeName, makePoint, makeReal, makeSDR, makeSignedInt16, makeSignedInt24, makeSignedInt32, makeSignedInt8, makeSizeSpecification, makeString, makeUInt, makeVc, makeVdc, printShape, read, readCommand, sizeOfDirectColor, sizeOfEnum, sizeOfInt, sizeOfPoint, sizeOfVdc, unimplemented, unsupported
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Text

public Text(int ec,
            int eid,
            int l,
            java.io.DataInput in)
     throws java.io.IOException
Throws:
java.io.IOException
Method Detail

scaleText

protected void scaleText(CGMDisplay d,
                         java.awt.FontMetrics fontMetrics,
                         java.awt.font.GlyphVector glyphVector,
                         double width,
                         double height)
Overrides:
scaleText in class TextCommand

toString

public java.lang.String toString()
Overrides:
toString in class Command


Part of the jcgm library http://jcgm.sourceforge.net/