Class MarkerDescriptor


  • public abstract class MarkerDescriptor
    extends java.lang.Object
    Allows clients to specify how MarkerLocations are navigated, as well as how they should be painted
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.ImageIcon getIcon​(MarkerLocation loc)
      Called to get the icon that corresponds to the given location
      ProgramLocation getProgramLocation​(MarkerLocation loc)
      Called when the navigation bar to the right of the window is clicked to allow the the creator of a Marker an opportunity to provide a more specific ProgramLocation for navigation.
      java.lang.String getTooltip​(MarkerLocation loc)
      Called to get a tool tip for a marker under the cursor in the marker panel
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MarkerDescriptor

        public MarkerDescriptor()
    • Method Detail

      • getProgramLocation

        public ProgramLocation getProgramLocation​(MarkerLocation loc)
        Called when the navigation bar to the right of the window is clicked to allow the the creator of a Marker an opportunity to provide a more specific ProgramLocation for navigation. If null is specified, the client will navigate to the corresponding address.
        Parameters:
        loc - the marker location
        Returns:
        the desired location; may be null
      • getTooltip

        public java.lang.String getTooltip​(MarkerLocation loc)
        Called to get a tool tip for a marker under the cursor in the marker panel
        Parameters:
        loc - the marker location
        Returns:
        the tooltip; may be null
      • getIcon

        public javax.swing.ImageIcon getIcon​(MarkerLocation loc)
        Called to get the icon that corresponds to the given location
        Parameters:
        loc - the marker location
        Returns:
        the icon; may be null