/** {@inheritDoc} */ @Override public void setModifier(String modifier, Object value) { if (SymbologyConstants.DISTANCE.equals(modifier)) { if (value instanceof Double) { this.setWidth((Double) value); } else if (value instanceof Iterable) { // Only use the first value of the iterable. This graphic uses two control points and a // width. Iterator iterator = ((Iterable) value).iterator(); this.setWidth((Double) iterator.next()); } } else { super.setModifier(modifier, value); } }
/** {@inheritDoc} */ @Override public Object getModifier(String modifier) { if (SymbologyConstants.DISTANCE.equals(modifier)) return this.getWidth(); else return super.getModifier(modifier); }