|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrintableHandler
This interface is for all JComponent classes that provide the ability to print itself to a file.
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 |
---|
java.util.Hashtable getWriters()
JComponentWriter.getDescription()
JComponentWriter getWriter(java.lang.String name)
null
if not found
JComponentWriter.getDescription()
void setSaveDialogTitle(java.lang.String title)
java.lang.String getSaveDialogTitle()
void setScale(double x, double y)
x
- the scale factor for the x-axisy
- the scale factor for the y-axisdouble getXScale()
double getYScale()
void saveComponent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |