Package weka.gui.visualize
Interface PrintableHandler
-
- All Known Implementing Classes:
AttributeVisualizationPanel,HierarchyVisualizer,PrintableComponent,PrintablePanel,ThresholdVisualizePanel,TreeVisualizer,VisualizePanel
public interface PrintableHandlerThis interface is for all JComponent classes that provide the ability to print itself to a file.- Version:
- $Revision: 1.2 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
PrintableComponent,PrintablePanel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetSaveDialogTitle()returns the title for the save dialogJComponentWritergetWriter(java.lang.String name)returns the JComponentWriter associated with the given name, isnullif not foundjava.util.HashtablegetWriters()returns a Hashtable with the current available JComponentWriters in the save dialog.doublegetXScale()returns the scale factor for the x-axisdoublegetYScale()returns the scale factor for the y-axisvoidsaveComponent()displays a save dialog for saving the component to a file.voidsetSaveDialogTitle(java.lang.String title)sets the title for the save dialogvoidsetScale(double x, double y)sets the scale factor
-
-
-
Method Detail
-
getWriters
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
JComponentWriter getWriter(java.lang.String name)
returns the JComponentWriter associated with the given name, isnullif not found- Returns:
- the writer associated with the given name
- See Also:
JComponentWriter.getDescription()
-
setSaveDialogTitle
void setSaveDialogTitle(java.lang.String title)
sets the title for the save dialog
-
getSaveDialogTitle
java.lang.String getSaveDialogTitle()
returns the title for the save dialog
-
setScale
void setScale(double x, double y)sets the scale factor- Parameters:
x- the scale factor for the x-axisy- the scale factor for the y-axis
-
getXScale
double getXScale()
returns the scale factor for the x-axis
-
getYScale
double getYScale()
returns the scale factor for the y-axis
-
saveComponent
void saveComponent()
displays a save dialog for saving the component to a file.
-
-