com.perisic.sound
Class MouseIconFactory

java.lang.Object
  extended by com.perisic.sound.MouseIconFactory

public class MouseIconFactory
extends java.lang.Object

Generates the image for the icon.

Copyright:(c) Marc Conrad, Tim French 2010; Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument. DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.

Author:
Marc Conrad

Constructor Summary
MouseIconFactory()
           
 
Method Summary
 java.awt.image.BufferedImage getImage(double x, double y, int width, int height)
          Returns a small circle.
 void setColors(java.awt.Color c1, java.awt.Color c2)
          The two colours used for the icon.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseIconFactory

public MouseIconFactory()
Method Detail

setColors

public void setColors(java.awt.Color c1,
                      java.awt.Color c2)
The two colours used for the icon.

Parameters:
c1 - foreground colour
c2 - background colour

getImage

public java.awt.image.BufferedImage getImage(double x,
                                             double y,
                                             int width,
                                             int height)
Returns a small circle.

Parameters:
x - x-coordinate of the center of the circle.
y - y-coordinate of the center of the circle.
width - width of the icon.
height - height of the icon.
Returns: