rl.leviathan.client.ui
Class CapitalShipHighlightSprite
java.lang.Object
rl.client.ui.Sprite
rl.leviathan.client.ui.CapitalShipHighlightSprite
- All Implemented Interfaces:
- java.awt.image.ImageObserver
public class CapitalShipHighlightSprite
- extends Sprite
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CapitalShipHighlightSprite
public CapitalShipHighlightSprite(javax.swing.JComponent parent,
java.awt.Color colour,
CapitalShip element,
CapitalShipLocation location,
HexGrid hexGrid)
drawContent
public java.awt.Image drawContent(java.awt.Graphics2D graph,
java.awt.Image tempImage,
java.awt.Rectangle bounds)
- Specified by:
drawContent in class Sprite
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
setLocation
public void setLocation(CapitalShipLocation location)
setColour
public void setColour(java.awt.Color colour)