Top Inners Fields Constructors Methods
jogamp.graph.font.typecast

public final Class TypecastGlyph

extends Object
implements Glyph
Class Inheritance
All Implemented Interfaces
com.jogamp.graph.font.Font.Glyph
Imports
com.jogamp.common.util.IntIntHashMap, com.jogamp.graph.curve.OutlineShape, com.jogamp.graph.font.Font, com.jogamp.opengl.math.geom.AABBox

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private final short
public static final short
public static final short
private final TypecastGlyph.Metrics
private final OutlineShape
private final char

Constructor Summary

AccessConstructor and Description
protected
TypecastGlyph(final Font font, final char symbol, final short id, final AABBox bbox, final int advance, final OutlineShape shape)

Method Summary

Modifier and TypeMethod and Description
protected final void
addAdvance(final float advance, final float size)

public final float
getAdvance(final float
Use pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)
pixelSize
,
final boolean useFrationalMetrics)

Implements com.jogamp.graph.font.Font.Glyph.getAdvance.

public final AABBox
public final AABBox
getBBox(final AABBox
AABBox instance set to this metrics boundary w/ given pixelSize
dest
,
final float
Use pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)
pixelSize
,
final float[]
caller provided temporary 3-component vector
tmpV3
)

Implements com.jogamp.graph.font.Font.Glyph.getBBox.

pack-priv final AABBox
public final Font
public final short
public final TypecastGlyph.Metrics
public final float
getScale(final float
Use pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)
pixelSize
)

Implements com.jogamp.graph.font.Font.Glyph.getScale.

public final OutlineShape
public final char
public final int
hashCode()

Overrides java.lang.Object.hashCode.

Implements com.jogamp.graph.font.Font.Glyph.hashCode.

Returns a hash code value for this object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

idback to summary
private final short id
INVALID_IDback to summary
public static final short INVALID_ID
MAX_IDback to summary
public static final short MAX_ID
metricsback to summary
private final TypecastGlyph.Metrics metrics
shapeback to summary
private final OutlineShape shape
symbolback to summary
private final char symbol

Constructor Detail

TypecastGlyphback to summary
protected TypecastGlyph(final Font font, final char symbol, final short id, final AABBox bbox, final int advance, final OutlineShape shape)

Method Detail

addAdvanceback to summary
protected final void addAdvance(final float advance, final float size)
getAdvanceback to summary
public final float getAdvance(final float pixelSize, final boolean useFrationalMetrics)

Implements com.jogamp.graph.font.Font.Glyph.getAdvance.

Parameters
pixelSize:float

Doc from com.jogamp.graph.font.Font.Glyph.getAdvance.

Use pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)

Annotations
@Override
getBBoxback to summary
public final AABBox getBBox()

Implements com.jogamp.graph.font.Font.Glyph.getBBox.

Annotations
@Override
getBBoxback to summary
public final AABBox getBBox(final AABBox dest, final float pixelSize, final float[] tmpV3)

Implements com.jogamp.graph.font.Font.Glyph.getBBox.

Parameters
dest:AABBox

Doc from com.jogamp.graph.font.Font.Glyph.getBBox.

AABBox instance set to this metrics boundary w/ given pixelSize

pixelSize:float

Doc from com.jogamp.graph.font.Font.Glyph.getBBox.

Use pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)

tmpV3:float[]

Doc from com.jogamp.graph.font.Font.Glyph.getBBox.

caller provided temporary 3-component vector

Returns:AABBox

Doc from com.jogamp.graph.font.Font.Glyph.getBBox.

the given and set AABBox 'dest'

Annotations
@Override
getBBoxUnsizedback to summary
pack-priv final AABBox getBBoxUnsized()
getFontback to summary
public final Font getFont()

Implements com.jogamp.graph.font.Font.Glyph.getFont.

Annotations
@Override
getIDback to summary
public final short getID()

Implements com.jogamp.graph.font.Font.Glyph.getID.

Annotations
@Override
getMetricsback to summary
public final TypecastGlyph.Metrics getMetrics()
getScaleback to summary
public final float getScale(final float pixelSize)

Implements com.jogamp.graph.font.Font.Glyph.getScale.

Parameters
pixelSize:float

Doc from com.jogamp.graph.font.Font.Glyph.getScale.

Use pointSize * resolution for resolution correct pixel-size, see Font#getPixelSize(float, float)

Annotations
@Override
getShapeback to summary
public final OutlineShape getShape()

Implements com.jogamp.graph.font.Font.Glyph.getShape.

Annotations
@Override
getSymbolback to summary
public final char getSymbol()

Implements com.jogamp.graph.font.Font.Glyph.getSymbol.

Annotations
@Override
hashCodeback to summary
public final int hashCode()

Overrides java.lang.Object.hashCode.

Implements com.jogamp.graph.font.Font.Glyph.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object

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

public final Class TypecastGlyph.Advance

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final float
private final Font
private final IntIntHashMap

Constructor Summary

AccessConstructor and Description
public
Advance(final Font font, final float advance)

Method Summary

Modifier and TypeMethod and Description
public final void
add(final float advance, final float size)

public final float
get(final float pixelSize, final boolean useFrationalMetrics)

public final Font
public final float
getScale(final float pixelSize)

public final void
public final String
toString()

Overrides java.lang.Object.toString.

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

Field Detail

advanceback to summary
private final float advance
fontback to summary
private final Font font
size2advanceIback to summary
private final IntIntHashMap size2advanceI

Constructor Detail

Advanceback to summary
public Advance(final Font font, final float advance)

Method Detail

addback to summary
public final void add(final float advance, final float size)
getback to summary
public final float get(final float pixelSize, final boolean useFrationalMetrics)
getFontback to summary
public final Font getFont()
getScaleback to summary
public final float getScale(final float pixelSize)
resetback to summary
public final void reset()
toStringback to summary
public final 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 back to summary

public final Class TypecastGlyph.Metrics

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final TypecastGlyph.Advance
private final AABBox

Constructor Summary

AccessConstructor and Description
public
Metrics(final Font font, final AABBox bbox, final float advance)

Method Summary

Modifier and TypeMethod and Description
public final void
addAdvance(final float advance, final float size)

public final float
getAdvance(final float pixelSize, final boolean useFrationalMetrics)

public final AABBox
public final Font
public final float
getScale(final float pixelSize)

public final void
public final String
toString()

Overrides java.lang.Object.toString.

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

Field Detail

advanceback to summary
private final TypecastGlyph.Advance advance
bboxback to summary
private final AABBox bbox

Constructor Detail

Metricsback to summary
public Metrics(final Font font, final AABBox bbox, final float advance)

Method Detail

addAdvanceback to summary
public final void addAdvance(final float advance, final float size)
getAdvanceback to summary
public final float getAdvance(final float pixelSize, final boolean useFrationalMetrics)
getBBoxback to summary
public final AABBox getBBox()
getFontback to summary
public final Font getFont()
getScaleback to summary
public final float getScale(final float pixelSize)
resetback to summary
public final void reset()
toStringback to summary
public final 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