Inheritance diagram for ViewerDialog::

|
||||||||||||
|
00039 {
00040 this(u, viewerIDs, false, true);
00041 }
|
|
||||||||||||||||||||
|
00046 {
00047 //super(new Frame(), "ViewerManipulator", modal);
00048 doInit(u, viewerIDs, resizable);
00049 }
|
|
|
00056 {
00057 setVisible(true);
00058 }
|
|
|
00062 {
00063 tv.addObject(im);
00064 }
|
|
|
00068 {
00069 tv.doClear();
00070 }
|
|
|
00074 {
00075 return viewerID;
00076 }
|
|
|
00080 {
00081 choice.select(Integer.toString(ID));
00082 viewerID = ID;
00083 }
|
|
|
00087 {
00088 zoomer.updateStatus(zoomVal);
00089 }
|
|
|
Method invoked when a BarMenuEvent occurs.
Reimplemented from BarMenuListener.
00096 {
00097 String command = e.getCommand();
00098 if (command.equals(c_BACK_COLOR) || command.equals(c_DRAW_COLOR)) {
00099 try {
00100 fd = new FuncDialog(this, command,
00101 Class.forName("java.awt.Color"), false, false);
00102 fd.pop();
00103 } catch (ClassNotFoundException cnfe) {
00104 // do nothing...
00105 }
00106 }
00107 }
|
|
|
Reimplemented from ButtonBarListener.
00114 {
00115 String label = e.getLabel();
00116 if (label.equals("Clear")) {
00117 if (viewerID > -1) {
00118 doClear();
00119 user.handleViewerDialogClear(viewerID);
00120 }
00121 }
00122 }
|
|
||||||||||||
|
Reimplemented from FuncDialogUser.
00129 {
00130 if (viewerID > -1) {
00131 if (op.equals("BackColor")) {
00132 if (objs[0] instanceof Color) {
00133 user.handleViewerDialogBackColor(viewerID, (Color)objs[0]);
00134 }
00135 } else if (op.equals("DrawColor")) {
00136 if (objs[0] instanceof Color) {
00137 user.handleViewerDialogDrawColor(viewerID, (Color)objs[0]);
00138 }
00139 }
00140 fd.dispose();
00141 }
00142 }
|
|
|
Reimplemented from FuncDialogUser.
00146 {
00147 fd.dispose();
00148 }
|
|
|
00155 {
00156 if (e.getStateChange() == ItemEvent.SELECTED) {
00157 viewerID = getInteger((String)e.getItem()).intValue();
00158 if (viewerID > -1) {
00159 user.handleViewerDialogSelected(viewerID);
00160 }
00161 }
00162 }
|
|
|
00169 {
00170 double x_scale = e.getXPos() / (double)TV_WIDTH;
00171 double y_scale = e.getYPos() / (double)TV_HEIGHT;
00172 user.handleViewerDialogPointed(viewerID, x_scale, y_scale);
00173 }
|
|
|
00177 {
00178 double x_scale = e.getXPos() / (double)TV_WIDTH;
00179 double y_scale = e.getYPos() / (double)TV_HEIGHT;
00180 user.handleViewerDialogPointed(viewerID, x_scale, y_scale);
00181 }
|
|
|
00184 { /* do nothing */ }
|
|
|
00185 { /* do nothing */ }
|
|
|
00186 { /* do nothing */ }
|
|
|
00187 { /* do nothing */ }
|
|
|
00188 { /* do nothing */ }
|
|
|
00189 { /* do nothing */ }
|
|
|
00190 { /* do nothing */ }
|
|
|
00191 { /* do nothing */ }
|
|
|
00192 { /* do nothing */ }
|
|
|
00193 { /* do nothing */ }
|
|
|
Implementation of ZoomerUser.
Reimplemented from ZoomerUser.
00200 {
00201 if (viewerID > -1) {
00202 user.handleViewerDialogZoomed(viewerID, zoomVal);
00203 }
00204 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001