public XDDFPathShadeProperties getPathShadeProperties() { if (props.isSetPath()) { return new XDDFPathShadeProperties(props.getPath()); } else { return null; } }
@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; } };
public XDDFPathShadeProperties getPathShadeProperties() { if (props.isSetPath()) { return new XDDFPathShadeProperties(props.getPath()); } else { return null; } }
@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; } };
paint = createLinearGradientPaint(graphics, gradFill, anchor, theme, phClr); } else if (gradFill.isSetPath()){ CTPathShadeProperties ps = gradFill.getPath(); if(ps.getPath() == STPathShadeType.CIRCLE){ paint = createRadialGradientPaint(gradFill, anchor, theme, phClr);