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

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

public class IconWayPointRenderer
extends java.lang.Object
implements BT747WaypointRenderer

Author:
Mario

Constructor Summary
IconWayPointRenderer()
           
 
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 IconWayPointRenderer 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

IconWayPointRenderer

public IconWayPointRenderer()
Method Detail

getInstance

public static IconWayPointRenderer 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:
true if success.

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
Parameters:
pt - relative to position of waypoint.
Returns:
true if pt is part of Waypoint representation.