com.partnersoft.maps.ephemera
Class CompoundEphemeron

java.lang.Object
  extended by com.partnersoft.maps.ephemera.CompoundEphemeron
All Implemented Interfaces:
Ephemeron

public class CompoundEphemeron
extends java.lang.Object
implements Ephemeron

Ephemeron to hold multiple ephemera and stack drawing.

Copyright 2007 Partner Software, Inc.

Version:
$Id: CompoundEphemeron.java 1012 2007-11-24 18:30:02Z paul $
Author:
Rich Stepanski

Constructor Summary
CompoundEphemeron()
          Creates new CompoundEphemeron with no ephemera.
CompoundEphemeron(java.util.ArrayList<Ephemeron> ephemera)
          Creates new CompoundEphemeron with all passed ephemera
 
Method Summary
 void add(Ephemeron eph)
          Adds passed ephemeron to internal list
 void draw(DrawingSurface surface, MapViewFrame frame, XyPoint mousePosition)
          Draw appropriate graphics on the given surface with the given frame, mouse position, and any implementation-specific internal state.
 boolean remove(Ephemeron eph)
          removes passed ephemeron from internal list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundEphemeron

public CompoundEphemeron()
Creates new CompoundEphemeron with no ephemera.


CompoundEphemeron

public CompoundEphemeron(java.util.ArrayList<Ephemeron> ephemera)
Creates new CompoundEphemeron with all passed ephemera

Parameters:
ephemera - - ArrayList of Ephemeron to use
Method Detail

add

public void add(Ephemeron eph)
Adds passed ephemeron to internal list

Parameters:
eph - - ephemeron to add

remove

public boolean remove(Ephemeron eph)
removes passed ephemeron from internal list

Parameters:
eph - - ephemeron to remove
Returns:
- true if eph is contained

draw

public void draw(DrawingSurface surface,
                 MapViewFrame frame,
                 XyPoint mousePosition)
Description copied from interface: Ephemeron
Draw appropriate graphics on the given surface with the given frame, mouse position, and any implementation-specific internal state. The drawing surface is set up with the given frame, and is in map coordinates (not pixels).

Specified by:
draw in interface Ephemeron