com.steema.teechart.exports
Class ImageExport

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.exports.ImageExport
All Implemented Interfaces:
java.awt.datatransfer.ClipboardOwner, java.io.Serializable

public class ImageExport
extends TeeBase
implements java.awt.datatransfer.ClipboardOwner

Title: TeeChart for Java

Description: TeeChart for Java

Example:


 myChart.getExport().getImage().getBMP().save(tmpName);
 

Copyright (c) 2004-2008 by Steema Software SL. All Rights Reserved.

Company: Steema Software SL

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.steema.teechart.TeeBase
chart
 
Constructor Summary
ImageExport(IBaseChart chart)
           
 
Method Summary
 void copyToClipboard()
          Copy image to clipboard.
 void copyToClipboard(int width, int height)
          Copy image to clipboard.
 BMPFormat getBMP()
          Exports Chart as BMP format.
 JPEGFormat getJPEG()
          Exports Chart as JPEG format.
 PNGFormat getPNG()
          Exports Chart as PNG format.
 java.awt.Image image()
           
 java.awt.Image image(java.awt.Dimension dimension)
           
 java.awt.Image image(int width, int height)
          Chart exports to image format.
 void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
           
 
Methods inherited from class com.steema.teechart.TeeBase
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageExport

public ImageExport(IBaseChart chart)
Method Detail

getJPEG

public JPEGFormat getJPEG()
Exports Chart as JPEG format.

Returns:
JPEGFormat

getPNG

public PNGFormat getPNG()
Exports Chart as PNG format.

Returns:
PNGFormat

getBMP

public BMPFormat getBMP()
Exports Chart as BMP format.

Returns:
BMPFormat

image

public java.awt.Image image(java.awt.Dimension dimension)

image

public java.awt.Image image(int width,
                            int height)
Chart exports to image format.

Parameters:
width - int
height - int
Returns:
Image

image

public java.awt.Image image()

lostOwnership

public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
                          java.awt.datatransfer.Transferable contents)
Specified by:
lostOwnership in interface java.awt.datatransfer.ClipboardOwner

copyToClipboard

public void copyToClipboard()
Copy image to clipboard.


copyToClipboard

public void copyToClipboard(int width,
                            int height)
Copy image to clipboard.

Parameters:
width - int
height - int