Class ClusterStyleAction.SetStyleAction
- java.lang.Object
-
- elki.visualization.visualizers.actions.ClusterStyleAction.SetStyleAction
-
- All Implemented Interfaces:
VisualizationItem
,VisualizationMenuAction
- Enclosing class:
- ClusterStyleAction
private static final class ClusterStyleAction.SetStyleAction extends java.lang.Object implements VisualizationMenuAction
Action to use a clustering asClusterStylingPolicy
.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private Clustering<?>
c
Clustering to useprivate VisualizerContext
context
Visualization context.
-
Constructor Summary
Constructors Modifier Constructor Description private
SetStyleAction(Clustering<?> c, VisualizerContext context)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
Menu item was activated.boolean
enabled()
Indicate if the menu option is enabled or greyed out.java.lang.String
getMenuName()
Name to display in the menu.
-
-
-
Field Detail
-
c
private final Clustering<?> c
Clustering to use
-
context
private final VisualizerContext context
Visualization context.
-
-
Constructor Detail
-
SetStyleAction
private SetStyleAction(Clustering<?> c, VisualizerContext context)
Constructor.- Parameters:
c
- Clusteringcontext
- Context
-
-
Method Detail
-
activate
public void activate()
Description copied from interface:VisualizationMenuAction
Menu item was activated.- Specified by:
activate
in interfaceVisualizationMenuAction
-
getMenuName
public java.lang.String getMenuName()
Description copied from interface:VisualizationItem
Name to display in the menu. May benull
or empty string.- Specified by:
getMenuName
in interfaceVisualizationItem
- Returns:
- Menu name.
-
enabled
public boolean enabled()
Description copied from interface:VisualizationMenuAction
Indicate if the menu option is enabled or greyed out.- Specified by:
enabled
in interfaceVisualizationMenuAction
- Returns:
true
when enabled.
-
-