com.partnersoft.gui
Class FontGraphics

java.lang.Object
  extended by com.partnersoft.gui.FontGraphics

public class FontGraphics
extends java.lang.Object

This object helps manage Graphics-specific details about a font. It is designed to improve rendering speed.

Author:
Paul Reavis Copyright 2001 Partner Software, Inc.

Field Summary
 int ascent
           
 java.awt.Color color
           
 java.awt.Font font
           
 java.awt.Graphics graphics
           
 java.awt.Color inverseColor
           
 int justificationCode
           
 java.awt.FontMetrics metrics
           
 FontSpecification specification
           
 
Constructor Summary
FontGraphics(FontSpecification specification, java.awt.Graphics graphics)
           
 
Method Summary
 java.awt.geom.Rectangle2D getStringBounds(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

specification

public FontSpecification specification

metrics

public java.awt.FontMetrics metrics

font

public java.awt.Font font

graphics

public java.awt.Graphics graphics

ascent

public int ascent

color

public java.awt.Color color

inverseColor

public java.awt.Color inverseColor

justificationCode

public int justificationCode
Constructor Detail

FontGraphics

public FontGraphics(FontSpecification specification,
                    java.awt.Graphics graphics)
Method Detail

getStringBounds

public java.awt.geom.Rectangle2D getStringBounds(java.lang.String text)