Top Description Inners Fields Constructors Methods
jogamp.graph.font.typecast.ot.table

public Class HdmxTable

extends Object
implements Table
Class Inheritance
All Implemented Interfaces
jogamp.graph.font.typecast.ot.table.Table
Imports
java.io.DataInput, .IOException

The Horizontal Device Metrics table for TrueType outlines. This stores integer advance widths scaled to specific pixel sizes.
Author
David Schweinsberg
Version
$Id: HdmxTable.java,v 1.2 2007-07-26 11:12:30 davidsch Exp $

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private final DirectoryEntry
private final short
private final HdmxTable.DeviceRecord[]
private final int
private final int

Constructor Summary

AccessConstructor and Description
protected
HdmxTable(final DirectoryEntry de, final DataInput di, final MaxpTable maxp)

Creates a new instance of HdmxTable

Method Summary

Modifier and TypeMethod and Description
public DirectoryEntry

Returns:

A directory entry
getDirectoryEntry
()

Implements jogamp.graph.font.typecast.ot.table.Table.getDirectoryEntry.

Get a directory entry for this table.
public int
public HdmxTable.DeviceRecord
getRecord(final int i)

public int
getType()

Implements jogamp.graph.font.typecast.ot.table.Table.getType.

Get the table type, as a table directory value.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_deback to summary
private final DirectoryEntry _de
_numRecordsback to summary
private final short _numRecords
_recordsback to summary
private final HdmxTable.DeviceRecord[] _records
_sizeDeviceRecordsback to summary
private final int _sizeDeviceRecords
_versionback to summary
private final int _version

Constructor Detail

HdmxTableback to summary
protected HdmxTable(final DirectoryEntry de, final DataInput di, final MaxpTable maxp) throws IOException

Creates a new instance of HdmxTable

Method Detail

getDirectoryEntryback to summary
public DirectoryEntry getDirectoryEntry()

Implements jogamp.graph.font.typecast.ot.table.Table.getDirectoryEntry.

Get a directory entry for this table. This uniquely identifies the table in collections where there may be more than one instance of a particular table.

Returns:DirectoryEntry

A directory entry

Annotations
@Override
getNumberOfRecordsback to summary
public int getNumberOfRecords()
getRecordback to summary
public HdmxTable.DeviceRecord getRecord(final int i)
getTypeback to summary
public int getType()

Implements jogamp.graph.font.typecast.ot.table.Table.getType.

Doc from jogamp.graph.font.typecast.ot.table.Table.getType.

Get the table type, as a table directory value.

Returns:int

The table type

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
jogamp.graph.font.typecast.ot.table back to summary

public Class HdmxTable.DeviceRecord

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final short
private final short
private final short[]

Constructor Summary

AccessConstructor and Description
protected
DeviceRecord(final int numGlyphs, final DataInput di)

Method Summary

Modifier and TypeMethod and Description
public short
public short
public short
getWidth(final int glyphidx)

public short[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_maxWidthback to summary
private final short _maxWidth
_pixelSizeback to summary
private final short _pixelSize
_widthsback to summary
private final short[] _widths

Constructor Detail

DeviceRecordback to summary
protected DeviceRecord(final int numGlyphs, final DataInput di) throws IOException

Method Detail

getMaxWidthback to summary
public short getMaxWidth()
getPixelSizeback to summary
public short getPixelSize()
getWidthback to summary
public short getWidth(final int glyphidx)
getWidthsback to summary
public short[] getWidths()