/** * Calculate object hash code. * * @return hash code * @since 1.8.0 */ @Override public int hashCode() { int result = circle != null ? circle.hashCode() : 0; result = PRIME * result + (rect != null ? rect.hashCode() : 0); result = PRIME * result + (image != null ? image.hashCode() : 0); return result; } }
/** * Get the type of this layer (same as server layer). * * @return layer type */ public LayerType getLayerType() { return layerInfo != null ? layerInfo.getLayerType() : null; }
/** * String representation of object. * * @return string representation of object * @since 1.8.0 */ public String toString() { return getCacheId(); }
private FeatureStyleInfo mergeStyle(FeatureStyleInfo base, FeatureStyleInfo extension) { FeatureStyleInfo merged = new FeatureStyleInfo(); merged.setDashArray(extension.getDashArray() != null ? extension.getDashArray() : base.getDashArray()); merged.setFillColor(extension.getFillColor() != null ? extension.getFillColor() : base.getFillColor()); merged.setFillOpacity(extension.getFillOpacity() != -1 ? extension.getFillOpacity() : base.getFillOpacity()); merged.setStrokeColor(extension.getStrokeColor() != null ? extension.getStrokeColor() : base.getStrokeColor()); merged.setStrokeOpacity(extension.getStrokeOpacity() != -1 ? extension.getStrokeOpacity() : base .getStrokeOpacity()); merged.setSymbol(extension.getSymbol() != null ? extension.getSymbol() : base.getSymbol()); merged.setStrokeWidth(extension.getStrokeWidth() != -1 ? extension.getStrokeWidth() : base.getStrokeWidth()); return merged; }
/** Default constructor. Makes sure everything has a default value, to minimize the chance of a NPE. */ public LegendConfig() { fontStyle = new FontStyleInfo(); fontStyle.setColor(DEFAULT_FONT_COLOR); fontStyle.setFamily(DEFAULT_FONT_FAMILY); fontStyle.setOpacity(1); fontStyle.setSize(DEFAULT_FONT_SIZE); fontStyle.setStyle("normal"); fontStyle.setWeight("normal"); fontStyle.applyDefaults(); }
/** * Create raster layer. */ public RasterLayerInfo() { super(); setLayerType(LayerType.RASTER); }
/** * String representation of object. * * @return string representation of object * @since 1.8.0 */ @Override public String toString() { return getCacheId(); }
/** * Get label for attribute. * * @return label * @since 1.13.0 split out of deprecated AttributeInfo. */ public String getLabel() { return super.getLabel(); }
/** * Set whether the attribute is part of the feature id. * * @param identifying true when attribute is part of the feature id * @since 1.13.0 split out of deprecated AttributeInfo. */ public void setIdentifying(boolean identifying) { super.setIdentifying(identifying); }
/** * String representation of object. * * @return string representation of object * @since 1.8.0 */ @Override public String toString() { return getCacheId(); }
/** * {@inheritDoc} * @since 1.10.0 */ @Override public boolean isEditable() { // NOSONAR override needed for @Api return super.isEditable(); }
/** * String representation of object. * * @return string representation of object * @since 1.8.0 */ @Override public String toString() { return getCacheId(); }
/** * This value determines whether or not this attribute definition should be hidden in editing forms and other * widgets on the client. * <p/> * The default value for this setting is 'false'. * * @return true when hidden. * @since 1.13.0 split out of deprecated AttributeInfo. */ public boolean isHidden() { return super.isHidden(); }
/** * Set label for attribute. * * @param label label * @since 1.13.0 split out of deprecated AttributeInfo. */ public void setLabel(String label) { super.setLabel(label); }
/** * Is this an identifying attribute? Is it part of the feature id? * * @return true when attribute is part of the feature id * @since 1.13.0 split out of deprecated AttributeInfo. */ public boolean isIdentifying() { return super.isIdentifying(); }
/** * String representation of object. * * @return string representation of object * @since 1.8.0 */ @Override public String toString() { return getCacheId(); }
/** * String representation of object. * * @return string representation of object * @since 1.8.0 */ @Override public String toString() { return getCacheId(); }
/** * {@inheritDoc} * @since 1.10.0 */ @Override public void setEditable(boolean editable) { // NOSONAR override needed for @Api super.setEditable(editable); }
/** * Get string value for type. * * @return value for type */ public String value() { return name(); }