com.partnersoft.v3x.apps.MapBrowser
Class ClickMap

java.lang.Object
  extended by com.partnersoft.v3x.apps.MapBrowser.ClickMap

public class ClickMap
extends java.lang.Object

A matrix that maps (x, y) coordinates in pixel space to objects. Used for mapping clicks to data lookups.


Field Summary
static int[] bitmasks
           
 
Constructor Summary
ClickMap()
           
ClickMap(int width, int height)
           
 
Method Summary
 void clear()
           
 void drawHotLine(int x1, int y1, int x2, int y2)
           
 void drawHotLineNoCheck(int x1, int y1, int x2, int y2)
           
 java.awt.Graphics2D getGraphics()
           
 int getHeight()
           
 int getWidth()
           
 java.lang.Object objectAt(int x, int y)
           
 void resize(int width, int height)
           
 void setCurrentObject(java.lang.Object victim)
           
 void stampHotMask(java.lang.Object data, int x, int y, boolean[][] mask)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bitmasks

public static final int[] bitmasks
Constructor Detail

ClickMap

public ClickMap()

ClickMap

public ClickMap(int width,
                int height)
Method Detail

resize

public void resize(int width,
                   int height)

clear

public void clear()

getGraphics

public java.awt.Graphics2D getGraphics()

setCurrentObject

public void setCurrentObject(java.lang.Object victim)

objectAt

public java.lang.Object objectAt(int x,
                                 int y)

stampHotMask

public void stampHotMask(java.lang.Object data,
                         int x,
                         int y,
                         boolean[][] mask)

drawHotLine

public void drawHotLine(int x1,
                        int y1,
                        int x2,
                        int y2)

drawHotLineNoCheck

public void drawHotLineNoCheck(int x1,
                               int y1,
                               int x2,
                               int y2)

getWidth

public int getWidth()

getHeight

public int getHeight()