Graphics2D Actor API

g2d.glyph
Class SubTextGlyph

java.lang.Object
  extended by g2d.jlambda.Identifiable
      extended by g2d.jlambda.Attributable
          extended by g2d.glyph.Glyphish
              extended by g2d.glyph.GlyphList
                  extended by g2d.glyph.SubTextGlyph
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.util.EventListener

public class SubTextGlyph
extends GlyphList

Antialiased text with subscript and supscript support.

Since:
August 2004
Author:
Ben Funnell

Field Summary
 
Fields inherited from class g2d.glyph.GlyphList
debug
 
Fields inherited from class g2d.glyph.Glyphish
DEBUG
 
Constructor Summary
SubTextGlyph(java.lang.String text)
           
SubTextGlyph(java.lang.String text, int size)
           
SubTextGlyph(java.lang.String text, int size, java.lang.String font)
           
 
Method Summary
 void alignBottom(java.awt.geom.Rectangle2D bounds)
           
 void alignCenter(java.awt.geom.Rectangle2D bounds)
           
 void alignLeft(java.awt.geom.Rectangle2D bounds)
           
 void alignOnTop(java.awt.geom.Rectangle2D bounds)
           
 void alignRight(java.awt.geom.Rectangle2D bounds)
           
 void alignToLeft(java.awt.geom.Rectangle2D bounds)
           
 void alignTop(java.awt.geom.Rectangle2D bounds)
           
 void alignToPoint(java.awt.geom.Point2D point)
           
 void alignToRight(java.awt.geom.Rectangle2D bounds)
           
 void alignUnder(java.awt.geom.Rectangle2D bounds)
           
static void main(java.lang.String[] args)
           
 void setFont(java.lang.String font)
           
 void setSize(int size)
           
 void sub(java.lang.String text, int size, java.lang.String type)
           
 
Methods inherited from class g2d.glyph.GlyphList
add, add, add, clear, contains, dump, get, getBounds, getGlyphThing, getListIterator, inside, intersects, length, paint, remove, toString, transform
 
Methods inherited from class g2d.glyph.Glyphish
keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, paint, rotate, rotate, scale, setKeyAction, setMouseAction, shear, translate, unsetMouseAction
 
Methods inherited from class g2d.jlambda.Attributable
_getAttribute, _setAttribute, getAttribute, getAttributeAsBoolean, getAttributeAsByte, getAttributeAsChar, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsShort, getAttributeAsString, getKeys, getStaticAttribute, getStaticKeys, isAttribute, isStaticAttribute, removeAllAttributes, removeAllStaticAttributes, removeAttribute, removeStaticAttribute, setAttribute, setStaticAttribute, showAttributes, showAttributes
 
Methods inherited from class g2d.jlambda.Identifiable
getObject, getUID, setUID, unsetUID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubTextGlyph

public SubTextGlyph(java.lang.String text)

SubTextGlyph

public SubTextGlyph(java.lang.String text,
                    int size)

SubTextGlyph

public SubTextGlyph(java.lang.String text,
                    int size,
                    java.lang.String font)
Method Detail

setFont

public void setFont(java.lang.String font)

setSize

public void setSize(int size)

sub

public void sub(java.lang.String text,
                int size,
                java.lang.String type)

alignCenter

public void alignCenter(java.awt.geom.Rectangle2D bounds)

alignLeft

public void alignLeft(java.awt.geom.Rectangle2D bounds)

alignToRight

public void alignToRight(java.awt.geom.Rectangle2D bounds)

alignRight

public void alignRight(java.awt.geom.Rectangle2D bounds)

alignToLeft

public void alignToLeft(java.awt.geom.Rectangle2D bounds)

alignTop

public void alignTop(java.awt.geom.Rectangle2D bounds)

alignOnTop

public void alignOnTop(java.awt.geom.Rectangle2D bounds)

alignBottom

public void alignBottom(java.awt.geom.Rectangle2D bounds)

alignUnder

public void alignUnder(java.awt.geom.Rectangle2D bounds)

alignToPoint

public void alignToPoint(java.awt.geom.Point2D point)

main

public static void main(java.lang.String[] args)

Graphics2D Actor API