|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.viewer.lightweight.AbstractView
org.nakedobjects.viewer.lightweight.AbstractObjectView
org.nakedobjects.viewer.lightweight.ObjectIconView
| Field Summary |
| Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractObjectView |
LOG |
| Fields inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
DEBUG, DRAG_HANDLE_WIDTH, HPADDING, ICON_SIZE, VPADDING |
| Constructor Summary | |
ObjectIconView()
|
|
| Method Summary | |
protected static java.lang.String |
defaultName(NakedObject object)
returns a default name for an object. |
void |
draw(Canvas canvas)
Called by the frame, or the parent view, when this view must redraw itself. |
int |
getBaseline()
Returns the postion of the baseline for adjacent label. |
protected Style.Text |
getStyle()
Deprecated. replaced by getTitleTextStyle() |
protected Style.Text |
getTitleTextStyle()
Defines the text style that should be used when rendering the title. |
protected boolean |
includeIcon()
Flags that an icon should be included in this view. |
protected boolean |
includeTitle()
Flags that an icon title should be included in this view. |
boolean |
indicatesForView(Location mouseLocation)
Determines if the user is invoking an action relating to this view, rather than to whatever this view represents. |
boolean |
objectLocatedAt(Location mouseLocation)
|
Size |
size()
Deprecated. |
protected Bounds |
titleIconBounds()
|
protected Size |
titleSize()
|
Bounds |
titleTextBounds()
Distance to the start of the title text |
| Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractObjectView |
backgroundColor, clearRootViewIdentified, clone, collectionAddUpdate, collectionRemoveUpdate, createIconImage, debugDetails, dispose, dragCancel, dragging, dragObjectIn, dragObjectOut, dropObject, dropView, entered, enteredSubview, exited, exitedSubview, firstClick, getFieldOf, getObject, getRequiredSize, getRoot, getState, init, isIdentified, isRoot, makeView, menuOptions, mouseMoved, objectInfo, objectMenuOptions, objectUpdate, parentObjectView, pickupObject, pickupView, removeViewsFor, secondClick, setRootViewIdentified, topView, toString, transparentBackground, viewMenuOptions |
| Methods inherited from class org.nakedobjects.viewer.lightweight.AbstractView |
addControl, assignId, calculateRepaintArea, contains, createCanvas, defaultFieldHeight, getAbsoluteLocation, getBorder, getBounds, getId, getLocation, getName, getPadding, getParent, getSize, getWorkspace, identifyView, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, layout, limitBounds, print, redraw, removeControl, repaintAll, setBorder, setBounds, setLayoutValid, setLocation, setParent, setSize, setWorkspace, thirdClick, validateLayout |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.nakedobjects.viewer.lightweight.View |
calculateRepaintArea, contains, getAbsoluteLocation, getBorder, getBounds, getId, getLocation, getName, getPadding, getParent, getSize, getWorkspace, identifyView, invalidateLayout, isLayoutInvalid, isOpen, isReplaceable, layout, print, redraw, setBorder, setBounds, setLocation, setSize, thirdClick, validateLayout |
| Constructor Detail |
public ObjectIconView()
| Method Detail |
public int getBaseline()
AbstractView
getBaseline in interface ViewgetBaseline in class AbstractViewpublic void draw(Canvas canvas)
View
draw in interface Viewdraw in class AbstractObjectViewpublic boolean indicatesForView(Location mouseLocation)
View
indicatesForView in interface ViewindicatesForView in class AbstractViewpublic boolean objectLocatedAt(Location mouseLocation)
objectLocatedAt in interface ObjectViewobjectLocatedAt in class AbstractObjectViewpublic Size size()
public final Bounds titleTextBounds()
protected final Size titleSize()
protected Style.Text getStyle()
protected Style.Text getTitleTextStyle()
protected static java.lang.String defaultName(NakedObject object)
protected boolean includeIcon()
protected boolean includeTitle()
protected final Bounds titleIconBounds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||