org.rr0.is.presentation.view.report.applet.ufo
Class UFOController

java.lang.Object
  |
  +--java.awt.event.MouseAdapter
        |
        +--org.rr0.is.presentation.view.report.applet.draw.DrawController
              |
              +--org.rr0.is.presentation.view.report.applet.sky.SkyController
                    |
                    +--org.rr0.is.presentation.view.report.applet.ufo.UFOController

public class UFOController
extends SkyController

Author:
Jerôme Beau
Version: 29 nov. 2003 14:59:08

Field Summary
 final static StringASPECT_TAB
           
 final static StringBEHAVIOR_TAB
           
 final static StringCIRCUMSTANCES_TAB
           
 private UFOcurrentUFO
           
 final static StringLOCATION_TAB
           
 private VectorufoListeners
           
 final static StringWITNESS_TAB
           

Fields inherited from class org.rr0.is.presentation.view.report.applet.draw.DrawController
as, currentTime, dateFormat, mode, model, moveDeltaX, moveDeltaY, selection, timeKey, view

Constructor Summary
UFOController(Locale locale, int samplingRate, URL documentBase)
           

Method Summary
 voidaddUFOListener(UFOListener ufoListener)
           
 protected voidbackgroundClicked()
           
 UFOcreateUFO(String name)
           
 UFOcreateUFO()
           
 voiddeleteUFO(String name)
           
 private voidfireUfoCreated(UFO ufo)
           
 private voidfireUfoDeleted(UFO ufo)
           
 private voidfireUfoSelected(UFO ufo)
           
 StringgetAddress()
           
 StringgetBirthDate()
           
 StringgetCountry()
           
 UFOgetCurrentUFO()
           
 StringgetDescription()
           
 StringgetEmail()
           
 StringgetFirstName()
           
 StringgetLastName()
           
 UFOSceneModelgetModel()
           
 StringgetPhoneNumber()
           
 GregorianCalendargetTime()
           
 StringgetTown()
           
 HashtablegetUFOs()
           
 private WitnessModelgetWitness()
           
 StringgetZipCode()
           
 voidplay(boolean on)
           
 protected DrawEventrecord(int x, int y, Object source, DrawShape shape)
           
 protected voidselect(boolean multiple, DrawEvent currentEvent)
           
 private voidselectCurrentUfo()
          Select all shapes of the current UFO
 voidselectUFO(String ufoName, boolean visualSelection)
           
 voidsetAddress(String address)
           
 voidsetBirthDate(String birthDateString)
           
 voidsetBottomShape(DrawShape shapePrototype)
           
 voidsetCountry(String country)
           
 voidsetDescription(String description)
           
 voidsetEmail(String email)
           
 voidsetFirstName(String firstName)
           
 voidsetLastname(String lastName)
           
 voidsetMidShape(DrawShape shapePrototype)
           
 voidsetMode(String modeName)
           
 voidsetOdor(String weatherKey)
           
 voidsetPhoneNumber(String phoneNumber)
           
 voidsetTemperature(String weatherKey)
           
 voidsetTopShape(DrawShape shapePrototype)
           
 voidsetTown(String town)
           
 voidsetZipCode(String zipCode)
           
 protected voidshowShapeMenu(int mouseX, int mouseY)
           

Methods inherited from class org.rr0.is.presentation.view.report.applet.sky.SkyController
addSkyListener, draw, fireAltitudeChanged, fireAzimutChanged, fireLatitudeChanged, fireLongitudeChanged, getAltitude, getAs, getAzimut, getLatitude, getLongitude, getOffset, getView, mouseMoved, setAltitude, setAzimut, setLandscape, setLatitude, setLongitude, setPrecipitations, setTime, setWeather, setWind

Methods inherited from class org.rr0.is.presentation.view.report.applet.draw.DrawController
addAnimationListener, addDrawListener, addMessageListener, addSelection, deselect, fireMessage, getDateFormat, getEndTime, getImage, getLocale, getMessagesBundle, getSamplingRate, getStartTime, getTimeZone, isAspectMode, isBehaviorMode, isPlaying, message, mouseClicked, mouseDragged, mouseExited, mouseReleased, paintShapes, setAs, setColor, setEndTime, setSelection, setStartTime, setTimeZone, setTransparency, start

Methods inherited from class java.awt.event.MouseAdapter
mousePressed, mouseEntered

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

Field Detail

ASPECT_TAB

public final static String ASPECT_TAB

BEHAVIOR_TAB

public final static String BEHAVIOR_TAB

CIRCUMSTANCES_TAB

public final static String CIRCUMSTANCES_TAB

currentUFO

private UFO currentUFO

LOCATION_TAB

public final static String LOCATION_TAB

ufoListeners

private Vector ufoListeners

WITNESS_TAB

public final static String WITNESS_TAB
Constructor Detail

UFOController

public UFOController(Locale locale, int samplingRate, URL documentBase)
Method Detail

addUFOListener

public void addUFOListener(UFOListener ufoListener)

backgroundClicked

protected void backgroundClicked()

createUFO

public UFO createUFO(String name)

createUFO

public UFO createUFO()

deleteUFO

public void deleteUFO(String name)

fireUfoCreated

private void fireUfoCreated(UFO ufo)

fireUfoDeleted

private void fireUfoDeleted(UFO ufo)

fireUfoSelected

private void fireUfoSelected(UFO ufo)

getAddress

public String getAddress()

getBirthDate

public String getBirthDate()

getCountry

public String getCountry()

getCurrentUFO

public UFO getCurrentUFO()

getDescription

public String getDescription()

getEmail

public String getEmail()

getFirstName

public String getFirstName()

getLastName

public String getLastName()

getModel

public UFOSceneModel getModel()

getPhoneNumber

public String getPhoneNumber()

getTime

public GregorianCalendar getTime()

getTown

public String getTown()

getUFOs

public Hashtable getUFOs()

getWitness

private WitnessModel getWitness()

getZipCode

public String getZipCode()

play

public void play(boolean on)

record

protected DrawEvent record(int x, int y, Object source, DrawShape shape)

select

protected void select(boolean multiple, DrawEvent currentEvent)

selectCurrentUfo

private void selectCurrentUfo()
Select all shapes of the current UFO

selectUFO

public void selectUFO(String ufoName, boolean visualSelection)

setAddress

public void setAddress(String address)

setBirthDate

public void setBirthDate(String birthDateString)

setBottomShape

public void setBottomShape(DrawShape shapePrototype)

setCountry

public void setCountry(String country)

setDescription

public void setDescription(String description)

setEmail

public void setEmail(String email)

setFirstName

public void setFirstName(String firstName)

setLastname

public void setLastname(String lastName)

setMidShape

public void setMidShape(DrawShape shapePrototype)

setMode

public void setMode(String modeName)

setOdor

public void setOdor(String weatherKey)

setPhoneNumber

public void setPhoneNumber(String phoneNumber)

setTemperature

public void setTemperature(String weatherKey)

setTopShape

public void setTopShape(DrawShape shapePrototype)

setTown

public void setTown(String town)

setZipCode

public void setZipCode(String zipCode)

showShapeMenu

protected void showShapeMenu(int mouseX, int mouseY)

Association Links

to Class java.util.Vector

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

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String