|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.borg.ui.calendar.Box
net.sf.borg.ui.calendar.NoteBox
public class NoteBox
A Note Box is used to draw an untimed event on the day/week/month panels
Nested Class Summary |
---|
Nested classes/interfaces inherited from class net.sf.borg.ui.calendar.Box |
---|
Box.Draggable |
Field Summary |
---|
Fields inherited from class net.sf.borg.ui.calendar.Box |
---|
bounds, clip, isSelected |
Constructor Summary | |
---|---|
NoteBox(Date d,
CalendarEntity ap,
Rectangle bounds,
Rectangle clip)
constructor |
Method Summary | |
---|---|
void |
delete()
delete the box |
void |
draw(Graphics2D g2,
Component comp)
draw the box |
JPopupMenu |
getMenu()
get the popup menu |
String |
getText()
get the box text |
String |
getToolTipText()
gets the tool tip text for this box |
void |
move(int realtime,
Date d)
react to a drag of this box on the UI |
void |
onClick()
action called when the box is clicked |
Methods inherited from class net.sf.borg.ui.calendar.Box |
---|
clicksToActivate, getBounds, setBounds, setSelected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoteBox(Date d, CalendarEntity ap, Rectangle bounds, Rectangle clip)
d
- date that the box is onap
- the calendar entitybounds
- boundsclip
- clipMethod Detail |
---|
public void delete()
Box
delete
in class Box
public void draw(Graphics2D g2, Component comp)
draw
in class Box
g2
- the Graphics2D to draw incomp
- that contains the Graphics2Dpublic JPopupMenu getMenu()
getMenu
in class Box
public String getText()
Box
getText
in class Box
public void move(int realtime, Date d) throws Exception
move
in interface Box.Draggable
realtime
- time of day in minutes to which the object has been
draggedd
- date that the object was dragged to
Exception
public void onClick()
Box
onClick
in class Box
public String getToolTipText()
Box
getToolTipText
in class Box
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |