jyplot
Class BarClusterPlot
- java.lang.Object
-
- jyplot.BarClusterPlot
-
- All Implemented Interfaces:
- java.util.EventListener, ChartMouseListener
public class BarClusterPlot extends java.lang.Object implements ChartMouseListener
Creates a series of bar charts where the bars are stacked by the order of present/absent. Basically, values that are present for the first time are stacked above the previous values.
-
-
Constructor Summary
Constructors Constructor and Description BarClusterPlot()BarClusterPlot(boolean[][] booleanarrays, java.lang.String[] columnnames, java.lang.String[][] columnorders, java.lang.String[][] domainlabels, java.lang.String[] plottitles)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidchartMouseClicked(ChartMouseEvent event)Callback method for receiving notification of a mouse click on a chart.voidchartMouseMoved(ChartMouseEvent event)Callback method for receiving notification of a mouse movement on a chart.java.util.HashMapcomputeRectCoords(boolean[][] data)Each rect corresponds to a list of indices (e.g.static voidmain(java.lang.String[] args)
-
-
-
Constructor Detail
-
BarClusterPlot
public BarClusterPlot(boolean[][] booleanarrays, java.lang.String[] columnnames, java.lang.String[][] columnorders, java.lang.String[][] domainlabels, java.lang.String[] plottitles)- Parameters:
booleanarrays- Each column is represented as a boolean array.columnnames- The names of the columns in the boolean arrayscolumnorders- The order of the columns. The lenght of the array is the number of plots.domainlabels- The labels of domains.plottitles- The titles of the individual plots.
-
BarClusterPlot
public BarClusterPlot()
-
-
Method Detail
-
computeRectCoords
public java.util.HashMap computeRectCoords(boolean[][] data)
Each rect corresponds to a list of indices (e.g. for genes) This should be computed once. Returns a HashMap of Rectangles to IntArrayList of indices matching the Rectangles.- Parameters:
data- The first index is the row, second is column.
-
main
public static void main(java.lang.String[] args)
-
chartMouseClicked
public void chartMouseClicked(ChartMouseEvent event)
Description copied from interface:ChartMouseListenerCallback method for receiving notification of a mouse click on a chart.- Specified by:
chartMouseClickedin interfaceChartMouseListener- Parameters:
event- information about the event.
-
chartMouseMoved
public void chartMouseMoved(ChartMouseEvent event)
Description copied from interface:ChartMouseListenerCallback method for receiving notification of a mouse movement on a chart.- Specified by:
chartMouseMovedin interfaceChartMouseListener- Parameters:
event- information about the event.
-
-
DMelt 3.0 © DataMelt by jWork.ORG