Package org.n52.io
Class IoStyleContext
- java.lang.Object
-
- org.n52.io.IoStyleContext
-
public final class IoStyleContext extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIoStyleContext.StyleMetadata
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IoStyleContextcreateContextWith(IoParameters parameters, List<? extends DatasetOutput<?>> metadatas)static IoStyleContextcreateEmpty()List<DatasetOutput<?>>getAllDatasetMetadatas()StylePropertiesgetReferenceDatasetStyleOptions(String datasetId, String referenceDatasetId)Optional<IoStyleContext.StyleMetadata>getStyleMetadataFor(String datasetId)
-
-
-
Method Detail
-
createEmpty
public static IoStyleContext createEmpty()
-
createContextWith
public static IoStyleContext createContextWith(IoParameters parameters, List<? extends DatasetOutput<?>> metadatas)
- Parameters:
parameters- the style definitions.metadatas- the metadata for each dataset.- Returns:
- a rendering context to be used by
QuantityIoFactoryto create anIoHandler. - Throws:
NullPointerException- if any of the given arguments isnull.IllegalStateException- if amount of datasets described by the given arguments is not in sync.
-
getAllDatasetMetadatas
public List<DatasetOutput<?>> getAllDatasetMetadatas()
-
getStyleMetadataFor
public Optional<IoStyleContext.StyleMetadata> getStyleMetadataFor(String datasetId)
-
getReferenceDatasetStyleOptions
public StyleProperties getReferenceDatasetStyleOptions(String datasetId, String referenceDatasetId)
-
-