|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.visualize.PrintablePanel
public class PrintablePanel
This Panel enables the user to print the panel to various file formats. The Print dialog is accessible via Ctrl-Shft-Left Mouse Click.
The individual JComponentWriter-descendants can be accessed by the
getWriter(String) method, if the parameters need to be changed.
getWriters(),
getWriter(String),
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
PrintablePanel()
initializes the panel |
|
| Method Summary | |
|---|---|
String |
getSaveDialogTitle()
returns the title for the save dialog |
JComponentWriter |
getWriter(String name)
returns the JComponentWriter associated with the given name, is null if not found |
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 panel to a file. |
void |
setSaveDialogTitle(String title)
sets the title for the save dialog |
void |
setScale(double x,
double y)
sets the scale factor |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrintablePanel()
| Method Detail |
|---|
public Hashtable getWriters()
getWriters in interface PrintableHandlerJComponentWriter.getDescription()public JComponentWriter getWriter(String name)
null if not found
getWriter in interface PrintableHandlerJComponentWriter.getDescription()public void setSaveDialogTitle(String title)
setSaveDialogTitle in interface PrintableHandlerpublic String getSaveDialogTitle()
getSaveDialogTitle in interface PrintableHandler
public void setScale(double x,
double y)
setScale in interface PrintableHandlerx - the scale factor for the x-axisy - the scale factor for the y-axispublic double getXScale()
getXScale in interface PrintableHandlerpublic double getYScale()
getYScale in interface PrintableHandlerpublic void saveComponent()
saveComponent in interface PrintableHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||