org.apache.batik.transcoder.wmf.tosvg

Class MetaRecord

public class MetaRecord extends Object

This is used to keep data while processing WMF-files. It is tagged with a type and holds a list of Integer-objects. It seems, it might be rewritten to keep just the plain int-data.
Nested Class Summary
static classMetaRecord.ByteRecord
A record that contain byte arrays elements.
static classMetaRecord.StringRecord
Field Summary
intfunctionId
intnumPoints
Constructor Summary
MetaRecord()
Method Summary
voidAddElement(Object obj)
when you are storing Integer-objects, consider using addElement( int ) instead.
voidaddElement(int iValue)
helper method to add int-values.
intelementAt(int offset)
helper-method to return the plain int-value from the record and save the .intValue()-call at the caller's site.
IntegerElementAt(int offset)
if you dont really need the Integer-object from this method it is recommended to use the elementAt()-method instead, which returns an int.
voidEnsureCapacity(int cc)

Field Detail

functionId

public int functionId

numPoints

public int numPoints

Constructor Detail

MetaRecord

public MetaRecord()

Method Detail

AddElement

public void AddElement(Object obj)
when you are storing Integer-objects, consider using addElement( int ) instead.

Parameters: obj

addElement

public final void addElement(int iValue)
helper method to add int-values. This way we keep the call to new Integer() in one place, here.

Parameters: iValue the value to add to ptVector, wrapped in an Integer

elementAt

public final int elementAt(int offset)
helper-method to return the plain int-value from the record and save the .intValue()-call at the caller's site.

Parameters: offset of the element to get

Returns: the intValue of the element at offset

ElementAt

public Integer ElementAt(int offset)
if you dont really need the Integer-object from this method it is recommended to use the elementAt()-method instead, which returns an int.

EnsureCapacity

public void EnsureCapacity(int cc)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.