org.nakedobjects.plugins.dnd.viewer.view.graphic
Class IconGraphic

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.view.graphic.IconGraphic
Direct Known Subclasses:
InternalCollectionIconGraphic

public class IconGraphic
extends java.lang.Object


Field Summary
protected  Content content
           
protected  Image icon
           
protected  int iconHeight
           
 
Constructor Summary
IconGraphic(View view, int height)
           
IconGraphic(View view, int height, int baseline)
           
IconGraphic(View view, Text style)
           
 
Method Summary
 void draw(Canvas canvas, int x, int baseline)
           
 int getBaseline()
           
 Size getSize()
           
protected  Image icon()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

content

protected final Content content

icon

protected Image icon

iconHeight

protected final int iconHeight
Constructor Detail

IconGraphic

public IconGraphic(View view,
                   int height,
                   int baseline)

IconGraphic

public IconGraphic(View view,
                   int height)

IconGraphic

public IconGraphic(View view,
                   Text style)
Method Detail

draw

public void draw(Canvas canvas,
                 int x,
                 int baseline)

getBaseline

public int getBaseline()

getSize

public Size getSize()

icon

protected Image icon()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.