com.partnersoft.maps.model
Class Legend

java.lang.Object
  extended by com.partnersoft.maps.model.Legend
All Implemented Interfaces:
Coggable

public class Legend
extends java.lang.Object
implements Coggable

A Legend represents one way of viewing a MapSpace. It consists of a set of predefined scales, called "zooms", and color settings.

Author:
Paul Reavis Copyright 2003 Partner Software, Inc.

Field Summary
 java.lang.String name
           
 java.util.ArrayList scaleRegions
           
 
Constructor Summary
Legend()
           
 
Method Summary
 java.lang.String getFullDescription()
           
 Cog getState()
           
 LegendScaleRegion scaleRegionFor(double scale)
           
 void setState(Cog state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

scaleRegions

public java.util.ArrayList scaleRegions
Constructor Detail

Legend

public Legend()
Method Detail

getState

public Cog getState()
Specified by:
getState in interface Coggable

setState

public void setState(Cog state)
Specified by:
setState in interface Coggable

scaleRegionFor

public LegendScaleRegion scaleRegionFor(double scale)

getFullDescription

public java.lang.String getFullDescription()