Package org.gephi.appearance.plugin.RankingElementColorTransformer

Examples of org.gephi.appearance.plugin.RankingElementColorTransformer.LinearGradient


            prefs.clear();
        } catch (BackingStoreException ex) {
        }

        for (int i = 0; i < gradients.size(); i++) {
            LinearGradient gradient = gradients.get(i);
            try {
                prefs.putByteArray(COLORS + i, serializeColors(gradient.getColors()));
                prefs.putByteArray(POSITIONS + i, serializePositions(gradient.getPositions()));
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
View Full Code Here


            byte[] poss = prefs.getByteArray(POSITIONS + i, null);
            if (cols != null && poss != null) {
                try {
                    Color[] colors = deserializeColors(cols);
                    float[] posisitons = deserializePositions(poss);
                    LinearGradient linearGradient = new LinearGradient(colors, posisitons);
                    gradients.add(linearGradient);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            } else {
View Full Code Here

TOP

Related Classes of org.gephi.appearance.plugin.RankingElementColorTransformer.LinearGradient

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.