org.extex.font.format.xtf.tables.cff
Class T1DictDelta

java.lang.Object
  extended by org.extex.font.format.xtf.tables.cff.T2CharString
      extended by org.extex.font.format.xtf.tables.cff.T1DictKey
          extended by org.extex.font.format.xtf.tables.cff.T1DictDelta
All Implemented Interfaces:
XMLWriterConvertible
Direct Known Subclasses:
T1BlueValues, T1FamilyBlues, T1FamilyOtherBlues, T1OtherBlues, T1StemSnapH, T1StemSnapV

public abstract class T1DictDelta
extends T1DictKey

Type 1 dict delta.

The length of array or delta types is determined by counting the operands preceding the operator. The second and subsequent numbers in a delta are encoded as the difference between successive values. For example, an array a0, a1, ..., an would be encoded as: a0 (a1-a0) (a2-a1) ..., (an-a(n-1)).

For calculation, you must use a0 (a1+a0) (a2+a1) ..., (an+a(n-1))

Version:
$Revision: 6604 $
Author:
Michael Niedermair

Field Summary
 
Fields inherited from class org.extex.font.format.xtf.tables.cff.T1DictKey
BLUE_FUZZ, BLUE_SCALE, BLUE_SHIFT, BLUE_VALUES, DEFAULT_WIDTH_X, EXPANSION_FACTOR, FAMILY_BLUES, FAMILY_OTHER_BLUES, FORCES_BOLD, INITIAL_RANDOM_SEED, LANGUAGE_GROUP, NOMINAL_WIDTH_X, OTHER_BLUES, STD_H_W, STD_V_W, STEM_SNAP_H, STEM_SNAP_V, SUBRS
 
Fields inherited from class org.extex.font.format.xtf.tables.cff.T2CharString
ESCAPE, ESCAPE_BYTE, T2CALLGSUBR, T2CALLSUBR, T2CNTRMASK, T2ENDCHAR, T2FLEX, T2FLEX1, T2HFLEX, T2HFLEX1, T2HHCURVETO, T2HINTMASK, T2HLINETO, T2HMOVETO, T2HSTEM, T2HSTEMHM, T2HVCURVETO, T2RCURVELINE, T2RETURN, T2RLINECURVE, T2RLINETO, T2RMOVETO, T2RRCURVETO, T2VHCURVETO, T2VLINETO, T2VMOVETO, T2VSTEM, T2VSTEMHM, T2VVCURVETO, TYPE_CALLGSUBR, TYPE_CALLSUBR, TYPE_CNTRMASK, TYPE_ENDCHAR, TYPE_FLEX, TYPE_FLEX1, TYPE_HFLEX, TYPE_HFLEX1, TYPE_HHCURVETO, TYPE_HINTMASK, TYPE_HLINETO, TYPE_HMOVETO, TYPE_HSTEM, TYPE_HSTEMHM, TYPE_HVCURVETO, TYPE_RCURVELINE, TYPE_RETURN, TYPE_RLINECURVE, TYPE_RLINETO, TYPE_RMOVETO, TYPE_RRCURVETO, TYPE_VHCURVETO, TYPE_VLINETO, TYPE_VMOVETO, TYPE_VSTEM, TYPE_VSTEMHM, TYPE_VVCURVETO
 
Constructor Summary
protected T1DictDelta(java.util.List<T2Number> stack, short[] id)
          Create a new object.
 
Method Summary
 short[] getBytes()
          Returns the byte-array as short for the object.
 java.lang.Object getValue()
          Returns the value of the operator.
 boolean isArray()
          Check, if the object is a array.
 java.lang.String toString()
          
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class org.extex.font.format.xtf.tables.cff.T1DictKey
convertStackaddID, getName, init, newInstance
 
Methods inherited from class org.extex.font.format.xtf.tables.cff.T2CharString
getInitPrio, isBoolean, isDouble, isEscape, isInteger, isOperator, isTopDICTOperator, readNumber, readNumber, readSID, readTopDICTOperator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

T1DictDelta

protected T1DictDelta(java.util.List<T2Number> stack,
                      short[] id)
               throws java.io.IOException
Create a new object.

Parameters:
stack - the stack
id - the operator-id for the value
Throws:
java.io.IOException - if an IO.error occurs.
Method Detail

getBytes

public short[] getBytes()
Returns the byte-array as short for the object.

Specified by:
getBytes in class T2CharString
Returns:
Returns the byte-array for the object.
See Also:
T2CharString.getBytes()

getValue

public java.lang.Object getValue()
Returns the value of the operator.

Specified by:
getValue in class T1DictKey
Returns:
Returns the value of the operator.
See Also:
T2Operator.getValue()

isArray

public boolean isArray()
Check, if the object is a array.

Overrides:
isArray in class T2CharString
Returns:
Returns true, if the object is a array.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

writeXML

public void writeXML(XMLStreamWriter writer)
              throws java.io.IOException
Write the data to a XMLStreamWriter.

Parameters:
writer - the XML-Writer
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
XMLWriterConvertible.writeXML( org.extex.util.xml.XMLStreamWriter)