Beispiel #1
0
  @Override
  protected void applyDefaultAttributes(ShapeAttributes attributes) {
    super.applyDefaultAttributes(attributes);

    attributes.setOutlineWidth(2.0);
    attributes.setOutlineStippleFactor(15);
    attributes.setOutlineStipplePattern((short) 0xAAAA);
  }
Beispiel #2
0
  /** {@inheritDoc} */
  @Override
  protected void doRenderGraphicModifiers(DrawContext dc) {
    super.doRenderGraphicModifiers(dc);

    if (this.symbol != null) {
      this.symbol.render(dc);
    }
  }
Beispiel #3
0
  /** {@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);
  }
Beispiel #4
0
 /** {@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);
   }
 }
Beispiel #5
0
  /** {@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());
    }
  }