CIDER Toolkit
Version 0.2.0

au.edu.monash.csse.tonyj.cider.canvas
Interface DrawableToken


public interface DrawableToken

This interface must be implemented by all classes that represent drawable tokens that are to be used by the TokenCanvas.


Method Summary
 boolean contains(double x, double y)
          Determine if the specifies co-ordinates lie with the token.
 void draw(java.awt.Graphics2D g2)
          Draws the token.
 

Method Detail

draw

public void draw(java.awt.Graphics2D g2)
Draws the token.

Parameters:
g2 - The graphics context to be drawn to.

contains

public boolean contains(double x,
                        double y)
Determine if the specifies co-ordinates lie with the token.

Parameters:
x - The x co-ordinate.
y - The y co-ordinate.
Returns:
true if and only if the co-ordinates lie with the token.

CIDER Toolkit
Version 0.2.0