|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.compomics.util.gui.spectrum.ReferenceArea
public class ReferenceArea
A reference area to be added to a GraphicsPanel.
Constructor Summary | |
---|---|
ReferenceArea(java.lang.String label,
double start,
double end,
java.awt.Color areaColor,
float alpha,
boolean drawOnTop,
boolean drawLabel)
Creates a new ReferenceArea |
Method Summary | |
---|---|
boolean |
drawLabel()
Returns true if the label is to be drawn, false otherwise. |
boolean |
drawOnTop()
Returns true if the area is to be drawn in front of the data, false otherwise. |
float |
getAlpha()
Get the alpha level (transparency). |
java.awt.Color |
getAreaColor()
Get the area color. |
double |
getEnd()
Get the end value. |
java.lang.String |
getLabel()
Returns the label. |
double |
getStart()
Get the start value. |
void |
setAlpha(float alpha)
Set the alpha level (transparency). |
void |
setAreaColor(java.awt.Color areaColor)
Set the area color. |
void |
setDrawLabel(boolean drawLabel)
Set to true if the label is to be drawn, false otherwise. |
void |
setDrawOnTop(boolean drawOnTop)
Set to true if the area is to be drawn in front of the data, false otherwise. |
void |
setEnd(double end)
Set the end value. |
void |
setLabel(java.lang.String label)
Sets the label, |
void |
setStart(double start)
Set the start value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReferenceArea(java.lang.String label, double start, double end, java.awt.Color areaColor, float alpha, boolean drawOnTop, boolean drawLabel) throws java.lang.IllegalArgumentException
label
- the reference labelstart
- the start of the reference areaend
- the end of the reference areaareaColor
- the color of the reference areaalpha
- the alpha level (transparency) of the reference areadrawOnTop
- if the area is to be drawn on top of or behind the datadrawLabel
- if the label is to be drawn or not
java.lang.IllegalArgumentException
- alpha must be in the range 0.0f to 1.0fMethod Detail |
---|
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- the label to setpublic double getStart()
public void setStart(double start)
start
- the start to setpublic double getEnd()
public void setEnd(double end)
end
- the end to setpublic java.awt.Color getAreaColor()
public void setAreaColor(java.awt.Color areaColor)
areaColor
- the areaColor to setpublic float getAlpha()
public void setAlpha(float alpha)
alpha
- the alpha level to setpublic boolean drawOnTop()
public void setDrawOnTop(boolean drawOnTop)
drawOnTop
- if the area is to be drawn in front of the datapublic boolean drawLabel()
public void setDrawLabel(boolean drawLabel)
drawLabel
- if the label is to be drawn
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |