comirva.config
Class CircledFansConfig

java.lang.Object
  extended by comirva.config.CircledFansConfig
Direct Known Subclasses:
CircledFansDefaultConfig

public class CircledFansConfig
extends Object

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


Constructor Summary
CircledFansConfig(int maxBarThickness, int maxDataItemsL0, int maxDataItemsL1, int angleFanL1, boolean randomCenter, int idxCenter, boolean normalizeData)
          Creates a new instance of a CircledFans-Configuration.
 
Method Summary
 int getAngleFanL1()
          Returns the angular extent for fans on level 1.
 int getIndexCenter()
          Returns the index of the data item that resides in the center of the visualization.
 int getMaxBarThickness()
          Returns the maximum bar thickness.
 int getMaxDataItemsL0()
          Returns the maximum number of data items on level 0.
 int getMaxDataItemsL1()
          Returns the maximum number of data items on level 1.
 boolean isNormalizeData()
          Returns whether the data should be normalized for every fan.
 boolean isRandomCenter()
          Returns whether a random center should be chosen or the center is selected by the user.
 void setIndexCenter(int idxCenter)
          Sets the index of the data item in the center of the visualization.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CircledFansConfig

public CircledFansConfig(int maxBarThickness,
                         int maxDataItemsL0,
                         int maxDataItemsL1,
                         int angleFanL1,
                         boolean randomCenter,
                         int idxCenter,
                         boolean normalizeData)
Creates a new instance of a CircledFans-Configuration.

Parameters:
maxBarThickness - the maximum thickness of a bar
maxDataItemsL0 - the maximum number of data items on level 0 (inner circle)
maxDataItemsL1 - the maximum number of data items on level 1 (outer fans)
angleFanL1 - the angular extent for fans on level 1
randomCenter - a boolean indicating whether a random element should be picked as center
idxCenter - the index of the data item in the center of the visualization (ignored if randomCenter is true)
normalizeData - a boolean indicating whether the data should be normalized for every fan or not
Method Detail

getMaxBarThickness

public int getMaxBarThickness()
Returns the maximum bar thickness.

Returns:
the maximum bar thickness

getMaxDataItemsL0

public int getMaxDataItemsL0()
Returns the maximum number of data items on level 0.

Returns:
the maximum number of data items on level 0

getMaxDataItemsL1

public int getMaxDataItemsL1()
Returns the maximum number of data items on level 1.

Returns:
the maximum number of data items on level 1

getAngleFanL1

public int getAngleFanL1()
Returns the angular extent for fans on level 1.

Returns:
the angular extent for fans on level 1

setIndexCenter

public void setIndexCenter(int idxCenter)
Sets the index of the data item in the center of the visualization.

Parameters:
idxCenter - the index of the centermost data item

getIndexCenter

public int getIndexCenter()
Returns the index of the data item that resides in the center of the visualization.

Returns:
the index of the center data item

isNormalizeData

public boolean isNormalizeData()
Returns whether the data should be normalized for every fan.

Returns:
a boolean indicating whether the data is normalized for every fan

isRandomCenter

public boolean isRandomCenter()
Returns whether a random center should be chosen or the center is selected by the user.

Returns:
a boolean indicating whether a random element should be picked as center