Graphics2D Actor API

g2d.glyph
Class AnimatedGlyph

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

public class AnimatedGlyph
extends Glyphish

A sequence images, which can be displayed as a sequence or as needed.

Since:
September 7, 2004 (edit oct 2004)
Author:
Ian A. Mason edited to BufferedImage by Ben Funnell

Constructor Summary
AnimatedGlyph(java.lang.String directory)
           
 
Method Summary
 java.awt.geom.Rectangle2D getBounds()
           
 int getHeight()
           
 int getWidth()
           
 void increment()
           
 boolean inside(java.awt.geom.Point2D p)
           
 boolean intersects(java.awt.geom.Rectangle2D rect)
           
 void paint(java.awt.Graphics2D g2d)
           
 void transform(java.awt.geom.AffineTransform a)
           
 
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, toString, wait, wait, wait
 

Constructor Detail

AnimatedGlyph

public AnimatedGlyph(java.lang.String directory)
Method Detail

increment

public void increment()

getHeight

public int getHeight()

getWidth

public int getWidth()

inside

public boolean inside(java.awt.geom.Point2D p)
Specified by:
inside in class Glyphish

intersects

public boolean intersects(java.awt.geom.Rectangle2D rect)
Specified by:
intersects in class Glyphish

paint

public void paint(java.awt.Graphics2D g2d)
Specified by:
paint in class Glyphish

transform

public void transform(java.awt.geom.AffineTransform a)
Specified by:
transform in class Glyphish

getBounds

public java.awt.geom.Rectangle2D getBounds()
Specified by:
getBounds in class Glyphish

Graphics2D Actor API