org.nakedobjects.viewer.classic.view
Class ViewContent
java.lang.Object
org.nakedobjects.viewer.classic.view.ViewContent
- Direct Known Subclasses:
- NormalIconContent, SmallIconContent, TextContent
- public abstract class ViewContent
- extends java.lang.Object
The Display does the drawing for a Display.
Method Summary |
abstract java.awt.Dimension |
getMinimumSize(NakedObject object)
returns the size the component needs to be so that the Display can draw itself properly |
abstract void |
paint(java.awt.Graphics g,
java.awt.Rectangle within,
ObjectViewer forViewer)
this method is called by the component to do the drawing on it |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ViewContent
public ViewContent()
getMinimumSize
public abstract java.awt.Dimension getMinimumSize(NakedObject object)
- returns the size the component needs to be so that the Display can draw itself properly
paint
public abstract void paint(java.awt.Graphics g,
java.awt.Rectangle within,
ObjectViewer forViewer)
- this method is called by the component to do the drawing on it
toString
public java.lang.String toString()