Package net.gridshield.nexsm.graphics

Examples of net.gridshield.nexsm.graphics.NexsmPaintable


                }
            }
            sb.append("</edges>\n");
        }
        // The preRenderers
        NexsmPaintable np = null;
        sb.append("<renderers>\n");
        String renderXML = "";
        if (getRenderers(key) != null)
            for (Object o: getRenderers(key)) {
                if (o != null && o instanceof NexsmPaintable) {
                    np = (NexsmPaintable)o;
                    renderXML = np.getXML();
                    if (renderXML != null && renderXML.length() > 0) {
                        sb.append("<renderer class=\"" + np.getClass().getName()  +"\">\n");
                        sb.append(renderXML);
                        sb.append("</renderer>\n");                       
                    }
                }
            }
View Full Code Here


                Color newColor = JColorChooser.showDialog(selectedVV, "Choose new color", selectedRenderer.getColor());
                if (newColor != null) {
                    selectedRenderer.setColor(newColor);
                }
            } else if (jmei.getActionCommand().equals("copy")) {
                NexsmPaintable np = (NexsmPaintable)selectedRenderer.clone();
                gm.putRenderer(selectedVV.getName(), np);
            } else if (jmei.getActionCommand().equals("size")) {
                if (selectedRenderer instanceof NexsmPaintableText) {
                    int size = ((NexsmPaintableText)selectedRenderer).getFontSize();
                    String s = JOptionPane.showInputDialog(selectedVV, "Font Size", (Object)("" + size));
View Full Code Here

TOP

Related Classes of net.gridshield.nexsm.graphics.NexsmPaintable

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.