@Override
    public Object getData(DataBuffer db) {
        if (db instanceof DataBufferByte){
            return ((DataBufferByte)db).getData();
        } else if (db instanceof DataBufferUShort){
            return ((DataBufferUShort)db).getData();
        } else if (db instanceof DataBufferShort){
            return ((DataBufferShort)db).getData();
        } else if (db instanceof DataBufferInt){
            return ((DataBufferInt)db).getData();
        } else if (db instanceof DataBufferFloat){
            return ((DataBufferFloat)db).getData();
        } else if (db instanceof DataBufferDouble){
            return ((DataBufferDouble)db).getData();
        } else {
            // awt.235=Wrong Data Buffer type : {0}
            throw new IllegalArgumentException(Messages.getString("awt.235", //$NON-NLS-1$
                    db.getClass()));
        }
    }