kinetic
Class KineticImage

java.lang.Object
  |
  +--kinetic.KineticObject
        |
        +--kinetic.KineticRectangle
              |
              +--kinetic.KineticImage
All Implemented Interfaces:
java.io.Serializable

public class KineticImage
extends KineticRectangle

Uses Java's toolkit image capabilites that can load a GIF, JPEG, or PNG file either locally or a URL

See Also:
Serialized Form

Field Summary
 
Fields inherited from class kinetic.KineticRectangle
absoluteX, absoluteY, original_bounds, transformed_bounds, xSize, ySize
 
Fields inherited from class kinetic.KineticObject
alpha, blue, BOTTOM_CENTER, BOTTOM_LEFT, BOTTOM_RIGHT, delay, duration, green, lastUpdateTime, MIDDLE_CENTER, MIDDLE_LEFT, MIDDLE_RIGHT, mode, name, orientation, parent, properties, red, rotation, selected, timeFilters, TOP_CENTER, TOP_LEFT, TOP_RIGHT, visible, x, xScale, xShear, y, yScale, yShear
 
Constructor Summary
KineticImage()
          Creates a new instance of KineticImage
KineticImage(java.lang.String n, double del, double dur)
          creates a new instance
 
Method Summary
 void draw(java.awt.Graphics2D g2, java.awt.geom.AffineTransform ax)
          main draw routin when affinte transform is provided
 void load(java.lang.String path)
          loads the image data from a local file
 void load(java.net.URL url)
          loads the image data from a URL
 
Methods inherited from class kinetic.KineticRectangle
contains, draw, getAbsoluteX, getAbsoluteY, getBounds, getHeight, getWidth, setSize
 
Methods inherited from class kinetic.KineticObject
addProperty, addTimeFilter, clear, getDelay, getDuration, getMaxDuration, getName, getPropertyList, getTimeFilterList, handleMouseEvent, initialize, onUpdate, PrepareVariables, reset, setColor, setColor, setColor, setDelay, setDuration, setMode, setName, setOrientation, setPosition, setRotation, setScale, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KineticImage

public KineticImage()
Creates a new instance of KineticImage


KineticImage

public KineticImage(java.lang.String n,
                    double del,
                    double dur)
creates a new instance

Parameters:
n - name
del - delay - ms
dur - dur - ms
Method Detail

load

public void load(java.lang.String path)
          throws java.lang.Exception
loads the image data from a local file

Parameters:
path - full path for the file
java.lang.Exception

load

public void load(java.net.URL url)
          throws java.lang.Exception
loads the image data from a URL

Parameters:
url - url for image
java.lang.Exception

draw

public void draw(java.awt.Graphics2D g2,
                 java.awt.geom.AffineTransform ax)
main draw routin when affinte transform is provided

Overrides:
draw in class KineticRectangle
Parameters:
g2 - graphics handle
ax - current affine transform