weka.gui.visualize
Interface PrintableHandler

All Known Implementing Classes:
PrintableComponent, PrintablePanel

public interface PrintableHandler

This interface is for all JComponent classes that provide the ability to print itself to a file.

Version:
$Revision: 1.1.2.1 $
Author:
FracPete (fracpete at waikato dot ac dot nz)
See Also:
PrintableComponent, PrintablePanel

Method Summary
 java.lang.String getSaveDialogTitle()
          returns the title for the save dialog
 JComponentWriter getWriter(java.lang.String name)
          returns the JComponentWriter associated with the given name, is null if not found
 java.util.Hashtable getWriters()
          returns a Hashtable with the current available JComponentWriters in the save dialog.
 double getXScale()
          returns the scale factor for the x-axis
 double getYScale()
          returns the scale factor for the y-axis
 void saveComponent()
          displays a save dialog for saving the component to a file.
 void setSaveDialogTitle(java.lang.String title)
          sets the title for the save dialog
 void setScale(double x, double y)
          sets the scale factor
 

Method Detail

getWriters

public java.util.Hashtable getWriters()
returns a Hashtable with the current available JComponentWriters in the save dialog. the key of the Hashtable is the description of the writer.

Returns:
all currently available JComponentWriters
See Also:
JComponentWriter.getDescription()

getWriter

public JComponentWriter getWriter(java.lang.String name)
returns the JComponentWriter associated with the given name, is null if not found

Returns:
the writer associated with the given name
See Also:
JComponentWriter.getDescription()

setSaveDialogTitle

public void setSaveDialogTitle(java.lang.String title)
sets the title for the save dialog


getSaveDialogTitle

public java.lang.String getSaveDialogTitle()
returns the title for the save dialog


setScale

public void setScale(double x,
                     double y)
sets the scale factor

Parameters:
x - the scale factor for the x-axis
y - the scale factor for the y-axis

getXScale

public double getXScale()
returns the scale factor for the x-axis


getYScale

public double getYScale()
returns the scale factor for the y-axis


saveComponent

public void saveComponent()
displays a save dialog for saving the component to a file.