|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.borg.ui.calendar.Box
public abstract class Box
Interface for objects that appear as boxes on the day/week/month UIs
| Nested Class Summary | |
|---|---|
(package private) static interface |
Box.Draggable
Interface implemented by Boxes that can be dragged |
| Field Summary | |
|---|---|
protected Rectangle |
bounds
|
protected Rectangle |
clip
|
protected boolean |
isSelected
|
| Constructor Summary | |
|---|---|
Box(Rectangle bounds,
Rectangle clip)
constructor. |
|
| Method Summary | |
|---|---|
int |
clicksToActivate()
how many clicks are required to activate this box - default is double-click |
void |
delete()
delete the box |
abstract void |
draw(Graphics2D g2,
Component comp)
draw the box |
Rectangle |
getBounds()
get bounds |
JPopupMenu |
getMenu()
get the box popup menu |
abstract String |
getText()
get the box text |
abstract String |
getToolTipText()
gets the tool tip text for this box |
abstract void |
onClick()
action called when the box is clicked |
void |
setBounds(Rectangle bounds)
set bounds |
void |
setSelected(boolean isSelected)
set selected |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Rectangle bounds
protected Rectangle clip
protected boolean isSelected
| Constructor Detail |
|---|
public Box(Rectangle bounds,
Rectangle clip)
bounds - box boundsclip - box clip| Method Detail |
|---|
public void delete()
public abstract void draw(Graphics2D g2,
Component comp)
g2 - the Graphics2D to draw incomp - that contains the Graphics2Dpublic abstract void onClick()
public int clicksToActivate()
public Rectangle getBounds()
public JPopupMenu getMenu()
public abstract String getText()
public void setBounds(Rectangle bounds)
bounds - new boundspublic void setSelected(boolean isSelected)
isSelected - new selected valuepublic abstract String getToolTipText()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||