Back to index

wims  3.65+svn20090927
Public Member Functions | Static Public Member Functions | Public Attributes | Package Functions | Package Attributes | Static Package Attributes
rene.zirkel.dialogs.ExportDialog Class Reference
Inheritance diagram for rene.zirkel.dialogs.ExportDialog:
Inheritance graph
[legend]
Collaboration diagram for rene.zirkel.dialogs.ExportDialog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ExportDialog (ZirkelFrame zf, Construction c, boolean restrict)
void actionPerformed (ActionEvent e)
void doAction (String o)
boolean isAborted ()
String getPageTitle ()
String getStyleSheet ()
String getFile ()
String getDezimalColor ()
String getHexColor ()
boolean useForBackground ()
boolean useForApplet ()
boolean isJob ()
String getIcons ()
String getTools ()
String getStyle ()
String getJar ()
String getSolution ()
boolean saveComment ()
int getWidth ()
int getHeight ()
boolean jumpSolution ()
boolean saveSolution ()
boolean linkSolution ()
boolean saveDigits ()
boolean saveColors ()
boolean saveBackground ()
boolean allowZoom ()
boolean allowPopup ()
boolean restrictedMove ()
void setDimensions (int w, int h)
void showHelp ()
void windowActivated (WindowEvent e)
void windowClosed (WindowEvent e)
void windowClosing (WindowEvent e)
void windowDeactivated (WindowEvent e)
void windowDeiconified (WindowEvent e)
void windowIconified (WindowEvent e)
void windowOpened (WindowEvent e)
boolean close ()
boolean escape ()
 Calls close(), when the escape key is pressed.
void itemAction (String o, boolean flag)
void keyPressed (KeyEvent e)
void keyReleased (KeyEvent e)
void keyTyped (KeyEvent e)
void doclose ()
 Closes the dialog.
void center (Frame f)
void center ()
void centerOut (Frame f)
void notePosition (String name)
 Note window position in Global.
void setPosition (String name)
 Set window position and size.
void focusGained (FocusEvent e)
 Override to set the focus somewhere.
void focusLost (FocusEvent e)
void noteSize (String name)
 Note window size in Global.
void setSize (String name)
 Set window size.
void setDispose (boolean flag)
 This inihibits dispose(), when the dialog is closed.
void addHelp (Panel p, String subject)
 To add a help button to children.

Static Public Member Functions

static void center (Frame f, Dialog dialog)

Public Attributes

boolean Aborted = false
String Subject = ""
ActionEvent E

Package Functions

String hex (int n)

Package Attributes

ZirkelFrame ZF
Construction C
TextField PageTitle
TextField CFile
TextField Jar
TextField Width
TextField Height
TextField Solution
TextField StyleSheet
Checkbox BackgroundColor
Checkbox AppletColor
Checkbox Job
Checkbox Comment
Checkbox SaveSolution
Checkbox LinkSolution
Checkbox JumpSolution
Checkbox Digits
Checkbox Colors
Checkbox Background
Checkbox Popup
Checkbox Zoom
Checkbox RestrictedMove
Panel CP
Choice Style
boolean OK = false
IconBar IBa
IconBar IBb
boolean SaveDimensions = true
boolean Restrict
double Persp = 1
Frame F
boolean Dispose = true

Static Package Attributes

static String ISb []
static String ISb0 []
static String ST [] = {"plain","3D","icons","full","nonvisual","breaks"}
static char A []

Detailed Description

Definition at line 13 of file ExportDialog.java.


Constructor & Destructor Documentation

