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

java.lang.Object
  extended by org.extex.font.format.xtf.tables.cff.T2CharString
      extended by org.extex.font.format.xtf.tables.cff.T2Operator
          extended by org.extex.font.format.xtf.tables.cff.T2Hints
              extended by org.extex.font.format.xtf.tables.cff.T2AbstractHintMask
                  extended by org.extex.font.format.xtf.tables.cff.T2HintMask
All Implemented Interfaces:
XMLWriterConvertible

public class T2HintMask
extends T2AbstractHintMask

T2: hintmask: hintmask (19 + mask).

Version:
$Revision: 6604 $
Author:
Michael Niedermair

Field Summary
 
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
T2HintMask(java.util.List<T2CharString> stack, CharString ch, RandomAccessR rar)
          Create a new object.
 
Method Summary
 int getID()
          Returns the id of the operator.
 long getMask()
          Getter for mask.
 java.lang.String getMaskBin()
          Return the mask as binary string.
 java.lang.String getName()
          Return the name of the operator.
 T2Number[] getVal()
          Getter for val.
 java.lang.Object getValue()
          Returns the value of the operator.
 java.lang.String toText()
          Returns a test string from the command.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class org.extex.font.format.xtf.tables.cff.T2AbstractHintMask
getBytes
 
Methods inherited from class org.extex.font.format.xtf.tables.cff.T2Operator
checkWidth, convertStackaddID, init, isOperator, newInstance, toString
 
Methods inherited from class org.extex.font.format.xtf.tables.cff.T2CharString
getInitPrio, isArray, isBoolean, isDouble, isEscape, isInteger, isTopDICTOperator, readNumber, readNumber, readSID, readTopDICTOperator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

T2HintMask

public T2HintMask(java.util.List<T2CharString> stack,
                  CharString ch,
                  RandomAccessR rar)
           throws java.io.IOException
Create a new object.

Parameters:
stack - the stack
ch - The char string.
rar - The input.
Throws:
java.io.IOException - if an IO-error occurs.
Method Detail

getID

public int getID()
Returns the id of the operator.

Specified by:
getID in class T2Operator
Returns:
Returns the id of the operator.
See Also:
T2Operator.getID()

getMask

public long getMask()
Getter for mask.

Returns:
the mask

getMaskBin

public java.lang.String getMaskBin()
Return the mask as binary string.

Returns:
Return the mask as binary string.

getName

public java.lang.String getName()
Return the name of the operator.

Specified by:
getName in class T2Operator
Returns:
Return the name of the operator.
See Also:
T2Operator.getName()

getVal

public T2Number[] getVal()
Getter for val.

Returns:
the val

getValue

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

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

toText

public java.lang.String toText()
Returns a test string from the command.

Overrides:
toText in class T2Operator
Returns:
Returns a text string from the command.
See Also:
T2Operator.toText()

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)