Graphics2D Actor API

g2d.glyph
Class Glyphish

java.lang.Object
  extended by g2d.glyph.Identifiable
      extended by g2d.glyph.Attributable
          extended by g2d.glyph.Glyphish
All Implemented Interfaces:
KeyListener, MouseListener, MouseMotionListener, EventListener
Direct Known Subclasses:
AnimatedGlyph, ClosureGlyph, Glyph, GlyphList, GraphItem, ImageGlyph

public abstract class Glyphish
extends Attributable
implements MouseListener, MouseMotionListener, KeyListener

The start of our next generation Ezd package. This is the root of all things glyphish. The Abstract class to encompass everything glyphish.

Since:
April -- July 2004
Author:
Ian A. Mason (with help from Carolyn Talcott & Ben Funnell)

Field Summary
static boolean DEBUG
           
 
Fields inherited from class g2d.glyph.Identifiable
uid
 
Constructor Summary
Glyphish()
           
 
Method Summary
abstract  Rectangle2D getBounds()
           
abstract  boolean inside(Point2D p)
           
abstract  boolean intersects(Rectangle2D rect)
           
 void keyPressed(KeyEvent e)
           
 void keyReleased(KeyEvent e)
           
 void keyTyped(KeyEvent e)
           
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
abstract  void paint(Graphics2D g2d)
           
 void paint(Graphics2D g2d, Rectangle2D r)
           
 void rotate(double thetaRad)
           
 void rotate(double thetaRad, double x, double y)
           
 void scale(double x, double y)
           
 void setKeyAction(int type, Closure fun)
           
 void setMouseAction(int type, Closure fun)
           
 void shear(double x, double y)
           
abstract  void transform(AffineTransform a)
           
 void translate(double x, double y)
           
 
Methods inherited from class g2d.glyph.Attributable
getAttribute, getAttributeAsBoolean, getAttributeAsByte, getAttributeAsChar, getAttributeAsDouble, getAttributeAsFloat, getAttributeAsInt, getAttributeAsShort, getAttributeAsString, getKeys, getStaticAttribute, getStaticKeys, isAttribute, isStaticAttribute, setAttribute, setStaticAttribute
 
Methods inherited from class g2d.glyph.Identifiable
getObject, getUID, setUID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

public static final boolean DEBUG
See Also:
Constant Field Values
Constructor Detail

Glyphish

public Glyphish()
Method Detail

paint

public abstract void paint(Graphics2D g2d)

transform

public abstract void transform(AffineTransform a)

inside

public abstract boolean inside(Point2D p)

intersects

public abstract boolean intersects(Rectangle2D rect)

getBounds

public abstract Rectangle2D getBounds()

paint

public void paint(Graphics2D g2d,
                  Rectangle2D r)

translate

public void translate(double x,
                      double y)

scale

public void scale(double x,
                  double y)

shear

public void shear(double x,
                  double y)

rotate

public void rotate(double thetaRad,
                   double x,
                   double y)

rotate

public void rotate(double thetaRad)

setMouseAction

public void setMouseAction(int type,
                           Closure fun)

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

setKeyAction

public void setKeyAction(int type,
                         Closure fun)

keyPressed

public void keyPressed(KeyEvent e)
Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
Specified by:
keyReleased in interface KeyListener

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener

Graphics2D Actor API