Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Class java.awt.font.ShapeGraphicAttribute

java.lang.Object
    |
    +----java.awt.font.GraphicAttribute
            |
            +----java.awt.font.ShapeGraphicAttribute

public final class ShapeGraphicAttribute
extends GraphicAttribute

Field Summary
static boolean  FILL
 
static boolean  STROKE
 
 
Fields inherited from class java.awt.font.GraphicAttribute
 BOTTOM_ALIGNMENT, CENTER_BASELINE, HANGING_BASELINE, ROMAN_BASELINE, TOP_ALIGNMENT
 

Constructor Summary
 ShapeGraphicAttribute(Shape shape, int alignment, boolean stroke)
 
 

Method Summary
void  draw(Graphics2D graphics, float x, float y)
 
boolean  equals(Object rhs)
 
boolean  equals(ShapeGraphicAttribute rhs)
 
float  getAdvance()
 
float  getAscent()
 
Rectangle2D  getBounds()
 
float  getDescent()
 
int  hashCode()
 
 
Methods inherited from class java.awt.font.GraphicAttribute
 draw, getAdvance, getAlignment, getAscent, getBounds, getDescent, getJustificationInfo
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STROKE

public static final boolean STROKE

FILL

public static final boolean FILL
Constructor Detail

ShapeGraphicAttribute

public ShapeGraphicAttribute(Shape shape,
                             int alignment,
                             boolean stroke)
Method Detail

getAscent

public float getAscent()
Overrides:
getAscent in class GraphicAttribute

getDescent

public float getDescent()
Overrides:
getDescent in class GraphicAttribute

getAdvance

public float getAdvance()
Overrides:
getAdvance in class GraphicAttribute

draw

public void draw(Graphics2D graphics,
                 float x,
                 float y)
Overrides:
draw in class GraphicAttribute

getBounds

public Rectangle2D getBounds()
Overrides:
getBounds in class GraphicAttribute

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object rhs)
Overrides:
equals in class Object

equals

public boolean equals(ShapeGraphicAttribute rhs)

Contents | Package | Class | Tree | Deprecated | Index | Help Java 1.2 Beta 3
PREV | NEXT SHOW LISTS | HIDE LISTS

Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.