comirva.config
Class CircledBarsAdvancedConfig

java.lang.Object
  extended by comirva.config.CircledBarsAdvancedConfig
Direct Known Subclasses:
CircledBarsAdvancedDefaultConfig

public class CircledBarsAdvancedConfig
extends Object

This class represents a configuration for a Circled-Bars-Advanced-Visualization. It is used to pass a configuration to the visualization pane.


Constructor Summary
CircledBarsAdvancedConfig(int showNearestN, boolean sortByDistance)
          Creates a new instance of an Circled-Bars-Advanced-Configuration.
 
Method Summary
 int getShowNearestN()
          Returns the number of nearest data items the user wishes to display.
 boolean isSortByDistance()
          Returns whether the data items are to be sorted by their distance to the selected data item (or alphabetically by their meta-data name).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircledBarsAdvancedConfig

public CircledBarsAdvancedConfig(int showNearestN,
                                 boolean sortByDistance)
Creates a new instance of an Circled-Bars-Advanced-Configuration.

Parameters:
showNearestN - the number of nearest data items the user wishes to display
sortByDistance - true if the data items should be sorted by distance, false if they are to be sorted by meta-data names
Method Detail

getShowNearestN

public int getShowNearestN()
Returns the number of nearest data items the user wishes to display.

Returns:
the number of data items that should be displayed

isSortByDistance

public boolean isSortByDistance()
Returns whether the data items are to be sorted by their distance to the selected data item (or alphabetically by their meta-data name).

Returns:
true if the data items should be sorted by distance, false if they are to be sorted by meta-data names