@Override protected void applyDefaultAttributes(ShapeAttributes attributes) { super.applyDefaultAttributes(attributes); attributes.setOutlineWidth(2.0); attributes.setOutlineStippleFactor(15); attributes.setOutlineStipplePattern((short) 0xAAAA); }
/** {@inheritDoc} */ @Override protected void doRenderGraphicModifiers(DrawContext dc) { super.doRenderGraphicModifiers(dc); if (this.symbol != null) { this.symbol.render(dc); } }
/** {@inheritDoc} */ @Override protected void applyDefaultAttributes(ShapeAttributes attributes) { super.applyDefaultAttributes(attributes); // Enable the polygon interior for the "thick line" polygon. All other parts of the graphic are // drawn with Path, // so the draw interior setting will not affect them. attributes.setDrawInterior(true); }
/** {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public void setModifier(String modifier, Object value) { if (SymbologyConstants.SYMBOL_INDICATOR.equals(modifier) && value instanceof String) { this.setSymbol((String) value); } else { super.setModifier(modifier, value); } }
/** {@inheritDoc} Overridden to update symbol attributes. */ @Override protected void determineActiveAttributes() { super.determineActiveAttributes(); // Apply active attributes to the symbol. if (this.symbolAttributes != null) { ShapeAttributes activeAttributes = this.getActiveShapeAttributes(); this.symbolAttributes.setOpacity(activeAttributes.getInteriorOpacity()); this.symbolAttributes.setScale(this.activeOverrides.getScale()); } }