com.partnersoft.gui.viewer
Class AbstractCustomPaintedViewer<T>

java.lang.Object
  extended by com.partnersoft.gui.viewer.AbstractCustomPaintedViewer<T>
All Implemented Interfaces:
GuiViewer<T>
Direct Known Subclasses:
LineStyleViewer, PointStyleViewer, TextStyleViewer

public abstract class AbstractCustomPaintedViewer<T>
extends java.lang.Object
implements GuiViewer<T>


Constructor Summary
AbstractCustomPaintedViewer()
           
 
Method Summary
 javax.swing.JComponent getGui()
          Returns the GUI component.
protected abstract  int getHeightImp(java.lang.Object value)
           
 T getViewed()
          Gets the object being viewed.
protected abstract  int getWidthImp(java.lang.Object value)
           
protected abstract  void paintImp(java.awt.Component c, java.awt.Graphics g, int x, int y, java.lang.Object value)
           
 void setViewed(T newViewed)
          Sets the object to be viewed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCustomPaintedViewer

public AbstractCustomPaintedViewer()
Method Detail

setViewed

public void setViewed(T newViewed)
Description copied from interface: GuiViewer
Sets the object to be viewed.

Specified by:
setViewed in interface GuiViewer<T>

getViewed

public T getViewed()
Description copied from interface: GuiViewer
Gets the object being viewed.

Specified by:
getViewed in interface GuiViewer<T>

getGui

public javax.swing.JComponent getGui()
Description copied from interface: GuiViewer
Returns the GUI component.

Specified by:
getGui in interface GuiViewer<T>

getHeightImp

protected abstract int getHeightImp(java.lang.Object value)

getWidthImp

protected abstract int getWidthImp(java.lang.Object value)

paintImp

protected abstract void paintImp(java.awt.Component c,
                                 java.awt.Graphics g,
                                 int x,
                                 int y,
                                 java.lang.Object value)