net.sf.bt747.j2se.app.map
Class BT747MapWayPointRenderer

java.lang.Object
  extended by net.sf.bt747.j2se.app.map.BT747MapWayPointRenderer
All Implemented Interfaces:
BT747WaypointRenderer, org.jdesktop.swingx.mapviewer.WaypointRenderer

public class BT747MapWayPointRenderer
extends java.lang.Object
implements BT747WaypointRenderer

Author:
Mario

Constructor Summary
BT747MapWayPointRenderer()
           
 
Method Summary
 boolean contains(java.awt.Point pt)
          Returns true if point (relative to waypoint position) is in waypoint rendering (for waypoint selection on mouse operation).
static BT747MapWayPointRenderer getInstance()
           
 boolean isRendererOf(java.lang.Object o)
          Returns true if this renderer knows how to render the object.
 boolean paintInfoWindow(java.awt.Graphics2D g, org.jdesktop.swingx.JXMapViewer map, org.jdesktop.swingx.mapviewer.Waypoint waypoint)
          At the position of the waypoint.
 boolean paintWaypoint(java.awt.Graphics2D g, org.jdesktop.swingx.JXMapViewer map, org.jdesktop.swingx.mapviewer.Waypoint waypoint)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BT747MapWayPointRenderer

public BT747MapWayPointRenderer()
Method Detail

getInstance

public static BT747MapWayPointRenderer getInstance()

isRendererOf

public boolean isRendererOf(java.lang.Object o)
Description copied from interface: BT747WaypointRenderer
Returns true if this renderer knows how to render the object.

Specified by:
isRendererOf in interface BT747WaypointRenderer
Returns:
true if this renderer can render the object.

paintWaypoint

public boolean paintWaypoint(java.awt.Graphics2D g,
                             org.jdesktop.swingx.JXMapViewer map,
                             org.jdesktop.swingx.mapviewer.Waypoint waypoint)

Specified by:
paintWaypoint in interface org.jdesktop.swingx.mapviewer.WaypointRenderer
Parameters:
g -
map -
waypoint -
Returns:
unknown meaning.

paintInfoWindow

public boolean paintInfoWindow(java.awt.Graphics2D g,
                               org.jdesktop.swingx.JXMapViewer map,
                               org.jdesktop.swingx.mapviewer.Waypoint waypoint)
At the position of the waypoint.

Parameters:
g -
map -
waypoint -
Returns:
Unknown meaning.

contains

public boolean contains(java.awt.Point pt)
Description copied from interface: BT747WaypointRenderer
Returns true if point (relative to waypoint position) is in waypoint rendering (for waypoint selection on mouse operation).

Specified by:
contains in interface BT747WaypointRenderer
Returns:
true if the point (in GUI) is part of teh rendering.