com.partnersoft.codex.editors
Class AbstractCogPreview

java.lang.Object
  extended by com.partnersoft.codex.editors.AbstractCogPreview
All Implemented Interfaces:
CogPreview
Direct Known Subclasses:
LineStylePreview, PointStylePreview, TextStylePreview

public abstract class AbstractCogPreview
extends java.lang.Object
implements CogPreview


Constructor Summary
AbstractCogPreview()
           
 
Method Summary
 javax.swing.JComponent getGui()
           
protected abstract  int getHeightImp(java.lang.Object value)
           
 CogModel getModel()
           
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 setModel(CogModel newModel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCogPreview

public AbstractCogPreview()
Method Detail

getModel

public CogModel getModel()
Specified by:
getModel in interface CogPreview

setModel

public void setModel(CogModel newModel)
Specified by:
setModel in interface CogPreview

getGui

public javax.swing.JComponent getGui()
Specified by:
getGui in interface CogPreview

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)