use of javax.vecmath.Color3f in project ffx by mjschnie.
the class GraphicsCanvas method savePrefs.
/**
* <p>
* savePrefs</p>
*/
public void savePrefs() {
String c = GraphicsCanvas.class.getName();
prefs.putInt(c + ".bondwidth", RendererCache.bondwidth);
prefs.putInt(c + ".detail", RendererCache.detail);
prefs.putDouble(c + ".radius", RendererCache.radius);
prefs.put(c + ".mouse", mouseMode.name());
prefs.putBoolean(c + ".highlight", RendererCache.highlightSelections);
Color col = RendererCache.selectionColor.get();
prefs.put(c + ".highlightColor", "" + col.getRed() + " " + col.getGreen() + " " + col.getBlue());
prefs.putBoolean(c + ".labelAtoms", RendererCache.labelAtoms);
prefs.putBoolean(c + ".labelResidues", RendererCache.labelResidues);
prefs.putInt(c + ".labelSize", getGraphics2D().getFont().getSize());
Color fontColor = getGraphics2D().getColor();
prefs.put(c + ".labelColor", "" + fontColor.getRed() + " " + fontColor.getGreen() + " " + fontColor.getBlue());
col = RendererCache.pickingColor.get();
prefs.put(c + ".pickColor", "" + col.getRed() + " " + col.getGreen() + " " + col.getBlue());
prefs.putBoolean(c + ".picking", rendererPicking.getPicking());
prefs.put(c + ".pickLevel", rendererPicking.getPickLevel());
col = RendererCache.userColor.get();
prefs.put(c + ".userColor", "" + col.getRed() + " " + col.getGreen() + " " + col.getBlue());
Color3f temp = new Color3f();
background.getColor(temp);
col = temp.get();
prefs.put(c + ".backgroundColor", "" + col.getRed() + " " + col.getGreen() + " " + col.getBlue());
}
Aggregations