|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
org.nakedobjects.plugins.dnd.viewer.view.simple.ObjectView
org.nakedobjects.plugins.dnd.viewer.view.simple.Icon
public class Icon
| Field Summary |
|---|
| Fields inherited from interface org.nakedobjects.plugins.dnd.View |
|---|
HPADDING, VPADDING |
| Constructor Summary | |
|---|---|
Icon(Content content,
ViewSpecification specification,
ViewAxis axis)
|
|
| Method Summary | |
|---|---|
void |
draw(Canvas canvas)
Called by the frame, or the parent view, when this view must redraw itself. |
void |
entered()
Called as the mouse crosses the bounds, and ends up inside, of this view. |
void |
exited()
Called as the mouse crosses the bounds, and ends up outside, of this view. |
int |
getBaseline()
|
Size |
getMaximumSize()
|
void |
setSelectedIcon(IconGraphic selectedGraphic)
Set up the graphic to be used when displaying the icon and the icon is selected. |
void |
setTitle(ObjectTitleText text)
Set up the title to be used when displaying the icon. |
void |
setUnselectedGraphic(IconGraphic unselectedGraphic)
Set up the graphic to be used when displaying the icon and the icon is unselected. |
void |
setVertical(boolean isVertical)
Specifies if the graphic should be aligned vertical above the label; otherwise aligned horizontally. |
void |
update(NakedObject object)
notification that the content of this view has changed |
| Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.ObjectView |
|---|
contentMenuOptions, dragIn, dragOut, dragStart, drop, firstClick, invalidateContent, secondClick |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Icon(Content content,
ViewSpecification specification,
ViewAxis axis)
| Method Detail |
|---|
public void draw(Canvas canvas)
View
draw in interface Viewdraw in class AbstractViewpublic void entered()
View
entered in interface Viewentered in class AbstractViewpublic void exited()
View
exited in interface Viewexited in class AbstractViewpublic int getBaseline()
getBaseline in interface ViewgetBaseline in class AbstractViewpublic Size getMaximumSize()
getMaximumSize in interface ViewgetMaximumSize in class AbstractViewpublic void setSelectedIcon(IconGraphic selectedGraphic)
public void setTitle(ObjectTitleText text)
public void setUnselectedGraphic(IconGraphic unselectedGraphic)
public void setVertical(boolean isVertical)
public void update(NakedObject object)
View
update in interface Viewupdate in class AbstractView
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||