Package oxygenoffice.extensions.smart.diagram

Examples of oxygenoffice.extensions.smart.diagram.Color


        try {
            XPropertySet xProp = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xMainShape);
            //int lineColor = AnyConverter.toInt(xProp.getPropertyValue("LineColor"));
            if(((FillStyle)xProp.getPropertyValue("FillStyle")) == FillStyle.SOLID){
                int color = AnyConverter.toInt(xProp.getPropertyValue("FillColor"));
                return new Color(false, color, 0, 0);
            } else{
                int startColor = ((Gradient)xProp.getPropertyValue("FillGradient")).StartColor;
                int endColor = ((Gradient)xProp.getPropertyValue("FillGradient")).EndColor;
                return new Color(true, startColor, startColor, endColor);
            }
        }  catch (Exception ex) {
            System.err.println(ex.getLocalizedMessage());
        }
        return null;
View Full Code Here


                xShape = xSecondShape;
            XPropertySet xProp = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, xShape);
            //int lineColor = AnyConverter.toInt(xProp.getPropertyValue("LineColor"));
            if(((FillStyle)xProp.getPropertyValue("FillStyle")) == FillStyle.SOLID){
                int color = AnyConverter.toInt(xProp.getPropertyValue("FillColor"));
                return new Color(false, color, 0, 0);
            } else{
                int startColor = ((Gradient)xProp.getPropertyValue("FillGradient")).StartColor;
                int endColor = ((Gradient)xProp.getPropertyValue("FillGradient")).EndColor;
                return new Color(true, startColor, startColor, endColor);
            }
        }  catch (Exception ex) {
            System.err.println(ex.getLocalizedMessage());
        }
        return null;
View Full Code Here

TOP

Related Classes of oxygenoffice.extensions.smart.diagram.Color

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.