org.openbp.jaspira.gui.interaction
Class BasicCursorPrototype

java.lang.Object
  extended by org.openbp.jaspira.gui.interaction.BasicCursorPrototype
All Implemented Interfaces:
CursorPrototype

public class BasicCursorPrototype
extends java.lang.Object
implements CursorPrototype


Constructor Summary
BasicCursorPrototype(java.awt.Image subTemplate, java.awt.Image superTemplate, java.awt.Point hotspot)
          Constructor.
 
Method Summary
 java.awt.Cursor createCursor(MultiIcon icon)
          Creates a new cursor based on the cursor prototype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicCursorPrototype

public BasicCursorPrototype(java.awt.Image subTemplate,
                            java.awt.Image superTemplate,
                            java.awt.Point hotspot)
Constructor.

Parameters:
subTemplate - Image to be laid below the custom image or null
superTemplate - Image to be laid on top of the custom image or null
hotspot - Hotspot of the cursor to be defined
Method Detail

createCursor

public java.awt.Cursor createCursor(MultiIcon icon)
Creates a new cursor based on the cursor prototype. Places the custom icon in the area defined by the custom image area between sub and super template.

Specified by:
createCursor in interface CursorPrototype
Parameters:
icon - Custom icon this cursor should display
Returns:
The new cursor


Copyright © 2011. All Rights Reserved.