g2d.glyph
Class Glyphish
java.lang.Object
g2d.glyph.Identifiable
g2d.glyph.Attributable
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
|
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
Glyphish
public Glyphish()
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