Definition at line 40 of file ExportDialog.java.

       {      super(zf,Zirkel.name("export.title"),true);
              ZF=zf; C=c; Restrict=restrict;
              setLayout(new BorderLayout());
              
              Panel p=new MyPanel();
              p.setLayout(new GridLayout(0,2));

              p.add(new MyLabel(Zirkel.name("export.pagetitle")));
              p.add(PageTitle=new TextFieldAction(this,"export.pagetitle",32));
              PageTitle.setText(FileName.purefilename(zf.Filename));

              p.add(new MyLabel(Zirkel.name("export.stylesheet")));
              p.add(StyleSheet=new TextFieldAction(this,"export.stylesheet",32));
              StyleSheet.setText(Global.getParameter("export.stylesheet",""));

              p.add(new MyLabel(Zirkel.name("export.width")));
              p.add(Width=new TextFieldAction(this,"export.width",32));
              Width.setText(""+Global.getParameter("export.width",600));
              Width.addActionListener(this);

              p.add(new MyLabel(Zirkel.name("export.height")));
              p.add(Height=new TextFieldAction(this,"export.height",32));
              Height.setText(""+Global.getParameter("export.height",600));
              Height.addActionListener(this);

              p.add(new MyLabel(Zirkel.name("export.file")));
              p.add(CFile=new TextFieldAction(this,"export.file",32));
              CFile.setText(FileName.filename(zf.Filename));

              p.add(new MyLabel(Zirkel.name("export.jar")));
              p.add(Jar=new TextFieldAction(this,"export.jar",32));
              Jar.setText(Global.getParameter("export.jar","zirkel.jar"));

              if (ZF.ZC.isJob())
              {      p.add(new MyLabel(""));
                     p.add(Job=
                            new CheckboxAction(this,Zirkel.name("export.job")));
                     Job.setState(ZF.ZC.isJob());
              }

              if (ZF.ZC.isJob())
              {      p.add(new MyLabel(Zirkel.name("export.solution")));
                     p.add(Solution=new TextFieldAction(this,"export.solution",32));
                     Solution.setText(FileName.purefilename(zf.Filename)+"-sol.html");
       
                     p.add(JumpSolution=
                            new CheckboxAction(this,Zirkel.name("export.jumpsol")));
                     JumpSolution.setState(Global.getParameter("export.jumpsol",false));
       
                     p.add(SaveSolution=
                            new CheckboxAction(this,Zirkel.name("export.savesol")));
                     SaveSolution.setState(Global.getParameter("export.savesol",false));
       
                     p.add(LinkSolution=
                            new CheckboxAction(this,Zirkel.name("export.linksol")));
                     LinkSolution.setState(Global.getParameter("export.linksol",false));
                     
                     p.add(new MyLabel(""));
              }

              p.add(new MyLabel(Zirkel.name("export.color")));
              p.add(CP=new MyPanel());
              CP.setBackground(Global.getParameter("export.color",
                     ZF.ZC.getBackground()));

              p.add(BackgroundColor=
                     new CheckboxAction(this,Zirkel.name("export.backgroundcolor")));
              BackgroundColor.setState(Global.getParameter("export.backgroundcolor",true));

              p.add(AppletColor=
                     new CheckboxAction(this,Zirkel.name("export.appletcolor")));
              AppletColor.setState(Global.getParameter("export.appletcolor",true));
              
              Style=new MyChoice();
              for (int i=0; i<ST.length; i++)
                     Style.add(Global.name("export."+ST[i]));
              int style=Global.getParameter("export.style",0);
              if (style<=1 && ZF.ZC.isJob()) style=3;
              Style.select(style);
              p.add(new MyLabel(Zirkel.name("export.style")));
              p.add(Style);
              
              p.add(Digits=
                     new CheckboxAction(this,Zirkel.name("export.digits")));
              Digits.setState(Global.getParameter("export.digits",true));
              p.add(Comment=
                     new CheckboxAction(this,Zirkel.name("export.comment")));
              Comment.setState(Global.getParameter("export.comment",true));

              p.add(Colors=
                     new CheckboxAction(this,Zirkel.name("export.colors")));
              Colors.setState(Global.getParameter("export.colors",true));
              p.add(Background=
                     new CheckboxAction(this,Zirkel.name("export.background")));
              Background.setState(Global.getParameter("export.background",false));

              p.add(Popup=
                     new CheckboxAction(this,Zirkel.name("export.popup")));
              Popup.setState(Global.getParameter("export.popup",true));
              p.add(Zoom=
                     new CheckboxAction(this,Zirkel.name("export.zoom")));
              Zoom.setState(Global.getParameter("export.zoom",false));

              p.add(RestrictedMove=
                     new CheckboxAction(this,Zirkel.name("export.restrictedmove")));
              RestrictedMove.setState(Global.getParameter("export.restrictedmove",false));
              p.add(new MyLabel(""));

              add("North",new Panel3D(p));
              
              Panel icons=new MyPanel();
              icons.setLayout(new GridLayout(0,1));
              IBa=new IconBar(ZF);
              String ica;
              if (restrict)
                     ica=Global.getParameter("restrictedicons",
                            " point line segment ray circle circle3 fixedcircle fixedangle intersection ");            
              else
                     ica=Global.getParameter("export.icons",
                            " point line segment ray circle circle3 fixedcircle fixedangle intersection ");
              for (int i=0; i<ZirkelFrame.IconNumber; i++)
              {      String s=ZirkelFrame.ObjectStrings[i];
                     IBa.addToggleLeft(s);       
                     if (ica.equals("full") || ica.indexOf(" "+s+" ")>=0)
                            IBa.setState(s,true);
              }
              icons.add(new Panel3D(IBa));
              IBb=new IconBar(ZF);
              String icb;
              if (restrict)
                     icb=Global.getParameter("restrictedicons",
                            "back hidden color indicate twolines ");
              else
                     icb=Global.getParameter("export.tools",
                            "back hidden color indicate twolines ");
              for (int i=0; i<ISb.length; i++)
              {      String s=ISb[i];
                     if (s.equals("qintersection")) IBb.addSeparatorLeft();
                     if (s.equals("twolines")) IBb.addSeparatorLeft();
                     if (s.equals("draw")) IBb.addSeparatorLeft();
                     IBb.addToggleLeft(s);
                     if (icb.equals("full") || icb.indexOf(ISb0[i])>=0)
                            IBb.setState(s,true);
              }
              icons.add(new Panel3D(IBb));
              IBb.setState("qchoice",Global.getParameter("options.choice",false));
              IBb.setState("qintersection",Global.getParameter("options.intersection",false));
              IBb.setState("qpointon",Global.getParameter("options.pointon",false));
              IBb.setState("indicate",!Global.getParameter("options.indicate.simple",false));
              add("Center",icons);
              
              Panel buttons=new MyPanel();
              buttons.add(new ButtonAction(this,Zirkel.name("export.setsize"),"setsize"));
              buttons.add(new ButtonAction(this,Zirkel.name("export.setcolor"),"setcolor"));
              buttons.add(new MyLabel(" "));
              buttons.add(new ButtonAction(this,Zirkel.name("ok"),"OK"));
              buttons.add(new ButtonAction(this,Zirkel.name("abort"),"Close"));
              addHelp(buttons,"htmlexport");
              add("South",buttons);
              
              pack();
              if (getSize().width>750) setSize(750,getSize().height);
              
              Dimension d=ZF.ZC.getSize();
              if (d.width>0) Persp=((double)d.height)/d.width;
       }

