com.partnersoft.v3x.apps.MapBrowser.rover
Class RoverIcon

java.lang.Object
  extended by com.partnersoft.v3x.apps.MapBrowser.rover.RoverIcon

public class RoverIcon
extends java.lang.Object

An icon used to represent RoverPoint entities on a map display. This consists of an image to use, plus a derived rectangular bitmask representing the "hot spot", or clickable area, for that image - generally the non-transparent pixels.


Field Summary
 FontSpecification fontSpecification
          Public for speed.
 int height
          Public for speed.
 boolean[][] hotMask
          Public for speed.
 java.awt.Image icon
          Public for speed.
 int offsetX
          Public for speed.
 int offsetY
          Public for speed.
 float rotation
           
 java.lang.String symbolText
          Public for speed.
static FixedColorFilter toBlackFilter
           
static FixedColorFilter toWhiteFilter
           
 int width
          Public for speed.
 
Constructor Summary
RoverIcon(FontSpecification spec, java.lang.String symbolText)
           
RoverIcon(java.awt.Image icon)
           
RoverIcon(java.lang.String iconName)
           
 
Method Summary
 void draw(java.awt.Graphics2D g, int x, int y)
           
 void drawAsBlack(java.awt.Graphics2D g, int x, int y)
           
 void drawAsWhite(java.awt.Graphics2D g, int x, int y)
           
 void drawInverted(java.awt.Graphics2D g, int x, int y)
           
 void drawSelected(java.awt.Graphics2D g, int x, int y)
           
static ImageFactory factorySingleton()
           
static RoverIcon getTextHandleIcon()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toBlackFilter

public static final FixedColorFilter toBlackFilter

toWhiteFilter

public static final FixedColorFilter toWhiteFilter

icon

public java.awt.Image icon
Public for speed. Don't abuse the privilege.


hotMask

public boolean[][] hotMask
Public for speed. Don't abuse it.


offsetX

public int offsetX
Public for speed. Don't abuse it.


offsetY

public int offsetY
Public for speed. Don't abuse it.


width

public int width
Public for speed. Don't abuse it.


height

public int height
Public for speed. Don't abuse it.


fontSpecification

public FontSpecification fontSpecification
Public for speed. Don't abuse it.


symbolText

public java.lang.String symbolText
Public for speed. Don't abuse it.


rotation

public float rotation
Constructor Detail

RoverIcon

public RoverIcon(FontSpecification spec,
                 java.lang.String symbolText)

RoverIcon

public RoverIcon(java.lang.String iconName)

RoverIcon

public RoverIcon(java.awt.Image icon)
Method Detail

factorySingleton

public static ImageFactory factorySingleton()

getTextHandleIcon

public static RoverIcon getTextHandleIcon()

draw

public void draw(java.awt.Graphics2D g,
                 int x,
                 int y)

drawSelected

public void drawSelected(java.awt.Graphics2D g,
                         int x,
                         int y)

drawAsBlack

public void drawAsBlack(java.awt.Graphics2D g,
                        int x,
                        int y)

drawAsWhite

public void drawAsWhite(java.awt.Graphics2D g,
                        int x,
                        int y)

drawInverted

public void drawInverted(java.awt.Graphics2D g,
                         int x,
                         int y)