Examples of OMScalingIcon


Examples of com.bbn.openmap.omGraphics.OMScalingIcon

        if (srl != null) {
            ImageIcon ii = srl.getIcon("SFPPV-----*****",
                    new Dimension(100, 100));
            if (ii != null) {
                OMScalingIcon omsi = new OMScalingIcon(20f, -50f, ii);
                omsi.setBaseScale(1000000);
                omsi.setMinScale(1000000);
                omsi.setMaxScale(5000000);

                omsi.putAttribute(OMGraphicConstants.LABEL,
                        new OMTextLabeler("SFPPV-----*****", OMText.JUSTIFY_LEFT, OMTextLabeler.ANCHOR_RIGHT));

                omList.add(omsi);

                SymbolPart sp = srl.getSymbolPartForCode("SFPPV-----*****");
                if (sp != null) {
                    omsi.putAttribute(OMGraphic.TOOLTIP, sp.getDescription());
                }
            } else {
                Debug.output("DemoLayer: couldn't create symbol from SymbolReferenceLibrary");
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.