Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.awt.font
Class GraphicAttribute  view GraphicAttribute download GraphicAttribute.java

java.lang.Object
  extended byjava.awt.font.GraphicAttribute
Direct Known Subclasses:
ImageGraphicAttribute, ShapeGraphicAttribute

public abstract class GraphicAttribute
extends java.lang.Object


Field Summary
private  int alignment
           
static int BOTTOM_ALIGNMENT
           
static int CENTER_BASELINE
           
static int HANGING_BASELINE
           
static int ROMAN_BASELINE
           
static int TOP_ALIGNMENT
           
 
Constructor Summary
protected GraphicAttribute(int alignment)
           
 
Method Summary
abstract  void draw(java.awt.Graphics2D graphics, float x, float y)
           
abstract  float getAdvance()
           
 int getAlignment()
           
abstract  float getAscent()
           
 java.awt.geom.Rectangle2D getBounds()
           
abstract  float getDescent()
           
 GlyphJustificationInfo getJustificationInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOTTOM_ALIGNMENT

public static final int BOTTOM_ALIGNMENT
See Also:
Constant Field Values

CENTER_BASELINE

public static final int CENTER_BASELINE
See Also:
Constant Field Values

HANGING_BASELINE

public static final int HANGING_BASELINE
See Also:
Constant Field Values

ROMAN_BASELINE

public static final int ROMAN_BASELINE
See Also:
Constant Field Values

TOP_ALIGNMENT

public static final int TOP_ALIGNMENT
See Also:
Constant Field Values

alignment

private int alignment
Constructor Detail

GraphicAttribute

protected GraphicAttribute(int alignment)
Method Detail

draw

public abstract void draw(java.awt.Graphics2D graphics,
                          float x,
                          float y)

getAdvance

public abstract float getAdvance()

getAlignment

public final int getAlignment()

getAscent

public abstract float getAscent()

getBounds

public java.awt.geom.Rectangle2D getBounds()
                                    throws gnu.classpath.NotImplementedException

getDescent

public abstract float getDescent()

getJustificationInfo

public GlyphJustificationInfo getJustificationInfo()
                                            throws gnu.classpath.NotImplementedException