|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.nrao.sss.model.source.experiment.SourceMap
public class SourceMap
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) |
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 |
---|
public SourceMap()
Method Detail |
---|
public void setColorSourceCollection(String collectionName, Color color)
collectionName
- color
- public int getWidth()
public int getHeight()
public void setSize(Dimension size)
public void setSize(int width, int height)
public void addSource(Source newSource)
public void addSources(Collection<? extends Source> newSources)
newSources
- public void addSource(Source newSource, String collectionName)
newSource
- collectionName
- public void addSources(Collection<? extends Source> newSources, String collectionName)
newSources
- collectionName
- public void setCenterPosition(SphericalPosition newPosition)
newPosition
as the center of this map.
newPosition
- the new center of this map.public void setSkyRadius(Angle newRadius)
newRadius
- the radius, in angular sky units, of this map.public void paint(Graphics2D g)
g
- public RenderedImage takeSnapshot()
public StringBuilder toHtmlImageMap(String mapName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |