Package globalscreen.application.tracability.tracer

Examples of globalscreen.application.tracability.tracer.Trend


        int colorIndex = 0;
        if (!trendList.isEmpty()) {
            trendList.clear();
        }
        for (int i = 0; i < spectrumSize; i++) {
            final Trend t = new Trend(attributeName.toLowerCase() + "_" + i);
            t.setDescription("field n� " + i + "of " + attributeName.toLowerCase());
            t.setColor(colorTable.get(Integer.valueOf(colorIndex)));
            t.setUnit("No Unit");
            t.setVisibleYScale(true);
            t.setMinYScaleValue(minValue);
            t.setMaxYScaleValue(maxValue);
            try {
                t.setDrawStyle(Trend.class.getField(drawStyle).getInt(this));
            }
            catch (final Exception e) {
                t.setDrawStyle(Trend.DRAW_LINE);
            }

            try {
                t.setDotStyle(Trend.class.getField(dotStyle).getInt(this));
            }
            catch (final Exception e) {
                t.setDotStyle(Trend.FILL_OVAL_DOT);
            }
            trendList.add(t);
            trendTable.put(attributeName.toLowerCase() + "_" + i, t);
            if (colorIndex == 10) {
                colorIndex = 0;
View Full Code Here


        int size = spectrumSize;
        if (attribute.getYDimension() < spectrumSize) {
            size = attribute.getYDimension();
        }
        for (int i = 0; i < size; i++) {
            final Trend t = trendTable.get(attributeName.toLowerCase() + "_" + i);
            t.setUnit(unit);
            t.setMinYScaleValue(minValue);
            t.setMaxYScaleValue(maxValue);
        }
    }
View Full Code Here

        int colorIndex = 0;
        if (!trendList.isEmpty()) {
            trendList.clear();
        }
        for (final String element : attributeNameList) {
            final Trend t = new Trend(element.toLowerCase());
            t.setDescription(element.toLowerCase());
            t.setColor(colorTable.get(Integer.valueOf(colorIndex)));
            t.setUnit("No Unit");
            t.setVisibleYScale(true);
            t.setMinYScaleValue(defaultMinValue);
            t.setMaxYScaleValue(defaultMaxValue);
            try {
                t.setDrawStyle(Trend.class.getField(drawStyle).getInt(this));
            }
            catch (final Exception e) {
                t.setDrawStyle(Trend.DRAW_LINE);
            }

            try {
                t.setDotStyle(Trend.class.getField(dotStyle).getInt(this));
            }
            catch (final Exception e) {
                t.setDotStyle(Trend.FILL_OVAL_DOT);
            }
            trendList.add(t);
            trendTable.put(element.toLowerCase(), t);
            if (colorIndex == 10) {
                colorIndex = 0;
View Full Code Here

    public void buildTrendList() {
        final double maxValue = getMaxValue();
        final double minValue = getMinValue();
        for (int i = 0; i < m_AttributeList.size(); i++) {
            final INumberScalar attribute = (INumberScalar) m_AttributeList.get(i);
            final Trend t = trendTable.get(attribute.getName().toLowerCase());
            t.setUnit(attribute.getUnit());
            t.setMinYScaleValue(minValue);
            t.setMaxYScaleValue(maxValue);
        }
    }
View Full Code Here

TOP

Related Classes of globalscreen.application.tracability.tracer.Trend

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.