java.awt.font

Class GlyphMetrics


public final class GlyphMetrics
extends Object

Field Summary

static byte
COMBINING
static byte
COMPONENT
static byte
LIGATURE
static byte
STANDARD
static byte
WHITESPACE

Constructor Summary

GlyphMetrics(boolean horizontal, float advanceX, float advanceY, Rectangle2D bounds, byte glyphType)
GlyphMetrics(float advance, Rectangle2D bounds, byte glyphType)

Method Summary

float
getAdvance()
float
getAdvanceX()
float
getAdvanceY()
Rectangle2D
getBounds2D()
float
getLSB()
float
getRSB()
int
getType()
boolean
isCombining()
boolean
isComponent()
boolean
isLigature()
boolean
isStandard()
boolean
isWhitespace()

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

COMBINING

public static final byte COMBINING
Field Value:
2

COMPONENT

public static final byte COMPONENT
Field Value:
3

LIGATURE

public static final byte LIGATURE
Field Value:
1

STANDARD

public static final byte STANDARD
Field Value:
0

WHITESPACE

public static final byte WHITESPACE
Field Value:
4

Constructor Details

GlyphMetrics

public GlyphMetrics(boolean horizontal,
                    float advanceX,
                    float advanceY,
                    Rectangle2D bounds,
                    byte glyphType)

GlyphMetrics

public GlyphMetrics(float advance,
                    Rectangle2D bounds,
                    byte glyphType)

Method Details

getAdvance

public float getAdvance()

getAdvanceX

public float getAdvanceX()

getAdvanceY

public float getAdvanceY()

getBounds2D

public Rectangle2D getBounds2D()

getLSB

public float getLSB()

getRSB

public float getRSB()

getType

public int getType()

isCombining

public boolean isCombining()

isComponent

public boolean isComponent()

isLigature

public boolean isLigature()

isStandard

public boolean isStandard()

isWhitespace

public boolean isWhitespace()

GlyphMetrics.java Copyright (C) 2003 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.