@Override public double getGradientAngle() { return (gradFill.isSetLin()) ? gradFill.getLin().getAng() / 60000.d : 0; }
public XDDFLinearShadeProperties getLinearShadeProperties() { if (props.isSetLin()) { return new XDDFLinearShadeProperties(props.getLin()); } else { return null; } }
public void setLinearShadeProperties(XDDFLinearShadeProperties properties) { if (properties == null) { if (props.isSetLin()) { props.unsetLin(); } } else { props.setLin(properties.getXmlObject()); } }
@Override public GradientType getGradientType() { if (gradFill.isSetLin()) { return GradientType.linear; } if (gradFill.isSetPath()) { /* TODO: handle rect path */ STPathShadeType.Enum ps = gradFill.getPath().getPath(); if (ps == STPathShadeType.CIRCLE) { return GradientType.circular; } else if (ps == STPathShadeType.SHAPE) { return GradientType.shape; } } return GradientType.linear; } };
@Override public double getGradientAngle() { return (gradFill.isSetLin()) ? gradFill.getLin().getAng() / 60000.d : 0; }
public XDDFLinearShadeProperties getLinearShadeProperties() { if (props.isSetLin()) { return new XDDFLinearShadeProperties(props.getLin()); } else { return null; } }
public void setLinearShadeProperties(XDDFLinearShadeProperties properties) { if (properties == null) { if (props.isSetLin()) { props.unsetLin(); } } else { props.setLin(properties.getXmlObject()); } }
@Override public GradientType getGradientType() { if (gradFill.isSetLin()) { return GradientType.linear; } if (gradFill.isSetPath()) { /* TODO: handle rect path */ STPathShadeType.Enum ps = gradFill.getPath().getPath(); if (ps == STPathShadeType.CIRCLE) { return GradientType.circular; } else if (ps == STPathShadeType.SHAPE) { return GradientType.shape; } } return GradientType.linear; } };
Rectangle2D anchor = getAnchor(graphics); CTGradientFillProperties gradFill = (CTGradientFillProperties) obj; if (gradFill.isSetLin()) { paint = createLinearGradientPaint(graphics, gradFill, anchor, theme, phClr); } else if (gradFill.isSetPath()){