
public class VisualizationTask extends Object implements VisualizationItem, Comparable<VisualizationTask>
| Modifier and Type | Field and Description | 
|---|---|
(package private) VisualizerContext | 
context
The active context 
 | 
boolean | 
default_visibility
Flag to signal default visibility of a visualizer. 
 | 
(package private) VisFactory | 
factory
The factory 
 | 
static int | 
FLAG_NO_DETAIL
Mark as not having a (sensible) detail view. 
 | 
static int | 
FLAG_NO_EMBED
Flag to signal the visualizer should not be embedded. 
 | 
static int | 
FLAG_NO_EXPORT
Flag to signal the visualizer should not be exported. 
 | 
static int | 
FLAG_NO_THUMBNAIL
Flag to signal there is no thumbnail needed. 
 | 
private int | 
flags
Capabilities 
 | 
int | 
level
Meta data key: Level for visualizer ordering
 Returns an integer indicating the "height" of this Visualizer. 
 | 
static int | 
LEVEL_BACKGROUND
Background layer 
 | 
static int | 
LEVEL_DATA
Data layer 
 | 
static int | 
LEVEL_FOREGROUND
Passive foreground layer 
 | 
static int | 
LEVEL_INTERACTIVE
Active foreground layer (interactive elements) 
 | 
static int | 
LEVEL_STATIC
Static plot layer 
 | 
(package private) String | 
name
Name 
 | 
static int | 
ON_DATA
Constant to listen for data changes 
 | 
static int | 
ON_SAMPLE
Constant to listen for sampling result changes 
 | 
static int | 
ON_SELECTION
Constant to listen for selection changes 
 | 
static int | 
ON_STYLEPOLICY
Constant to listen for style result changes 
 | 
(package private) Relation<?> | 
relation
The main representation 
 | 
double | 
reqheight
Height request 
 | 
double | 
reqwidth
Width request 
 | 
(package private) Object | 
result
The result we are attached to 
 | 
boolean | 
tool
Flag to mark the visualizer as tool. 
 | 
int | 
updatemask
The update event mask. 
 | 
boolean | 
visible
Flag to control visibility. 
 | 
| Constructor and Description | 
|---|
VisualizationTask(String name,
                 VisualizerContext context,
                 Object result,
                 Relation<?> relation,
                 VisFactory factory)
Visualization task. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addFlags(int bits)
Set a task flag. 
 | 
void | 
addUpdateFlags(int bits)
Set (OR) the update flags. 
 | 
int | 
compareTo(VisualizationTask other)  | 
boolean | 
equals(Object o)  | 
VisualizerContext | 
getContext()
Get the visualizer context. 
 | 
VisFactory | 
getFactory()
Get the visualizer factory. 
 | 
String | 
getMenuName()
Name to display in the menu. 
 | 
<R extends Relation<?>> | 
getRelation()  | 
<R> R | 
getResult()  | 
boolean | 
hasAnyFlags(int bits)
Update if any oft these flags is set. 
 | 
int | 
hashCode()  | 
void | 
initDefaultVisibility(boolean vis)
Init the default visibility of a task. 
 | 
String | 
toString()  | 
boolean | 
updateOnAny(int bits)
Update if any oft these bits is set. 
 | 
public int level
public boolean visible
private int flags
public static final int FLAG_NO_THUMBNAIL
public static final int FLAG_NO_DETAIL
public static final int FLAG_NO_EXPORT
public static final int FLAG_NO_EMBED
public boolean default_visibility
public boolean tool
public static final int LEVEL_BACKGROUND
public static final int LEVEL_DATA
public static final int LEVEL_STATIC
public static final int LEVEL_FOREGROUND
public static final int LEVEL_INTERACTIVE
public int updatemask
public static final int ON_DATA
public static final int ON_SELECTION
public static final int ON_STYLEPOLICY
public static final int ON_SAMPLE
String name
VisualizerContext context
VisFactory factory
Object result
Relation<?> relation
public double reqwidth
public double reqheight
public VisualizationTask(String name, VisualizerContext context, Object result, Relation<?> relation, VisFactory factory)
name - Namecontext - Visualization contextresult - Resultrelation - Relation to usefactory - Factorypublic VisualizerContext getContext()
public VisFactory getFactory()
public <R> R getResult()
public <R extends Relation<?>> R getRelation()
public void initDefaultVisibility(boolean vis)
vis - Visibility.public String getMenuName()
VisualizationItemnull or empty string.getMenuName in interface VisualizationItempublic int compareTo(VisualizationTask other)
compareTo in interface Comparable<VisualizationTask>public void addUpdateFlags(int bits)
bits - Bits to setpublic boolean updateOnAny(int bits)
bits - Bits to check.true if any bit is set.public boolean hasAnyFlags(int bits)
bits - Bits to check.true if any bit is set.public void addFlags(int bits)
bits - Flag to setCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.