rl.client.ui
Class HexProhibitedSprite

java.lang.Object
  extended by rl.client.ui.Sprite
      extended by rl.client.ui.HexProhibitedSprite
All Implemented Interfaces:
java.awt.image.ImageObserver

public final class HexProhibitedSprite
extends Sprite

Sprite for a cursor. Just a hexagon outline in a specified color.


Field Summary
 
Fields inherited from class rl.client.ui.Sprite
m_Image, m_ParentComponent, m_Visible, TRANSPARENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
HexProhibitedSprite(javax.swing.JComponent parent, java.awt.Color colour, HexGrid grid)
           
 
Method Summary
 java.awt.Image drawContent(java.awt.Graphics2D graph, java.awt.Image tempImage, java.awt.Rectangle bounds)
           
 java.awt.Rectangle getBounds()
          Returns our bounding rectangle.
 Coordinate getCoordinate()
           
 void setColour(java.awt.Color colour)
           
 void setHexLocation(Coordinate location)
           
 
Methods inherited from class rl.client.ui.Sprite
createImage, createImage, draw, draw, imageUpdate, isReady, isVisible, prepare, repaint, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexProhibitedSprite

public HexProhibitedSprite(javax.swing.JComponent parent,
                           java.awt.Color colour,
                           HexGrid grid)
Method Detail

getCoordinate

public Coordinate getCoordinate()

drawContent

public java.awt.Image drawContent(java.awt.Graphics2D graph,
                                  java.awt.Image tempImage,
                                  java.awt.Rectangle bounds)
Specified by:
drawContent in class Sprite

setHexLocation

public void setHexLocation(Coordinate location)

getBounds

public java.awt.Rectangle getBounds()
Description copied from class: Sprite
Returns our bounding rectangle. The coordinates here are stored with the top left corner of the _board_ being 0, 0, so these do not always correspond to screen coordinates.

Specified by:
getBounds in class Sprite

setColour

public void setColour(java.awt.Color colour)