org.rr0.is.presentation.view.report.applet.sky
Class SkyView

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--org.rr0.is.presentation.view.report.applet.draw.DrawView
                    |
                    +--org.rr0.is.presentation.view.report.applet.sky.SkyView
Direct Known Subclasses:
UFOView

public class SkyView
extends DrawView

Graphical view of the sky

Author:
Jerôme Beau
Version: 29 nov. 2003 14:37:19

Field Summary
 intFULL_WIDTH
           
 intHALF_SKY_HEIGHT
           
 intHALF_SKY_WIDTH
           
 protected inthorizonY
           
 private inthour
           
 (package private) int[][][]hourColors
           
 private intSKY_HEIGHT
           
 private intSKY_WIDTH
           
 private PrecipitationsweatherRunnable
           
 private intxCenter
           
 private intyCenter
           

Fields inherited from class org.rr0.is.presentation.view.report.applet.draw.DrawView
bufferedGraphics, CROSS_HAIR_CURSOR, DEFAULT_CURSOR, HEIGHT_RESIZE_CURSOR, MOVE_CURSOR, NORTH_EAST_RESIZE_CURSOR, NORTH_WEST_RESIZE_CURSOR, SOUTH_EAST_RESIZE_CURSOR, SOUTH_WEST_RESIZE_CURSOR, WIDTH_RESIZE_CURSOR

Fields inherited from class java.awt.Component
TOP_ALIGNMENT, CENTER_ALIGNMENT, BOTTOM_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT

Method Summary
 PrecipitationsgetWeatherRunnable()
           
 intgetXCenter()
           
 intgetYCenter()
           
 booleanisVisible(int xDelta, int yDelta)
           
 voidpaintBackground(GregorianCalendar time)
           
 voidpaintGround(GregorianCalendar time, double altitude, double factor, Image img, int azimut)
           
 voidpaintMoon(int xDelta, int yDelta, int halfMagnitude, int fullMagnitude)
           
 voidpaintPlanet(int xDelta, int yDelta, int halfMagnitude, int fullMagnitude)
           
 voidpaintStar(int xDelta, int yDelta, int halfRadius, int radius)
           
 voidpaintSun(int xDelta, int yDelta, int halfMagnitude, int fullMagnitude)
           
 voidpaintWeather(Image weatherImage, int azimut)
           
 voidpaintWeather2()
           
 voidsetColor(Color color)
           
 voidsetSize(int width, int height)
          Resizes this component so that it has width width
and height.
 voidsetWeatherRunnable(Precipitations weatherRunnable)
           
 booleanskyContains(int mouseX, int mouseY)
           
 voidstart()
           

Methods inherited from class org.rr0.is.presentation.view.report.applet.draw.DrawView
displayBuffered, getShapeMenu, paint, paintShape, setMessageBundle, update

Methods inherited from class java.awt.Canvas
addNotify, getAccessibleContext

Methods inherited from class java.awt.Component
getName, setName, getParent, getPeer, setDropTarget, getDropTarget, getGraphicsConfiguration, getTreeLock, getToolkit, isValid, isDisplayable, isVisible, isShowing, isEnabled, setEnabled, enable, enable, disable, isDoubleBuffered, enableInputMethods, setVisible, show, show, hide, getForeground, setForeground, getBackground, setBackground, getFont, setFont, getLocale, setLocale, getColorModel, getLocation, getLocationOnScreen, location, setLocation, move, setLocation, getSize, size, resize, setSize, resize, getBounds, bounds, setBounds, reshape, setBounds, getX, getY, getWidth, getHeight, getBounds, getSize, getLocation, isOpaque, isLightweight, getPreferredSize, preferredSize, getMinimumSize, minimumSize, getMaximumSize, getAlignmentX, getAlignmentY, doLayout, layout, validate, invalidate, getGraphics, getFontMetrics, setCursor, getCursor, paintAll, repaint, repaint, repaint, repaint, print, printAll, imageUpdate, createImage, createImage, prepareImage, prepareImage, checkImage, checkImage, contains, inside, contains, getComponentAt, locate, getComponentAt, deliverEvent, dispatchEvent, postEvent, addComponentListener, removeComponentListener, addFocusListener, removeFocusListener, addHierarchyListener, removeHierarchyListener, addHierarchyBoundsListener, removeHierarchyBoundsListener, addKeyListener, removeKeyListener, addMouseListener, removeMouseListener, addMouseMotionListener, removeMouseMotionListener, addInputMethodListener, removeInputMethodListener, getListeners, getInputMethodRequests, getInputContext, enableEvents, disableEvents, coalesceEvents, processEvent, processComponentEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processInputMethodEvent, processHierarchyEvent, processHierarchyBoundsEvent, handleEvent, mouseDown, mouseDrag, mouseUp, mouseMove, mouseEnter, mouseExit, keyDown, keyUp, action, removeNotify, gotFocus, lostFocus, isFocusTraversable, requestFocus, transferFocus, nextFocus, hasFocus, add, remove, paramString, toString, list, list, list, list, list, addPropertyChangeListener, removePropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange, setComponentOrientation, getComponentOrientation

Methods inherited from class java.lang.Object
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize

Field Detail

FULL_WIDTH

public int FULL_WIDTH

HALF_SKY_HEIGHT

public int HALF_SKY_HEIGHT

HALF_SKY_WIDTH

public int HALF_SKY_WIDTH

horizonY

protected int horizonY

hour

private int hour

hourColors

int[][][] hourColors

SKY_HEIGHT

private int SKY_HEIGHT

SKY_WIDTH

private int SKY_WIDTH

weatherRunnable

private Precipitations weatherRunnable

xCenter

private int xCenter

yCenter

private int yCenter
Method Detail

getWeatherRunnable

public Precipitations getWeatherRunnable()

getXCenter

public int getXCenter()

getYCenter

public int getYCenter()

isVisible

public boolean isVisible(int xDelta, int yDelta)

paintBackground

public void paintBackground(GregorianCalendar time)

paintGround

public void paintGround(GregorianCalendar time, double altitude, double factor, Image img, int azimut)

paintMoon

public void paintMoon(int xDelta, int yDelta, int halfMagnitude, int fullMagnitude)

paintPlanet

public void paintPlanet(int xDelta, int yDelta, int halfMagnitude, int fullMagnitude)

paintStar

public void paintStar(int xDelta, int yDelta, int halfRadius, int radius)

paintSun

public void paintSun(int xDelta, int yDelta, int halfMagnitude, int fullMagnitude)

paintWeather

public void paintWeather(Image weatherImage, int azimut)

paintWeather2

public void paintWeather2()

setColor

public void setColor(Color color)

setSize

public void setSize(int width, int height)
Resizes this component so that it has width width
and height.
Parameters:
width The new width of this component in pixels.
height The new height of this component in pixels.
Since:
JDK1.1
See Also:
java.awt.Component.getSize(), java.awt.Component.setBounds(int,int,int,int)

setWeatherRunnable

public void setWeatherRunnable(Precipitations weatherRunnable)

skyContains

public boolean skyContains(int mouseX, int mouseY)

start

public void start()

Association Links

to Class org.rr0.is.presentation.view.report.applet.ufo.Precipitations