Class AbstractMode
- java.lang.Object
-
- java.awt.event.MouseAdapter
-
- org.openstreetmap.josm.plugins.streetside.mode.AbstractMode
-
- All Implemented Interfaces:
java.awt.event.MouseListener,java.awt.event.MouseMotionListener,java.awt.event.MouseWheelListener,java.util.EventListener,NavigatableComponent.ZoomChangeListener
- Direct Known Subclasses:
SelectMode
public abstract class AbstractMode extends java.awt.event.MouseAdapter implements NavigatableComponent.ZoomChangeListener
Superclass for all the mode of theStreetsideLayer.- See Also:
StreetsideLayer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classAbstractMode.SemiautomaticThread
-
Field Summary
Fields Modifier and Type Field Description intcursorCursor that should become active when this mode is activated.private static intDOWNLOAD_COOLDOWNprivate static AbstractMode.SemiautomaticThreadsemiautomaticThread
-
Constructor Summary
Constructors Constructor Description AbstractMode()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected StreetsideAbstractImagegetClosest(java.awt.Point clickPoint)abstract voidpaint(java.awt.Graphics2D g, MapView mv, Bounds box)Paint the dataset using the engine set.static voidresetThread()Resets the semiautomatic mode thread.voidzoomChanged()
-
-
-
Field Detail
-
DOWNLOAD_COOLDOWN
private static final int DOWNLOAD_COOLDOWN
- See Also:
- Constant Field Values
-
semiautomaticThread
private static AbstractMode.SemiautomaticThread semiautomaticThread
-
cursor
public int cursor
Cursor that should become active when this mode is activated.
-
-
Constructor Detail
-
AbstractMode
public AbstractMode()
-
-
Method Detail
-
getClosest
protected StreetsideAbstractImage getClosest(java.awt.Point clickPoint)
-
paint
public abstract void paint(java.awt.Graphics2D g, MapView mv, Bounds box)
Paint the dataset using the engine set.- Parameters:
g-Graphics2Dused for paintingmv- The object that can translate GeoPoints to screen coordinates.box- Area where painting is going to be performed
-
zoomChanged
public void zoomChanged()
- Specified by:
zoomChangedin interfaceNavigatableComponent.ZoomChangeListener
-
resetThread
public static void resetThread()
Resets the semiautomatic mode thread.
-
-