Esempio n. 1
0
 public void updateStatus(String str) {
   if (pane == null) return;
   for (int i = 0; i < pane.getComponentCount(); i++) {
     Component comp = pane.getComponent(i);
     if (comp instanceof StatusListenerIF) ((StatusListenerIF) comp).updateStatus(str);
   }
 }
Esempio n. 2
0
 public void setEditMode(boolean s) {
   if (!s) pane.setEditMode(s);
   else {
     int edits = ParamInfo.getEditItems();
     if ((edits & ParamInfo.TOOLPANELS) > 0) pane.setEditMode(true);
     else pane.setEditMode(false);
   }
 }
Esempio n. 3
0
 public void updateValue() {
   bNeedUpdate = false;
   if (pane == null) return;
   for (int i = 0; i < pane.getComponentCount(); i++) {
     Component comp = pane.getComponent(i);
     if (comp instanceof ExpListenerIF) ((ExpListenerIF) comp).updateValue();
   }
 }
Esempio n. 4
0
 public void updateAllValue() {
   if (pane == null) return;
   bNeedUpdate = false;
   int nums = pane.getComponentCount();
   for (int i = 0; i < nums; i++) {
     Component comp = pane.getComponent(i);
     if (comp instanceof VObjIF) {
       VObjIF obj = (VObjIF) comp;
       obj.updateValue();
     }
   }
 }
Esempio n. 5
0
  public void setViewPort(int id) {
    if (pane == null) return;

    // ButtonIF vif = Util.getViewArea().getActiveVp();
    ButtonIF vif = Util.getViewArea().getExp(id);

    if (vif == null) return;

    int nums = pane.getComponentCount();

    for (int i = 0; i < nums; i++) {
      Component comp = pane.getComponent(i);
      if (comp instanceof VObjIF) {
        VObjIF obj = (VObjIF) comp;
        obj.setVnmrIF(vif);
      }
    }
  }
Esempio n. 6
0
  public XMLToolPanel(SessionShare ss, String pname, String fname) {

    this.vnmrIf = (ButtonIF) Util.getViewArea().getDefaultExp();
    this.sshare = ss;
    this.pname = pname;
    this.fname = fname;

    pane = new ParamPanel();
    pane.setPanelFile(fname);
    pane.setPanelName(pname);
    pane.setType(ParamInfo.TOOLPANEL);
    pane.setLayoutName("toolPanels");
    pane.setAttributes(null);

    paramsLayout = new VRubberPanLayout();
    if (!Util.isImagingUser()) paramsLayout.setSquish(1.0);

    DisplayOptions.addChangeListener(this);
    ExpPanel.addStatusListener(this);
    // ExpPanel.addExpListener(this);

    setLayout(new xpPanelLayout());
  } // constructor