Package prefuse.data

Examples of prefuse.data.DataTypeException


            m_values[row] = val;
           
            // fire a change event
            fireColumnEvent(row, prev);
        } else {
            throw new DataTypeException(val.getClass());
        }
    }
View Full Code Here


            if ( val instanceof Boolean ) {
                setBoolean(((Boolean)val).booleanValue(), row);
            } else if ( val instanceof String ) {
                setString((String)val, row);
            } else {
                throw new DataTypeException(val.getClass());
            }
        } else {
            throw new DataTypeException("Column does not accept null values");
        }
    }
View Full Code Here

    /**
     * @see prefuse.data.column.Column#getBoolean(int)
     */
    public boolean getBoolean(int row) throws DataTypeException {
        if ( !canGetBoolean() )
            throw new DataTypeException(boolean.class);
        rangeCheck(row);
       
        if ( isCacheValid(row) ) {
            return m_cache.getBoolean(row);
        } else {
View Full Code Here

    /**
     * @see prefuse.data.column.Column#getInt(int)
     */
    public int getInt(int row) throws DataTypeException {
        if ( !canGetInt() )
            throw new DataTypeException(int.class);
        rangeCheck(row);
       
        if ( !isCacheValid(row) )
            computeNumber(row);
        return m_cache.getInt(row);
View Full Code Here

    /**
     * @see prefuse.data.column.Column#getDouble(int)
     */
    public double getDouble(int row) throws DataTypeException {
        if ( !canGetDouble() )
            throw new DataTypeException(double.class);
        rangeCheck(row);
       
        if ( !isCacheValid(row) )
            computeNumber(row);
        return m_cache.getDouble(row);
View Full Code Here

    /**
     * @see prefuse.data.column.Column#getFloat(int)
     */
    public float getFloat(int row) throws DataTypeException {
        if ( !canGetFloat() )
            throw new DataTypeException(float.class);
        rangeCheck(row);
       
        if ( !isCacheValid(row) )
            computeNumber(row);
        return m_cache.getFloat(row);
View Full Code Here

    /**
     * @see prefuse.data.column.Column#getLong(int)
     */
    public long getLong(int row) throws DataTypeException {
        if ( !canGetLong() )
            throw new DataTypeException(long.class);
        rangeCheck(row);
       
        if ( !isCacheValid(row) )
            computeNumber(row);
        return m_cache.getLong(row);
View Full Code Here

        else if ( Object.class.isAssignableFrom(type) )
        {
            return new ObjectIntTreeMap(cmp, !unique);
        }
        else {
            throw new DataTypeException(
                    "No map available for the provided type");
        }
    }
View Full Code Here

        else if ( Object.class.isAssignableFrom(type) )
        {
            return true;
        }
        else {
            throw new DataTypeException(
                    "No comparator available for the provided type");
        }
    }
View Full Code Here

            if ( val instanceof Number ) {
                setFloat(((Number)val).floatValue(), row);
            } else if ( val instanceof String ) {
                setString((String)val, row);
            } else {
                throw new DataTypeException(val.getClass());
            }
        } else {
            throw new DataTypeException("Column does not accept null values");
        }
    }
View Full Code Here

TOP

Related Classes of prefuse.data.DataTypeException

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.