com.partnersoft.maps.model
Class MapSpaceLegend

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

public class MapSpaceLegend
extends java.lang.Object
implements Coggable

A global legend for a MapSpace. Each MapSpaceLegend establishes a defined name, background, and zooms for the MapSets in the MapSpace. Each MapSet must then provide individual Legends that correspond to the name of this MapSpaceLegend and that define how the data in the MapSet is to be drawn.

Author:
Paul Reavis Copyright 2005 Partner Software, Inc.

Field Summary
 int backgroundColor
           
 java.lang.String backgroundColorName
           
 double centerX
           
 double centerY
           
 int indicationColor
           
 java.lang.String indicationColorName
           
 java.lang.String name
           
 int selectionColor
           
 java.lang.String selectionColorName
           
 double[] zoomArray
           
 java.util.ArrayList zooms
           
 
Constructor Summary
MapSpaceLegend()
           
 
Method Summary
 java.lang.String getBackgroundColor()
           
 double getCenterX()
           
 double getCenterY()
           
 java.lang.String getName()
           
 Cog getState()
           
 java.util.ArrayList getZooms()
           
 boolean hasDarkBackground()
           
 void setBackgroundColor(java.lang.String argBackgroundColorName)
           
 void setCenterX(double argCenterX)
           
 void setCenterY(double argCenterY)
           
 void setName(java.lang.String argName)
           
 void setState(Cog state)
           
 void setZooms(java.util.ArrayList argZooms)
           
 
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

backgroundColorName

public java.lang.String backgroundColorName

indicationColorName

public java.lang.String indicationColorName

selectionColorName

public java.lang.String selectionColorName

zooms

public java.util.ArrayList zooms

centerX

public double centerX

centerY

public double centerY

backgroundColor

public transient int backgroundColor

indicationColor

public transient int indicationColor

selectionColor

public transient int selectionColor

zoomArray

public transient double[] zoomArray
Constructor Detail

MapSpaceLegend

public MapSpaceLegend()
Method Detail

setState

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

getState

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

getName

public java.lang.String getName()

setName

public void setName(java.lang.String argName)

getBackgroundColor

public java.lang.String getBackgroundColor()

setBackgroundColor

public void setBackgroundColor(java.lang.String argBackgroundColorName)

getZooms

public java.util.ArrayList getZooms()

setZooms

public void setZooms(java.util.ArrayList argZooms)

getCenterX

public double getCenterX()

setCenterX

public void setCenterX(double argCenterX)

getCenterY

public double getCenterY()

setCenterY

public void setCenterY(double argCenterY)

hasDarkBackground

public boolean hasDarkBackground()