|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.compomics.util.gui.spectrum.GraphicsPanel
com.compomics.util.gui.spectrum.ChromatogramPanel
public class ChromatogramPanel
This class provides a JPanel that can display a chromatogram.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.compomics.util.gui.spectrum.GraphicsPanel |
---|
GraphicsPanel.GraphicsPanelType |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ChromatogramPanel(double[] aXAxisData,
double[] aYAxisData)
This constructor creates a ChromatogramPanel based on the passed parameters. |
|
ChromatogramPanel(double[] aXAxisData,
double[] aYAxisData,
String aXAxisLabel,
String aYAxisLabel)
This constructor creates a ChromatogramPanel based on the passed parameters. |
|
ChromatogramPanel(double[] aXAxisData,
double[] aYAxisData,
String aXAxisLabel,
String aYAxisLabel,
Integer aPointSize)
This constructor creates a ChromatogramPanel based on the passed parameters. |
Method Summary | |
---|---|
void |
addAdditionalDataset(double[] aXAxisData,
double[] aYAxisData,
Color dataPointAndLineColor,
Color areaUnderCurveColor)
Adds an additional chromatogram dataset to be displayed in the same Chromatogram Panel. |
void |
setPointSize(Integer aPointSize)
This method allows the caller to set the point size for the chromatogram. b>Note that this number needs to be even, so any uneven number will be replaced by the closest, lower, even integer (e.g., 5 becomes 4, 13 becomes 12). |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChromatogramPanel(double[] aXAxisData, double[] aYAxisData)
aXAxisData
- double[] with all the X axis data.aYAxisData
- double[] with all the Y axis data.public ChromatogramPanel(double[] aXAxisData, double[] aYAxisData, String aXAxisLabel, String aYAxisLabel)
aXAxisData
- double[] with all the X axis data.aYAxisData
- double[] with all the Y axis data.aXAxisLabel
- String with the label for the x-axis
(can have a unit between brackets, if available) - can be 'null' for no labelaYAxisLabel
- String with the label for the y-axis
(can have a unit between brackets, if available) - can be 'null' for no labelpublic ChromatogramPanel(double[] aXAxisData, double[] aYAxisData, String aXAxisLabel, String aYAxisLabel, Integer aPointSize)
aXAxisData
- double[] with all the X axis data.aYAxisData
- double[] with all the Y axis data.aXAxisLabel
- String with the label for the x-axis
(can have a unit between brackets, if available) - can be 'null' for no labelaYAxisLabel
- String with the label for the y-axis
(can have a unit between brackets, if available) - can be 'null' for no labelaPointSize
- Integer with the point size to useMethod Detail |
---|
public void addAdditionalDataset(double[] aXAxisData, double[] aYAxisData, Color dataPointAndLineColor, Color areaUnderCurveColor)
aXAxisData
- double[] with all the x-axis values.aYAxisData
- double[] with all the y-axis valuesdataPointAndLineColor
- the color to use for the data points and linesareaUnderCurveColor
- the color to use for the area under the curvepublic void setPointSize(Integer aPointSize)
aPointSize
- int with the point size, that will be reduced
to the closest, lower even integer (e.g.,
5 becomes 4, 13 becomes 12).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |