com.tensegrity.gui.swt.control.preview
Interface Preview

All Known Implementing Classes:
AbstractPreview, PageSetupPreview

public interface Preview

Abstract description of a general preview widget

Version:
$Id: Preview.java,v 1.2 2005/03/23 09:38:01 ArndHouben Exp $
Author:
Arnd Houben

Method Summary
 void draw(org.eclipse.swt.graphics.GC gc)
          A preview should be able to draw its previewed item.
 void updatePreview(java.lang.Object previewedItem)
          This is called whenever the preview should update itself, i.e.
 

Method Detail

draw

public void draw(org.eclipse.swt.graphics.GC gc)
A preview should be able to draw its previewed item. So this method is invoked whenever the preview needs to draw itself, e.g. on a redraw() request.

Parameters:
gc - the graphic context to draw with

updatePreview

public void updatePreview(java.lang.Object previewedItem)
This is called whenever the preview should update itself, i.e. display the given previewedItem.

Parameters:
previewedItem - contains the data to use for an update


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.