org.rr0.is.presentation.view.report.applet.draw
Class DrawModel

Direct Known Subclasses:
SkyModel

public class DrawModel

Model of a set of DrawEvents, i.e. shapes at given positions and configuration (size, color) at multiple times.

Author:
Jerôme Beau
Version: 15 nov. 2003 19:38:01

Field Summary
 private HashtablelayeredEvents
          Vectors of DrawEvents for a given time key
 private TimeZonetimeZone
           

Method Summary
 voidaddEvent(Object timeKey, DrawEvent newEvent)
           
 DrawShapecreateShape(DrawShape shapePrototype)
           
 DrawEventgetEvent(Object timeKey, int x, int y)
           
 VectorgetEvents(Object dateKey)
           
 private VectorgetEvents(Vector allEventsForThatDate, Object fromSource)
           
 VectorgetEvents(Object dateKey, Object fromSource)
           
 DrawEventgetSelectedEvent(Object timeKey, int x, int y)
           
 DrawShapegetShape(Object source, Object timeKey)
           
 TimeZonegetTimeZone()
           
 voidremoveEventsFrom(Object fromSource)
           
 private booleanselectedShapeContains(DrawShape shape, int x, int y)
           
 voidsetAs(int as)
           
 voidsetTimeZone(TimeZone timeZone)
           
 private booleanshapeContains(DrawShape shape, int x, int y)
           
 StringtoString()
           

Field Detail

layeredEvents

private Hashtable layeredEvents
Vectors of DrawEvents for a given time key

timeZone

private TimeZone timeZone
Method Detail

addEvent

public void addEvent(Object timeKey, DrawEvent newEvent)

createShape

public DrawShape createShape(DrawShape shapePrototype)

getEvent

public DrawEvent getEvent(Object timeKey, int x, int y)

getEvents

public Vector getEvents(Object dateKey)

getEvents

private Vector getEvents(Vector allEventsForThatDate, Object fromSource)

getEvents

public Vector getEvents(Object dateKey, Object fromSource)

getSelectedEvent

public DrawEvent getSelectedEvent(Object timeKey, int x, int y)

getShape

public DrawShape getShape(Object source, Object timeKey)

getTimeZone

public TimeZone getTimeZone()

removeEventsFrom

public void removeEventsFrom(Object fromSource)

selectedShapeContains

private boolean selectedShapeContains(DrawShape shape, int x, int y)

setAs

public void setAs(int as)

setTimeZone

public void setTimeZone(TimeZone timeZone)

shapeContains

private boolean shapeContains(DrawShape shape, int x, int y)

toString

public String toString()

Association Links

to Class java.util.Hashtable

Vectors of DrawEvents for a given time key

to Class java.util.TimeZone