Package jsky.catalog

Examples of jsky.catalog.TablePlotSymbol



    // called for the <symbol> start tag
    public void _symbolStart(Attributes attrs) {
        if (attrs != null) {
            _symbol = new TablePlotSymbol();
            int n = attrs.getLength();
            for (int i = 0; i < n; i++) {
                String name = attrs.getQName(i);
                String value = attrs.getValue(i);
                if (name.equals("name")) {
View Full Code Here


        removeButton.setEnabled(_symbols.length > 1);

        // set the contents of the table listing the symbol info
        String[][] data = new String[_symbols.length][COL_NAMES.length];
        for (int i = 0; i < _symbols.length; i++) {
            TablePlotSymbol symb = _symbols[i];
            for (int j = 0; j < COL_NAMES.length; j++) {
                String s = "";
                switch (j) {
                    case COLUMNS:
                        s = symb.getColNamesList();
                        break;
                    case SYMBOL:
                        s = symb.getShapeName();
                        break;
                    case COLOR:
                        s = symb.getColorName(symb.getFg());
                        break;
                    case RATIO:
                        s = symb.getRatio();
                        break;
                    case ANGLE:
                        s = symb.getAngle();
                        break;
                    case LABEL:
                        s = symb.getLabel();
                        break;
                    case CONDITION:
                        s = symb.getCond();
                        break;
                    case SIZE:
                        s = symb.getSize();
                        break;
                    case UNITS:
                        s = symb.getUnits();
                        break;
                }
                data[i][j] = s;
            }
        }
View Full Code Here

        // initialize the symbol info from the table
        DefaultTableModel tableModel = (DefaultTableModel) symbolTable.getModel();
        int numRows = tableModel.getRowCount();
        TablePlotSymbol[] symbols = new TablePlotSymbol[numRows];
        for (int i = 0; i < numRows; i++) {
            symbols[i] = new TablePlotSymbol();
            symbols[i].setColNames(TclUtil.splitList((String) tableModel.getValueAt(i, COLUMNS)));
            symbols[i].setShapeName((String) tableModel.getValueAt(i, SYMBOL));
            symbols[i].setFg((String) tableModel.getValueAt(i, COLOR));
            symbols[i].setBg(symbols[i].getFg());
            symbols[i].setRatio((String) tableModel.getValueAt(i, RATIO));
View Full Code Here

            _symbols = new TablePlotSymbol[n + 1];
            System.arraycopy(oldSymbols, 0, _symbols, 0, n);
        } else {
            _symbols = new TablePlotSymbol[1];
        }
        _symbols[n] = new TablePlotSymbol();
        _symbols[n].setTable(_table);
        symbolTable.getSelectionModel().setSelectionInterval(numRows, numRows);
    }
View Full Code Here

TOP

Related Classes of jsky.catalog.TablePlotSymbol

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.