edu.nrao.sss.model.source.experiment
Class SourceMap

java.lang.Object
  extended by edu.nrao.sss.model.source.experiment.SourceMap

public class SourceMap
extends Object

A map of the celestial sphere.

Version Info:

$Revision: 1711 $
$Date: 2008-11-14 13:00:45 -0700 (Fri, 14 Nov 2008) $
$Author: dharland $ (last person to modify)

Since:
2007-07-30
Author:
David M. Harland

Constructor Summary
SourceMap()
          Creates a new instance.
 
Method Summary
 void addSource(Source newSource)
           
 void addSource(Source newSource, String collectionName)
           
 void addSources(Collection<? extends Source> newSources)
           
 void addSources(Collection<? extends Source> newSources, String collectionName)
           
 int getHeight()
           
 int getWidth()
           
 void paint(Graphics2D g)
          Paints this map on the given graphics context.
 void setCenterPosition(SphericalPosition newPosition)
          Sets newPosition as the center of this map.
 void setColorSourceCollection(String collectionName, Color color)
           
 void setSize(Dimension size)
           
 void setSize(int width, int height)
           
 void setSkyRadius(Angle newRadius)
          Sets the radius, in angular sky units, of this map.
 RenderedImage takeSnapshot()
          Takes a snapshot of this map in its current state and returns it as an image.
 StringBuilder toHtmlImageMap(String mapName)
          This method probably does not belong here; just experimenting for now.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceMap

public SourceMap()
Creates a new instance.

Method Detail

setColorSourceCollection

public void setColorSourceCollection(String collectionName,
                                     Color color)
Parameters:
collectionName -
color -

getWidth

public int getWidth()

getHeight

public int getHeight()

setSize

public void setSize(Dimension size)

setSize

public void setSize(int width,
                    int height)

addSource

public void addSource(Source newSource)

addSources

public void addSources(Collection<? extends Source> newSources)
Parameters:
newSources -

addSource

public void addSource(Source newSource,
                      String collectionName)
Parameters:
newSource -
collectionName -

addSources

public void addSources(Collection<? extends Source> newSources,
                       String collectionName)
Parameters:
newSources -
collectionName -

setCenterPosition

public void setCenterPosition(SphericalPosition newPosition)
Sets newPosition as the center of this map.

Parameters:
newPosition - the new center of this map.

setSkyRadius

public void setSkyRadius(Angle newRadius)
Sets the radius, in angular sky units, of this map.

Parameters:
newRadius - the radius, in angular sky units, of this map.

paint

public void paint(Graphics2D g)
Paints this map on the given graphics context.

Parameters:
g -

takeSnapshot

public RenderedImage takeSnapshot()
Takes a snapshot of this map in its current state and returns it as an image.

Returns:
an image of the current state of this map.

toHtmlImageMap

public StringBuilder toHtmlImageMap(String mapName)
This method probably does not belong here; just experimenting for now.



Copyright © 2009. All Rights Reserved.