|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.util.PrintActionListener
public class PrintActionListener
PrintActionListener is an ActionListener which is used to print the contents of the VisAD DisplayImpl. A simple way to use this is:
DisplayImpl di = new DisplayImpl(...);
...
JButton pb = new JButton("Print Me");
pb.addActionListener(new PrintActionListener(di));
| Constructor Summary | |
|---|---|
PrintActionListener(DisplayImpl dim)
ActionListener for printing the contents of the VisAD display |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
cause the printout of the DisplayImpl; if the dialog is enabled, it will pop up to solicit information from the user. |
DisplayImpl |
getDisplay()
Return the display |
boolean |
getShowDialog()
get the value of the showDialog state |
void |
setDisplay(DisplayImpl dim)
Set the display to which this action will listen |
void |
setShowDialog(boolean value)
set whether the PrintDialog should be used or not |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrintActionListener(DisplayImpl dim)
dim - the DisplayImpl to print when the actionPerformed is
called| Method Detail |
|---|
public void setShowDialog(boolean value)
value - set to 'true' to use PrintDialog or to
'false' to supress the dialog and just print. The
default is 'true'.public boolean getShowDialog()
public void setDisplay(DisplayImpl dim)
dim - DisplayImpl to be printedpublic DisplayImpl getDisplay()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - the ActionEvent which is ignored...
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||