Processing class - this class handles all visulization related actions. More...
Package Functions | |
void | setup () |
initializes the visualization | |
void | draw () |
(re-)draws the visualization | |
void | setMinNodeLabelInvolvThreshhold (double thresh) |
sets the minimum node label threshold | |
void | setMaxNodeLabelInvolvThreshhold (double thresh) |
sets the maximum node label threshold | |
void | setMinEdgeWeightThreshhold (double thresh) |
sets the minimum edge weight threshold | |
void | setMaxEdgeWeightThreshhold (double thresh) |
sets the maximum edge weight threshold | |
int | getNetworkWidth () |
returns the network width (+padding) | |
int | getNetworkHeight () |
returns the network height (+padding) | |
int | getNetworkPadding () |
returns the network padding | |
int | getLoadingDataState () |
returns the LOADING_DATA state | |
int | getNoDataState () |
returns the NO_DATA state | |
int | getDataLoadedState () |
returns the DATA_LOADED state | |
boolean | isInRange (double min, double max, double value) |
determines if a value lies between two values | |
double | findMaxWeight (ArrayList< Edge > edges) |
finds the maximum weight of the given edges | |
double | findMinWeight (ArrayList< Edge > edges) |
finds the minimum weight of the given edges | |
void | clearData () |
clears all data of the visualization | |
void | setState (int state) |
sets the state of the visualization | |
int | quickSelectPartition (ArrayList< Sortable > list, int left, int right, int pivotIndex) |
partition part of the quickselect algorithm | |
EdgePair | quickSelect (ArrayList< Sortable > list, int left, int right, int k) |
performs the quickselect algorithm (pulls the first k elements at the beginning of the list) | |
void | swapElements (ArrayList< Sortable > list, int pos1, int pos2) |
swaps two elements in a list | |
void | recalculateVisibleEdgePairs () |
reorders the list of EdgePairs that the EdgePairs with the highest weights are at the beginning | |
void | recalculateVisibleNodeLabels () |
reorders the list of Nodes that the Nodes with the highest involvements are at the beginning | |
void | addNode (String author, double posX, double posY, double involvement, double variance) |
adds a new Node to draw, does nothing if a node node with the same name already exists | |
void | addEdge (String fromName, String toName, String weight) |
adds a new Edge to draw, the referenced Node must be created before, or no edge will be created | |
void | addDateBox (int month, int year, int amount) |
adds a new date Box with statistical data | |
void | addSelectionBox (int startMonth, int startYear, int endMonth, int endYear) |
sets the time range |
Package Attributes | |
ArrayList< Node > | nodes = new ArrayList<Node>() |
the list of nodes to draw (first maxNodeLabels nodes have the highest involvements) | |
HashMap< String, Node > | nodeMap = new HashMap<String, Node>() |
a map of all node with the names as keys | |
ArrayList< Edge > | edges = new ArrayList<Edge>() |
the list of all edges | |
ArrayList< EdgePair > | edgePairs = new ArrayList<EdgePair>() |
a list of all EdgePairs (first maxEdgePairs have the highest total weights) | |
HashMap< String, EdgePair > | edgePairMap = new HashMap<String, EdgePair>() |
a map of all EdgePairs with their concatenated author names as keys | |
PlotManager | manager = new PlotManager() |
the plot manager that draws the statistics box plot | |
double | maxWeight |
the current maximum edge weight | |
double | minWeight |
the current minimum edge weight | |
double | maxInvolvement |
the current maximum Involvement | |
int | state = STATE_NO_DATA |
the current state | |
Legend | legend = new Legend() |
the legend instance used to draw the legend | |
double | minNodeLabelInvolvThreshhold = 0 |
the min involvement threshhold used to determine label visibility | |
double | maxNodeLabelInvolvThreshhold = -1 |
the max involvement threshhold used to determine label visibility | |
double | minEdgeWeightThreshhold = 0 |
the min edge weight threshhold used to determine edge visibility | |
double | maxEdgeWeightThreshhold = -1 |
the min edge weight threshhold used to determine edge visibility | |
int | maxEdgePairs = 10 |
the maximum EdgePairs that should be drawn | |
int | maxNodeLabels = 10 |
the maximum number of Nodes that should be drawn with label | |
boolean | forceRedraw = true |
indicates that the whole visualization should be redrawn |
Static Package Attributes | |
static final int | NETWORK_WIDTH = 650 |
the network width, incl. | |
static final int | NETWORK_HEIGHT = 650 |
the network height, incl. | |
static final int | NETWORK_PADDING_X = 80 |
the network padding in x direction reserved for label drawing | |
static final int | NETWORK_PADDING_Y = 80 |
the network padding in y direction reserved for label drawing | |
static final int | LEGEND_WIDTH = 250 |
the legend width | |
static final int | LEGEND_HEIGHT = NETWORK_HEIGHT * 0.75 |
the legend height | |
static final int | LEGEND_POS_X = 0 |
the legend x position | |
static final int | LEGEND_POS_Y = 0 |
the legend y position | |
static final int | NETWORK_POS_X = LEGEND_WIDTH |
the Network x position | |
static final int | NETWORK_POS_Y = 0 |
the network y position | |
static final int | BOX_POS_X = 0 |
the statistics box plot x position | |
static final int | BOX_WIDTH = NETWORK_WIDTH + LEGEND_WIDTH |
the statistics box plot width | |
static final int | BOX_HEIGHT = NETWORK_HEIGHT / 3 |
the statistics box plot height | |
static final int | BOX_POS_Y = NETWORK_HEIGHT |
the statistics box plot x position | |
static final int | TOTAL_WIDTH = NETWORK_WIDTH + LEGEND_WIDTH |
the total visualization width | |
static final int | TOTAL_HEIGHT = NETWORK_HEIGHT + BOX_HEIGHT |
the total visaulization height | |
static final int | STATE_NO_DATA = 1 |
the NO_DATA state value | |
static final int | STATE_LOADING_DATA = 2 |
the LOADING_DATA state value | |
static final int | STATE_DATA_LOADED = 3 |
the DATA_LOADED state value |
Processing class - this class handles all visulization related actions.
|
package |
adds a new date Box with statistical data
month | the month |
year | the year |
amount | the amount of revsions in the specified month |
|
package |
|
package |
adds a new Node to draw, does nothing if a node node with the same name already exists
author | the author name |
posX | the x position |
posY | the y position |
involvement | the involvement of the node |
variance | the variance of the node |
|
package |
sets the time range
startMonth | the month value of the first month |
startYear | the year value of the first month |
endMonth | the month value of the last month |
endYear | the year value of the last month |
|
package |
clears all data of the visualization
|
package |
(re-)draws the visualization
|
package |
finds the maximum weight of the given edges
edges | the edges |
|
package |
finds the minimum weight of the given edges
edges | the edges |
|
package |
returns the DATA_LOADED state
|
package |
returns the LOADING_DATA state
|
package |
returns the network height (+padding)
|
package |
returns the network padding
|
package |
returns the network width (+padding)
|
package |
returns the NO_DATA state
|
package |
determines if a value lies between two values
min | the minimum value |
max | the maximum value or negative if unbounded |
value | the value to test |
performs the quickselect algorithm (pulls the first k elements at the beginning of the list)
list | the list to perform upon |
left | the first index of the sublist |
right | the last index of the sublist |
k | the lnumber of elements to put at the beginning |
|
package |
partition part of the quickselect algorithm
list | the list to partition |
left | the first index of the sublist |
right | the last index of the sublist |
pivotIndex | the pivot index |
|
package |
reorders the list of EdgePairs that the EdgePairs with the highest weights are at the beginning
|
package |
reorders the list of Nodes that the Nodes with the highest involvements are at the beginning
|
package |
sets the maximum edge weight threshold
thresh | the threshold |
|
package |
sets the maximum node label threshold
thresh | the threshold |
|
package |
sets the minimum edge weight threshold
thresh | the threshold |
|
package |
sets the minimum node label threshold
thresh | the threshold |
|
package |
sets the state of the visualization
|
package |
initializes the visualization
|
package |
swaps two elements in a list
list | the list to perform upon |
pos1 | the first index |
pos2 | the last index |
|
staticpackage |
the statistics box plot height
|
staticpackage |
the statistics box plot x position
|
staticpackage |
the statistics box plot x position
|
staticpackage |
the statistics box plot width
a map of all EdgePairs with their concatenated author names as keys
a list of all EdgePairs (first maxEdgePairs
have the highest total weights)
|
package |
indicates that the whole visualization should be redrawn
|
staticpackage |
the legend height
|
staticpackage |
the legend x position
|
staticpackage |
the legend y position
|
staticpackage |
the legend width
|
package |
the plot manager that draws the statistics box plot
|
package |
the maximum EdgePairs that should be drawn
|
package |
the min edge weight threshhold used to determine edge visibility
|
package |
the current maximum Involvement
|
package |
the max involvement threshhold used to determine label visibility
|
package |
the maximum number of Nodes that should be drawn with label
|
package |
the current maximum edge weight
|
package |
the min edge weight threshhold used to determine edge visibility
|
package |
the min involvement threshhold used to determine label visibility
|
package |
the current minimum edge weight
|
staticpackage |
the network height, incl.
NETWORK_PADDING_Y
|
staticpackage |
the network padding in x direction reserved for label drawing
|
staticpackage |
the network padding in y direction reserved for label drawing
|
staticpackage |
the Network x position
|
staticpackage |
the network y position
|
staticpackage |
the network width, incl.
NETWORK_PADDING_X
a map of all node with the names as keys
the list of nodes to draw (first maxNodeLabels
nodes have the highest involvements)
|
package |
the current state
|
staticpackage |
the DATA_LOADED state value
|
staticpackage |
the LOADING_DATA state value
|
staticpackage |
the NO_DATA state value
|
staticpackage |
the total visaulization height
|
staticpackage |
the total visualization width