List of usage examples for org.apache.commons.configuration CompositeConfiguration getFloat
public float getFloat(String key, float defaultValue)
From source file:de.berber.kindle.annotator.lib.Annotation.java
/** * Creates a new annotation with a {@code configuration}, a {@code prefix} * for configuration lookups and a {@code page} number. *//*from w w w . j a v a 2 s.com*/ protected Annotation(final @Nonnull CompositeConfiguration configuration, final @Nonnull String prefix, final @Nonnegative int page) { this.page = page; color = configuration.getString(prefix + ".color", color); opacity = configuration.getFloat(prefix + ".opacity", opacity); }