public class SelectMode extends AbstractMode
Modifier and Type | Field and Description |
---|---|
private StreetsideAbstractImage |
closest |
private boolean |
imageHighlighted |
private StreetsideAbstractImage |
lastClicked |
private boolean |
nothingHighlighted |
private StreetsideRecord |
record |
cursor
Constructor and Description |
---|
SelectMode()
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
mouseDragged(MouseEvent e) |
void |
mouseMoved(MouseEvent e)
Checks if the mouse is over pictures.
|
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
paint(Graphics2D g,
MapView mv,
Bounds box)
Paint the dataset using the engine set.
|
String |
toString() |
getClosest, resetThread, zoomChanged
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved
private StreetsideAbstractImage closest
private StreetsideAbstractImage lastClicked
private final StreetsideRecord record
private boolean nothingHighlighted
private boolean imageHighlighted
public SelectMode()
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class MouseAdapter
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class MouseAdapter
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class MouseAdapter
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class MouseAdapter
public void paint(Graphics2D g, MapView mv, Bounds box)
AbstractMode
paint
in class AbstractMode
g
- Graphics2D
used for paintingmv
- The object that can translate GeoPoints to screen coordinates.box
- Area where painting is going to be performed