接口 PrintableHandler
- 所有已知实现类:
AttributeVisualizationPanel
,HierarchyVisualizer
,PrintableComponent
,PrintablePanel
,ThresholdVisualizePanel
,TreeVisualizer
,VisualizePanel
public interface PrintableHandler
This interface is for all JComponent classes that provide the ability to
print itself to a file.
- 版本:
- $Revision: 1.2 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
方法概要
修饰符和类型方法说明returns the title for the save dialogreturns the JComponentWriter associated with the given name, isnull
if not foundreturns a Hashtable with the current available JComponentWriters in the save dialog.double
returns the scale factor for the x-axisdouble
returns the scale factor for the y-axisvoid
displays a save dialog for saving the component to a file.void
setSaveDialogTitle
(String title) sets the title for the save dialogvoid
setScale
(double x, double y) sets the scale factor
-
方法详细资料
-
getWriters
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.- 返回:
- all currently available JComponentWriters
- 另请参阅:
-
getWriter
returns the JComponentWriter associated with the given name, isnull
if not found- 返回:
- the writer associated with the given name
- 另请参阅:
-
setSaveDialogTitle
sets the title for the save dialog -
getSaveDialogTitle
String getSaveDialogTitle()returns the title for the save dialog -
setScale
void setScale(double x, double y) sets the scale factor- 参数:
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.
-