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 Hashtable | layeredEvents Vectors of DrawEvents for a given time key |
private TimeZone | timeZone |
| Method Summary |
void | addEvent(Object timeKey, DrawEvent newEvent) |
DrawShape | createShape(DrawShape shapePrototype) |
DrawEvent | getEvent(Object timeKey, int x, int y) |
Vector | getEvents(Object dateKey) |
private Vector | getEvents(Vector allEventsForThatDate, Object fromSource) |
Vector | getEvents(Object dateKey, Object fromSource) |
DrawEvent | getSelectedEvent(Object timeKey, int x, int y) |
DrawShape | getShape(Object source, Object timeKey) |
TimeZone | getTimeZone() |
void | removeEventsFrom(Object fromSource) |
private boolean | selectedShapeContains(DrawShape shape, int x, int y) |
void | setAs(int as) |
void | setTimeZone(TimeZone timeZone) |
private boolean | shapeContains(DrawShape shape, int x, int y) |
String | toString() |
layeredEvents
private Hashtable layeredEvents
- Vectors of DrawEvents for a given time key
timeZone
private TimeZone timeZone
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()
to Class java.util.Hashtable- Vectors of DrawEvents for a given time key
to Class java.util.TimeZone