|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,Object>
de.lmu.ifi.dbs.elki.utilities.AnyMap<String>
de.lmu.ifi.dbs.elki.visualization.visualizers.VisualizerContext
public class VisualizerContext
Map to store context information for the visualizer. This can be any data that should to be shared among plots, such as line colors, styles etc.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Field Summary | |
---|---|
static String |
CLUSTERING
Identifier for the primary clustering to use. |
static String |
CLUSTERING_FALLBACK
Identifier for a fallback (default) clustering. |
static String |
COLOR_LIBRARY
Identifier for the main color library to use. |
private Database<?> |
database
The database |
static String |
LINESTYLE_LIBRARY
Identifier for the main line library to use. |
static String |
MARKER_LIBRARY
Identifier for the main marker library to use. |
private Result |
result
The full result object |
private static long |
serialVersionUID
Serial version. |
static String |
STYLE_LIBRARY
Identifier for the main style library to use. |
Constructor Summary | |
---|---|
VisualizerContext(Database<?> database,
Result result)
Constructor. |
Method Summary | ||
---|---|---|
private Clustering<Model> |
generateDefaultClustering()
Generate a default (fallback) clustering. |
|
|
getDatabase()
Get the database itself |
|
LineStyleLibrary |
getLineStyleLibrary()
Convenience method to get the current line style library, or use a default. |
|
MarkerLibrary |
getMarkerLibrary()
Convenience method to get the current marker |
|
Clustering<Model> |
getOrCreateDefaultClustering()
Convenience method to get the clustering to use, and fall back to a default "clustering". |
|
Result |
getResult()
Get the full result object |
|
StyleLibrary |
getStyleLibrary()
Get the style library |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.AnyMap |
---|
get, get, getGenerics |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
private static final long serialVersionUID
private Database<?> database
private Result result
public static final String COLOR_LIBRARY
public static final String MARKER_LIBRARY
public static final String LINESTYLE_LIBRARY
public static final String STYLE_LIBRARY
public static final String CLUSTERING
public static final String CLUSTERING_FALLBACK
Constructor Detail |
---|
public VisualizerContext(Database<?> database, Result result)
database
- Databaseresult
- ResultMethod Detail |
---|
public <O extends DatabaseObject> Database<O> getDatabase()
O
- Database object type
public Result getResult()
public MarkerLibrary getMarkerLibrary()
public LineStyleLibrary getLineStyleLibrary()
public StyleLibrary getStyleLibrary()
public Clustering<Model> getOrCreateDefaultClustering()
private Clustering<Model> generateDefaultClustering()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |