Package fr.esrf.tangoatk.core.util

Examples of fr.esrf.tangoatk.core.util.AttrDualSpectrum


    }

    IAttribute tmpXAttribute = null;
    IAttribute tmpYAttribute = null;
    String  tmpXAttributeName = null;
    AttrDualSpectrum tmpAttributeDualSpectrum = null;
    //For Y1
    Enumeration<String> keys = tmpY1AttributeList.keys();
    while (keys.hasMoreElements()) {
      tmpAttributeName = keys.nextElement();
      tmpYAttribute = tmpY1AttributeList.get(tmpAttributeName);
      tmpXAttributeName = getXY1AttributeNameForY1(tmpAttributeName);
      if(tmpXAttributeName != null &&
          tmpXY1AttributeList.containsKey(tmpXAttributeName.toLowerCase())){
        tmpXAttribute = tmpXY1AttributeList.get(tmpXAttributeName.toLowerCase());
      }

      if(tmpYAttribute != null && tmpXAttribute != null){

        tmpAttributeDualSpectrum = new AttrDualSpectrum(tmpXAttribute.getDevice(),tmpXAttribute.getNameSansDevice(),tmpYAttribute.getDevice(),tmpYAttribute.getNameSansDevice());
        tmpAttributeDualSpectrum.setYUnit(getUnitY1ForY1(tmpAttributeName));
        tmpAttributeDualSpectrum.setYName(getAxisNameY1ForY1(tmpAttributeName));
        tmpAttributeDualSpectrum.setRefreshInterval(refreshingPeriod);
        m_DualList.add(tmpAttributeDualSpectrum);
        addModel(tmpAttributeDualSpectrum,NonAttrNumberSpectrumViewer.Y1_AXIS);
      }
    }

    //For Y2
    keys = tmpY2AttributeList.keys();
    while (keys.hasMoreElements()) {
      tmpAttributeName = keys.nextElement();
      tmpYAttribute = tmpY2AttributeList.get(tmpAttributeName);
      tmpXAttributeName = getXY2AttributeNameForY2(tmpAttributeName);
      if(tmpXAttributeName != null &&
          tmpXY2AttributeList.containsKey(tmpXAttributeName.toLowerCase())){
        tmpXAttribute = tmpXY2AttributeList.get(tmpXAttributeName.toLowerCase());
      }

      if(tmpYAttribute != null && tmpXAttribute != null){

        tmpAttributeDualSpectrum = new AttrDualSpectrum(tmpXAttribute.getDevice(),tmpXAttribute.getNameSansDevice(),tmpYAttribute.getDevice(),tmpYAttribute.getNameSansDevice());
        tmpAttributeDualSpectrum.setYUnit(getUnitY2ForY2(tmpAttributeName));
        tmpAttributeDualSpectrum.setYName(getAxisNameY2ForY2(tmpAttributeName));
        tmpAttributeDualSpectrum.setRefreshInterval(refreshingPeriod);
        m_DualList.add(tmpAttributeDualSpectrum);
        addModel(tmpAttributeDualSpectrum,NonAttrNumberSpectrumViewer.Y2_AXIS);
      }
    }
    setXLogScale(xLogScale);
View Full Code Here

TOP

Related Classes of fr.esrf.tangoatk.core.util.AttrDualSpectrum

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.