Package com.sun.star.drawing

Examples of com.sun.star.drawing.FillStyle


    }

    public boolean isHiddenElement(){
        try {
            XPropertySet xProps = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, m_xRectangleShape);
            FillStyle style = (FillStyle)xProps.getPropertyValue("FillStyle");
            if(style.getValue() == FillStyle.NONE_value)
                return true;
        } catch (UnknownPropertyException ex) {
            System.err.println(ex.getLocalizedMessage());
        } catch (WrappedTargetException ex) {
            System.err.println(ex.getLocalizedMessage());
View Full Code Here


              
            if(type.equals("EllipseShape")){
                if(isModifyColorsProp()){
                    setColorSettingsOfShape(xShape, "EllipseShape");
                }else{
                    FillStyle fillStyle = (FillStyle)xProp.getPropertyValue("FillStyle");
                    if(fillStyle == FillStyle.GRADIENT){
                        Gradient gradient = (Gradient)xProp.getPropertyValue("FillGradient");
                        if(m_IsLeftLayout)
                            setGradient(xShape, GradientStyle.RADIAL, gradient.StartColor, gradient.EndColor, (short)0, (short)0, (short)30, (short)50, (short)100, (short)100);
                        else
View Full Code Here

    }
   
    public void initArrowShapeColor(){
        XPropertySet xProps = (XPropertySet)UnoRuntime.queryInterface( XPropertySet.class, getArrowShape());
        try {
            FillStyle fillStyle = (FillStyle)xProps.getPropertyValue("FillStyle");
            if(fillStyle.getValue() == FillStyle.GRADIENT_value){
                Gradient gradient = (Gradient)xProps.getPropertyValue("FillGradient");
                setArrowShapeColorProp(gradient.EndColor);
            }
            if(fillStyle.getValue() == FillStyle.SOLID_value)
                setArrowShapeColorProp(AnyConverter.toInt(xProps.getPropertyValue("FillColor")));
        } catch (Exception ex) {
            System.err.println(ex.getLocalizedMessage());
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.star.drawing.FillStyle

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.