public void setExtrude(boolean extrude) { this.extrude = extrude; this.reset(); }
public void setFollowTerrain(boolean followTerrain) { this.followTerrain = followTerrain; this.reset(); }
public void clearBoundaries() { this.boundaries.clear(); this.reset(); }
public void addBoundary(List<Position> positions) { if (positions == null) { throw new IllegalArgumentException( Logger.logMessage(Logger.ERROR, "Polygon", "addBoundary", "missingList")); } this.boundaries.add(positions); this.reset(); }
public List<Position> removeBoundary(int index) { if (index < 0 || index >= this.boundaries.size()) { throw new IllegalArgumentException( Logger.logMessage(Logger.ERROR, "Polygon", "removeBoundary", "invalidIndex")); } this.reset(); return this.boundaries.remove(index); }
public List<Position> setBoundary(int index, List<Position> positions) { if (index < 0 || index >= this.boundaries.size()) { throw new IllegalArgumentException( Logger.logMessage(Logger.ERROR, "Polygon", "setBoundary", "invalidIndex")); } if (positions == null) { throw new IllegalArgumentException( Logger.logMessage(Logger.ERROR, "Polygon", "setBoundary", "missingList")); } this.reset(); return this.boundaries.set(index, positions); }
public void addBoundary(int index, List<Position> positions) { if (index < 0 || index > this.boundaries.size()) { throw new IllegalArgumentException( Logger.logMessage(Logger.ERROR, "Polygon", "addBoundary", "invalidIndex")); } if (positions == null) { throw new IllegalArgumentException( Logger.logMessage(Logger.ERROR, "Polygon", "addBoundary", "missingList")); } this.boundaries.add(index, positions); this.reset(); }