Graphics2D Actor API

g2d.glyph
Class Glyphish

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

public abstract class Glyphish
extends Attributable
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.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
           
 
Constructor Summary
Glyphish()
           
Glyphish(Glyphish clone)
           
 
Method Summary
abstract  java.awt.geom.Rectangle2D getBounds()
           
abstract  boolean inside(java.awt.geom.Point2D p)
           
abstract  boolean intersects(java.awt.geom.Rectangle2D rect)
           
 void keyPressed(java.awt.event.KeyEvent e)
           
 void keyReleased(java.awt.event.KeyEvent e)
           
 void keyTyped(java.awt.event.KeyEvent e)
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
abstract  void paint(java.awt.Graphics2D g2d)
           
 void paint(java.awt.Graphics2D g2d, java.awt.geom.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(java.awt.geom.AffineTransform a)
           
 void translate(double x, double y)
           
 void unsetMouseAction(int type)
           
 
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
 

Field Detail

DEBUG

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

Glyphish

public Glyphish()

Glyphish

public Glyphish(Glyphish clone)
Method Detail

paint

public abstract void paint(java.awt.Graphics2D g2d)

transform

public abstract void transform(java.awt.geom.AffineTransform a)

inside

public abstract boolean inside(java.awt.geom.Point2D p)

intersects

public abstract boolean intersects(java.awt.geom.Rectangle2D rect)

getBounds

public abstract java.awt.geom.Rectangle2D getBounds()

paint

public void paint(java.awt.Graphics2D g2d,
                  java.awt.geom.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)

unsetMouseAction

public void unsetMouseAction(int type)

setMouseAction

public void setMouseAction(int type,
                           Closure fun)

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

setKeyAction

public void setKeyAction(int type,
                         Closure fun)

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Specified by:
keyPressed in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Specified by:
keyReleased in interface java.awt.event.KeyListener

keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Specified by:
keyTyped in interface java.awt.event.KeyListener

Graphics2D Actor API