/** {@inheritDoc} */ public void copy(TacticalGraphicAttributes attributes) { if (attributes != null) { this.scale = attributes.getScale(); this.font = attributes.getTextModifierFont(); this.textMaterial = attributes.getTextModifierMaterial(); this.interiorMaterial = attributes.getInteriorMaterial(); this.outlineMaterial = attributes.getOutlineMaterial(); this.interiorOpacity = attributes.getInteriorOpacity(); this.outlineOpacity = attributes.getOutlineOpacity(); this.outlineWidth = attributes.getOutlineWidth(); } }
/** * Creates a new <code>BasicTacticalGraphicAttributes</code> configured with the specified <code> * attributes</code>. * * @param attributes the attributes to configure the new <code>BasicTacticalGraphicAttributes * </code> with. * @throws IllegalArgumentException if <code>attributes</code> is <code>null</code>. */ public BasicTacticalGraphicAttributes(TacticalGraphicAttributes attributes) { if (attributes == null) { String message = Logging.getMessage("nullValue.AttributesIsNull"); Logging.logger().severe(message); throw new IllegalArgumentException(message); } this.scale = attributes.getScale(); this.font = attributes.getTextModifierFont(); this.textMaterial = attributes.getTextModifierMaterial(); this.interiorMaterial = attributes.getInteriorMaterial(); this.outlineMaterial = attributes.getOutlineMaterial(); this.interiorOpacity = attributes.getInteriorOpacity(); this.outlineOpacity = attributes.getOutlineOpacity(); this.outlineWidth = attributes.getOutlineWidth(); }