g2d.glyph
Class AnimatedGlyph
java.lang.Object
g2d.glyph.Identifiable
g2d.glyph.Attributable
g2d.glyph.Glyphish
g2d.glyph.AnimatedGlyph
- All Implemented Interfaces:
- KeyListener, MouseListener, MouseMotionListener, 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
| 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.glyph.Attributable |
_getAttribute, _setAttribute, getAttribute, getAttributeAsBoolean, getAttributeAsByte, getAttributeAsChar, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsShort, getAttributeAsString, getKeys, getStaticAttribute, getStaticKeys, isAttribute, isStaticAttribute, removeAllAttributes, removeAllStaticAttributes, removeAttribute, removeStaticAttribute, setAttribute, setStaticAttribute, showAttributes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnimatedGlyph
public AnimatedGlyph(String directory)
increment
public void increment()
getHeight
public int getHeight()
getWidth
public int getWidth()
inside
public boolean inside(Point2D p)
- Specified by:
inside in class Glyphish
intersects
public boolean intersects(Rectangle2D rect)
- Specified by:
intersects in class Glyphish
paint
public void paint(Graphics2D g2d)
- Specified by:
paint in class Glyphish
transform
public void transform(AffineTransform a)
- Specified by:
transform in class Glyphish
getBounds
public Rectangle2D getBounds()
- Specified by:
getBounds in class Glyphish