Here is the call graph for this function:


Member Function Documentation

void rene.zirkel.dialogs.ExportDialog.actionPerformed ( ActionEvent  e) [inline]

Reimplemented from rene.gui.CloseDialog.

Definition at line 208 of file ExportDialog.java.

       {      if (e.getSource()==Width)
              {      int w=getWidth();
                     Width.setText(""+w);
                     Height.setText(""+(int)(w*Persp)); 
              }
              else if (e.getSource()==Height && Persp>0)
              {      int h=getHeight();
                     Height.setText(""+h);
                     Width.setText(""+(int)(h/Persp));
              }             
       }

Here is the call graph for this function:

void rene.gui.CloseDialog.addHelp ( Panel  p,
String  subject 
) [inline, inherited]

To add a help button to children.

Parameters:
p
subject

Definition at line 231 of file CloseDialog.java.

       {      p.add(new MyLabel(""));
              p.add(new ButtonAction(this,Global.name("help"),"Help"));
              Subject=subject;
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 410 of file ExportDialog.java.

       {      return Popup.getState();
       }

Definition at line 406 of file ExportDialog.java.

       {      return Zoom.getState();
       }
void rene.gui.CloseDialog.center ( Frame  f) [inline, inherited]

Reimplemented in rene.dialogs.MyFileDialog.

Definition at line 104 of file CloseDialog.java.

       {      Dimension 
                     si=f.getSize(),
                     d=getSize(),
                     dscreen=getToolkit().getScreenSize();
              Point lo=f.getLocation();
              int x=lo.x+si.width/2-d.width/2;
              int y=lo.y+si.height/2-d.height/2;
              if (x+d.width>dscreen.width) x=dscreen.width-d.width-10;
              if (x<10) x=10;
              if (y+d.height>dscreen.height) y=dscreen.height-d.height-10;
              if (y<10) y=10;
              setLocation(x,y);
       }

Here is the caller graph for this function:

static void rene.gui.CloseDialog.center ( Frame  f,
Dialog  dialog 
) [inline, static, inherited]

Definition at line 118 of file CloseDialog.java.

       {      Dimension 
                     si=f.getSize(),
                     d=dialog.getSize(),
                     dscreen=f.getToolkit().getScreenSize();
              Point lo=f.getLocation();
              int x=lo.x+si.width/2-d.width/2;
              int y=lo.y+si.height/2-d.height/2;
              if (x+d.width>dscreen.width) x=dscreen.width-d.width-10;
              if (x<10) x=10;
              if (y+d.height>dscreen.height) y=dscreen.height-d.height-10;
              if (y<10) y=10;
              dialog.setLocation(x,y);
       }
void rene.gui.CloseDialog.center ( ) [inline, inherited]

Definition at line 144 of file CloseDialog.java.

       {      Dimension d=getSize(),dscreen=getToolkit().getScreenSize();
              setLocation((dscreen.width-d.width)/2,
                     (dscreen.height-d.height)/2);
       }

Here is the caller graph for this function:

void rene.gui.CloseDialog.centerOut ( Frame  f) [inline, inherited]

Definition at line 132 of file CloseDialog.java.

       {      Dimension si=f.getSize(),d=getSize(),
                     dscreen=getToolkit().getScreenSize();
              Point lo=f.getLocation();
              int x=lo.x+si.width-getSize().width+20;
              int y=lo.y+si.height/2+40;
              if (x+d.width>dscreen.width) x=dscreen.width-d.width-10;
              if (x<10) x=10;
              if (y+d.height>dscreen.height) y=dscreen.height-d.height-10;
              if (y<10) y=10;
              setLocation(x,y);
       }
boolean rene.gui.CloseDialog.close ( ) [inline, inherited]
Returns:
true if the dialog is closed.

Reimplemented in rene.dialogs.SearchFileDialog.

Definition at line 47 of file CloseDialog.java.

       {      return true;
       }

Here is the caller graph for this function:

void rene.zirkel.dialogs.ExportDialog.doAction ( String  o) [inline]

Reimplemented from rene.gui.CloseDialog.

Definition at line 222 of file ExportDialog.java.

       {      OK=false;
              if (o.equals("OK"))
              {      OK=true;
                     Global.setParameter("export.stylesheet",StyleSheet.getText());
                     Global.setParameter("export.jar",Jar.getText());
                     if (SaveDimensions) try
                     {      Global.setParameter("export.height",
                                   Integer.parseInt(Height.getText()));
                            Global.setParameter("export.width",
                                   Integer.parseInt(Width.getText()));
                     }
                     catch (Exception e) {}
                     Global.setParameter("export.color",CP.getBackground());
                     Global.setParameter("export.backgroundcolor",BackgroundColor.getState());
                     Global.setParameter("export.appletcolor",AppletColor.getState());
                     if (JumpSolution!=null)
                            Global.setParameter("export.jumpsol",JumpSolution.getState());
                     if (SaveSolution!=null)
                            Global.setParameter("export.savesol",SaveSolution.getState());
                     if (LinkSolution!=null)
                            Global.setParameter("export.linksol",LinkSolution.getState());
                     Global.setParameter("export.comment",Comment.getState());
                     Global.setParameter("export.colors",Colors.getState());
                     Global.setParameter("export.background",Background.getState());
                     Global.setParameter("export.zoom",Zoom.getState());
                     Global.setParameter("export.restrictedmove",RestrictedMove.getState());
                     Global.setParameter("export.popup",Popup.getState());
                     int i=Style.getSelectedIndex();
                     if (i>=0) Global.setParameter("export.style",i);
                     Global.setParameter("export.digits",Digits.getState());
                     getIcons();
                     getTools();
                     doclose();
              }
              else if (o.equals("setcolor"))
              {      ColorEditor d=new ColorEditor(ZF,"export.color",CP.getBackground());
                     d.center(ZF);
                     d.setVisible(true);
                     CP.setBackground(
                            Global.getParameter("export.color",CP.getBackground()));
              }
              else if (o.equals("setsize"))
              {      Dimension d=ZF.ZC.getSize();
                     Height.setText(""+d.height);
                     Width.setText(""+d.width);
              }
              else super.doAction(o);
       }

Here is the call graph for this function:

void rene.gui.CloseDialog.doclose ( ) [inline, inherited]

Closes the dialog.

This may be used in subclasses to do some action. Then call super.doclose()

Reimplemented in rene.dialogs.InfoDialog, rene.dialogs.SearchFileDialog, and rene.zirkel.dialogs.Replay.

Definition at line 92 of file CloseDialog.java.

       {      setVisible(false);
              // Because of a bug in Linux Java 1.4.2 etc.
              // dispose in a separate thread.
              Thread t=new Thread ()
              {      public void run ()
                     {      if (Dispose) dispose();
                     }
              };
              t.start();
       }

Here is the call graph for this function:

Here is the caller graph for this function:

boolean rene.gui.CloseDialog.escape ( ) [inline, inherited]

Calls close(), when the escape key is pressed.

Returns:
true if the dialog may close.

Reimplemented in rene.zirkel.dialogs.CommentDialog.

Definition at line 55 of file CloseDialog.java.

       {      return close();
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.gui.CloseDialog.focusGained ( FocusEvent  e) [inline, inherited]
void rene.gui.CloseDialog.focusLost ( FocusEvent  e) [inline, inherited]

Definition at line 191 of file CloseDialog.java.

{}

Definition at line 279 of file ExportDialog.java.

       {      Color c=CP.getBackground();
              return c.getRed()+","+c.getGreen()+","+c.getBlue(); 
       }

Definition at line 278 of file ExportDialog.java.

{ return CFile.getText(); }

Definition at line 369 of file ExportDialog.java.

       {      try
              {      int w=Integer.parseInt(Height.getText());
                     return w;
              }
              catch (Exception e)
              {      return Global.getParameter("export.height",550);
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 283 of file ExportDialog.java.

       {      Color c=CP.getBackground();
              return "#"+hex(c.getRed())+hex(c.getGreen())+hex(c.getBlue()); 
       }

Here is the call graph for this function:

Definition at line 305 of file ExportDialog.java.

       {      StringBuffer b=new StringBuffer();
              b.append(" ");
              for (int i=0; i<ZirkelFrame.IconNumber; i++)
              {      String s=ZirkelFrame.ObjectStrings[i];
                     if (IBa.getState(s))
                     {      b.append(s);
                            b.append(" ");
                     }
              }
              if (!Restrict)
                     Global.setParameter("export.icons",b.toString());
              return b.toString();
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 345 of file ExportDialog.java.

       {      return Jar.getText();
       }

Definition at line 276 of file ExportDialog.java.

{ return PageTitle.getText(); }

Definition at line 349 of file ExportDialog.java.

       {      if (Solution==null) return "";
              return Solution.getText();
       }

Definition at line 338 of file ExportDialog.java.

       {      int n=Style.getSelectedIndex();
              if (n>=0) Global.setParameter("export.style",n);
              if (n<0) return ST[0];
              else return ST[n];
       }

Here is the call graph for this function:

Definition at line 277 of file ExportDialog.java.

{ return StyleSheet.getText(); }

Definition at line 320 of file ExportDialog.java.

       {      StringBuffer b=new StringBuffer();
              b.append(" ");
              for (int i=0; i<ISb.length; i++)
              {      String s=ISb[i];
                     if (s.equals("indicate") && !IBb.getState(s))
                     {      b.append("noindicate ");
                     }
                     else if (IBb.getState(s))
                     {      b.append(ISb0[i]);
                            b.append(" ");
                     }
              }
              if (!Restrict)
                     Global.setParameter("export.tools",b.toString());
              return b.toString();
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 359 of file ExportDialog.java.

       {      try
              {      int w=Integer.parseInt(Width.getText());
                     return w;
              }
              catch (Exception e)
              {      return Global.getParameter("export.width",550);
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

String rene.zirkel.dialogs.ExportDialog.hex ( int  n) [inline, package]

Definition at line 289 of file ExportDialog.java.

       {      return ""+A[n/16]+A[n%16];
       }

Here is the caller graph for this function:

Reimplemented from rene.gui.CloseDialog.

Definition at line 272 of file ExportDialog.java.

       {      return !OK;
       }

Definition at line 300 of file ExportDialog.java.

       {      if (Job==null) return false;
              return Job.getState(); 
       }
void rene.gui.CloseDialog.itemAction ( String  o,
boolean  flag 
) [inline, inherited]

Definition at line 379 of file ExportDialog.java.

       {      if (JumpSolution==null) return false;
              return JumpSolution.getState();
       }
void rene.gui.CloseDialog.keyPressed ( KeyEvent  e) [inline, inherited]

Definition at line 82 of file CloseDialog.java.

       {      if (e.getKeyCode()==KeyEvent.VK_ESCAPE && escape()) doclose();
       }

Here is the call graph for this function:

void rene.gui.CloseDialog.keyReleased ( KeyEvent  e) [inline, inherited]

Definition at line 85 of file CloseDialog.java.

{}
void rene.gui.CloseDialog.keyTyped ( KeyEvent  e) [inline, inherited]

Definition at line 86 of file CloseDialog.java.

{}

Definition at line 389 of file ExportDialog.java.

       {      if (LinkSolution==null) return false;
              return LinkSolution.getState();
       }
void rene.gui.CloseDialog.notePosition ( String  name) [inline, inherited]

Note window position in Global.

Definition at line 153 of file CloseDialog.java.

       {      Point l=getLocation();
              Dimension d=getSize();
              Global.setParameter(name+".x",l.x);
              Global.setParameter(name+".y",l.y);
              Global.setParameter(name+".w",d.width);
              if (d.height-Global.getParameter(name+".h",0)!=19)
                     // works around a bug in Windows
                     Global.setParameter(name+".h",d.height);
              boolean maximized=false;
       }

Here is the call graph for this function:

void rene.gui.CloseDialog.noteSize ( String  name) [inline, inherited]

Note window size in Global.

Definition at line 196 of file CloseDialog.java.

       {      Dimension d=getSize();
              Global.setParameter(name+".w",d.width);
              Global.setParameter(name+".h",d.height);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 414 of file ExportDialog.java.

       {      return RestrictedMove.getState();
       }

Definition at line 402 of file ExportDialog.java.

       {      return Background.getState();
       }

Definition at line 398 of file ExportDialog.java.

       {      return Colors.getState();
       }

Definition at line 354 of file ExportDialog.java.

       {      Global.setParameter("export.comment",Comment.getState());
              return Comment.getState();
       }

Here is the call graph for this function:

Definition at line 394 of file ExportDialog.java.

       {      return Digits.getState();
       }

Definition at line 384 of file ExportDialog.java.

       {      if (SaveSolution==null) return false;
              return SaveSolution.getState();
       }
void rene.zirkel.dialogs.ExportDialog.setDimensions ( int  w,
int  h 
) [inline]

Definition at line 418 of file ExportDialog.java.

       {      Height.setText(""+h); Height.setEnabled(false);
              Width.setText(""+w); Width.setEnabled(false);
              SaveDimensions=false;
       }
void rene.gui.CloseDialog.setDispose ( boolean  flag) [inline, inherited]

This inihibits dispose(), when the dialog is closed.

Definition at line 218 of file CloseDialog.java.

       {      Dispose=flag;
       }
void rene.gui.CloseDialog.setPosition ( String  name) [inline, inherited]

Set window position and size.

Definition at line 168 of file CloseDialog.java.

       {      Point l=getLocation();
              Dimension d=getSize();
              Dimension dscreen=getToolkit().getScreenSize();
              int x=Global.getParameter(name+".x",l.x);
              int y=Global.getParameter(name+".y",l.y);
              int w=Global.getParameter(name+".w",d.width);
              int h=Global.getParameter(name+".h",d.height);
              if (w>dscreen.width) w=dscreen.width;
              if (h>dscreen.height) h=dscreen.height;
              if (x<0) x=0;
              if (x+w>dscreen.width) x=dscreen.width-w;
              if (y<0) y=0;
              if (y+h>dscreen.height) y=dscreen.height-h;
              setLocation(x,y);
              setSize(w,h);
       }

Here is the call graph for this function:

void rene.gui.CloseDialog.setSize ( String  name) [inline, inherited]

Set window size.

Definition at line 205 of file CloseDialog.java.

       {      if (!Global.haveParameter(name+".w")) pack();
              else
              {      Dimension d=getSize();
                     int w=Global.getParameter(name+".w",d.width);
                     int h=Global.getParameter(name+".h",d.height);
                     setSize(w,h);
              }
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.zirkel.dialogs.HelpCloseDialog.showHelp ( ) [inline, inherited]

Reimplemented from rene.gui.CloseDialog.

Definition at line 18 of file HelpCloseDialog.java.

       {      Info.Subject=Subject;
              Info id=new Info(F,true);
       }

Definition at line 296 of file ExportDialog.java.

       {      return AppletColor.getState(); 
       }

Definition at line 293 of file ExportDialog.java.

       {      return BackgroundColor.getState(); 
       }
void rene.gui.CloseDialog.windowActivated ( WindowEvent  e) [inline, inherited]

Definition at line 34 of file CloseDialog.java.

{}
void rene.gui.CloseDialog.windowClosed ( WindowEvent  e) [inline, inherited]

Definition at line 35 of file CloseDialog.java.

{}
void rene.gui.CloseDialog.windowClosing ( WindowEvent  e) [inline, inherited]

Definition at line 36 of file CloseDialog.java.

       {   if (close()) doclose();
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void rene.gui.CloseDialog.windowDeactivated ( WindowEvent  e) [inline, inherited]

Definition at line 39 of file CloseDialog.java.

{}
void rene.gui.CloseDialog.windowDeiconified ( WindowEvent  e) [inline, inherited]

Definition at line 40 of file CloseDialog.java.

{}
void rene.gui.CloseDialog.windowIconified ( WindowEvent  e) [inline, inherited]

Definition at line 41 of file CloseDialog.java.

{}
void rene.gui.CloseDialog.windowOpened ( WindowEvent  e) [inline, inherited]

Reimplemented in rene.zirkel.dialogs.DefineMacro.

Definition at line 42 of file CloseDialog.java.

{}

Member Data Documentation

char rene.zirkel.dialogs.ExportDialog.A[] [static, package]
Initial value:
{'0','1','2','3','4','5','6','7','8','9',
              'A','B','C','D','E','F'}

Definition at line 287 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

Definition at line 15 of file ExportDialog.java.

Definition at line 16 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

Definition at line 19 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

boolean rene.gui.CloseDialog.Dispose = true [package, inherited]

Definition at line 19 of file CloseDialog.java.

ActionEvent rene.gui.CloseDialog.E [inherited]

Reimplemented in rene.dialogs.FontEditor.

Definition at line 59 of file CloseDialog.java.

Frame rene.zirkel.dialogs.HelpCloseDialog.F [package, inherited]

Definition at line 16 of file ExportDialog.java.

Definition at line 22 of file ExportDialog.java.

Definition at line 22 of file ExportDialog.java.

String rene.zirkel.dialogs.ExportDialog.ISb[] [static, package]
Initial value:
{"back","delete","undo","showcolor","showname","showvalue",
              "color","hidden","macro0","replay","arrow","obtuse","solid","grid",
              "thickness0","type0","partial","plines",
              "twolines","macrobar","qintersection","qpointon","qchoice","indicate",
              "draw","rename","function"}

Definition at line 27 of file ExportDialog.java.

String rene.zirkel.dialogs.ExportDialog.ISb0[] [static, package]
Initial value:
{"back","delete","undo","showcolor","showname","showvalue",
              "color","hidden","macro","replay","arrow","obtuse","solid","grid",
              "thickness","type","partial","plines",
              "twolines","macrobar","qintersection","qpointon","qchoice","indicate",
              "draw","rename","function"}

Definition at line 32 of file ExportDialog.java.

Definition at line 16 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

Definition at line 21 of file ExportDialog.java.

Definition at line 16 of file ExportDialog.java.

Definition at line 25 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

Definition at line 24 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

Definition at line 23 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.

Definition at line 16 of file ExportDialog.java.

String rene.zirkel.dialogs.ExportDialog.ST[] = {"plain","3D","icons","full","nonvisual","breaks"} [static, package]

Definition at line 38 of file ExportDialog.java.

Definition at line 20 of file ExportDialog.java.

Definition at line 16 of file ExportDialog.java.

String rene.gui.CloseDialog.Subject = "" [inherited]

Reimplemented in rene.dialogs.InfoDialog.

Definition at line 22 of file CloseDialog.java.

Definition at line 16 of file ExportDialog.java.

Definition at line 14 of file ExportDialog.java.

Definition at line 17 of file ExportDialog.java.


The documentation for this class was generated from the following file: