sdljava.ttf

Class GlyphMetrics

public class GlyphMetrics extends Object

The Glyph Metrics of a font.

Version: $Id: GlyphMetrics.java,v 1.2 2004/12/24 17:32:17 ivan_ganza Exp $

Author: Ivan Z. Ganza

Field Summary
intadvance
intmaxx
intmaxy
intminx
intminy
Constructor Summary
GlyphMetrics(int minx, int maxx, int miny, int maxy, int advance)
Creates a new GlyphMetrics instance.
Method Summary
intgetAdvance()
Gets the value of advance
intgetMaxX()
Gets the value of maxx
intgetMaxY()
Gets the value of maxy
intgetMinX()
Gets the value of minx
intgetMinY()
Gets the value of miny
voidsetAdvance(int argAdvance)
Sets the value of advance
voidsetMaxX(int argMaxx)
Sets the value of maxx
voidsetMaxY(int argMaxy)
Sets the value of maxy
voidsetMinX(int argMinx)
Sets the value of minx
voidsetMinY(int argMiny)
Sets the value of miny
StringtoString()
Return a string represenation of this object

Field Detail

advance

int advance

maxx

int maxx

maxy

int maxy

minx

int minx

miny

int miny

Constructor Detail

GlyphMetrics

public GlyphMetrics(int minx, int maxx, int miny, int maxy, int advance)
Creates a new GlyphMetrics instance.

Parameters: minx an int value maxx an int value miny an int value maxy an int value advance an int value

Method Detail

getAdvance

public int getAdvance()
Gets the value of advance

Returns: the value of advance

getMaxX

public int getMaxX()
Gets the value of maxx

Returns: the value of maxx

getMaxY

public int getMaxY()
Gets the value of maxy

Returns: the value of maxy

getMinX

public int getMinX()
Gets the value of minx

Returns: the value of minx

getMinY

public int getMinY()
Gets the value of miny

Returns: the value of miny

setAdvance

public void setAdvance(int argAdvance)
Sets the value of advance

Parameters: argAdvance Value to assign to this.advance

setMaxX

public void setMaxX(int argMaxx)
Sets the value of maxx

Parameters: argMaxx Value to assign to this.maxx

setMaxY

public void setMaxY(int argMaxy)
Sets the value of maxy

Parameters: argMaxy Value to assign to this.maxy

setMinX

public void setMinX(int argMinx)
Sets the value of minx

Parameters: argMinx Value to assign to this.minx

setMinY

public void setMinY(int argMiny)
Sets the value of miny

Parameters: argMiny Value to assign to this.miny

toString

public String toString()
Return a string represenation of this object

Returns: a String represenation of this object