Package net.sourceforge.processdash.util

Examples of net.sourceforge.processdash.util.ComparableValue


    private class PhaseSeries extends XYIntervalSeries {

        private int index;

        public PhaseSeries(String phaseName, int index) {
            super(new ComparableValue(phaseName, index));
            this.index = index;
        }
View Full Code Here


    private class ExceptionSeries extends XYIntervalSeries {

        private List<Span> activeEntries;

        public ExceptionSeries() {
            super(new ComparableValue("Problems", EXCEPTION_SERIES_ORDINAL));
            this.activeEntries = new LinkedList<Span>();
        }
View Full Code Here

        public Date getEnd() { return new Date(end); }
    }
   
    private class TooltipGenerator implements XYToolTipGenerator {
        public String generateToolTip(XYDataset xy, int series, int item) {
            ComparableValue key = (ComparableValue) xy.getSeriesKey(series);
            if (key.getOrdinal() == EXCEPTION_SERIES_ORDINAL)
                return resources.getString("Overlap_Message");

            IntervalXYDataset dataset = (IntervalXYDataset) xy;
            String phaseName = Translator.translate(key.toString());
            long start = dataset.getStartX(series, item).longValue();
            long end = dataset.getEndX(series, item).longValue();
            return resources.format("Time_Log_Entry_FMT", phaseName,
                new Date(start), new Date(end));
        }       
View Full Code Here

        public void addColoredIcon(Paint paint) {
            rowJLabel.setIcon(new ColoredIcon(paint));
        }

        void addToPanel(JPanel panel, int row) {
            rowKey = new ComparableValue(rowLabel, row);

            rowJLabel = new JLabel(rowLabel + "  ");
            GridBagConstraints c = new GridBagConstraints();
            c.gridx = 0;
            c.gridy = row;
View Full Code Here

            int ordinal = childNames.indexOf(childName);
            if (ordinal == -1)
                // not found? inherit the ordinal of our previous sibling.
                ordinal = lastOrdinal;

            children[i] = new ComparableValue(childKey, ordinal);
            if (i == prop.getSelectedChild())
                selectedChild = children[i];

            lastOrdinal = ordinal;
        }
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.util.ComparableValue

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.