public List<XDDFGradientStop> getGradientStops() { if (props.isSetGsLst()) { return Collections.unmodifiableList(props .getGsLst() .getGsList() .stream() .map(gs -> new XDDFGradientStop(gs)) .collect(Collectors.toList())); } else { return Collections.emptyList(); } }
public void removeGradientStop(int index) { if (props.isSetGsLst()) { props.getGsLst().removeGs(index); } }
public int countGradientStops() { if (props.isSetGsLst()) { return props.getGsLst().sizeOfGsArray(); } else { return 0; } }
public XDDFGradientStop getGradientStop(int index) { if (props.isSetGsLst()) { return new XDDFGradientStop(props.getGsLst().getGsArray(index)); } else { return null; } }
public XDDFGradientStop addGradientStop() { if (!props.isSetGsLst()) { props.addNewGsLst(); } return new XDDFGradientStop(props.getGsLst().addNewGs()); }
public XDDFGradientStop insertGradientStop(int index) { if (!props.isSetGsLst()) { props.addNewGsLst(); } return new XDDFGradientStop(props.getGsLst().insertNewGs(index)); }
public List<XDDFGradientStop> getGradientStops() { if (props.isSetGsLst()) { return Collections.unmodifiableList(props .getGsLst() .getGsList() .stream() .map(gs -> new XDDFGradientStop(gs)) .collect(Collectors.toList())); } else { return Collections.emptyList(); } }
public int countGradientStops() { if (props.isSetGsLst()) { return props.getGsLst().sizeOfGsArray(); } else { return 0; } }
public void removeGradientStop(int index) { if (props.isSetGsLst()) { props.getGsLst().removeGs(index); } }
public XDDFGradientStop getGradientStop(int index) { if (props.isSetGsLst()) { return new XDDFGradientStop(props.getGsLst().getGsArray(index)); } else { return null; } }
public XDDFGradientStop insertGradientStop(int index) { if (!props.isSetGsLst()) { props.addNewGsLst(); } return new XDDFGradientStop(props.getGsLst().insertNewGs(index)); }
public XDDFGradientStop addGradientStop() { if (!props.isSetGsLst()) { props.addNewGsLst(); } return new XDDFGradientStop(props.getGsLst().addNewGs()); }