public class LevelInfo extends java.lang.Object implements java.lang.Comparable<LevelInfo>, java.io.Serializable, java.lang.Cloneable
Constructor and Description |
---|
LevelInfo() |
LevelInfo(double value) |
LevelInfo(java.lang.String label,
double value,
OutputParameterInfo.DrawingStyle drawingStyle,
java.awt.Color color,
int width,
float alpha) |
Modifier and Type | Method and Description |
---|---|
LevelInfo |
clone() |
int |
compareTo(LevelInfo other) |
java.awt.Color |
getColor() |
OutputParameterInfo.DrawingStyle |
getDrawingStyle() |
java.lang.String |
getLabel() |
int |
getLineWidth() |
float |
getOpacityAlpha() |
double |
getValue() |
void |
setColor(java.awt.Color color) |
void |
setDrawingStyle(OutputParameterInfo.DrawingStyle drawingStyle) |
void |
setLabel(java.lang.String label) |
void |
setLineWidth(int lineWidth) |
void |
setOpacityAlpha(float opacityAlpha) |
void |
setValue(double value) |
public LevelInfo()
public LevelInfo(double value)
public LevelInfo(java.lang.String label, double value, OutputParameterInfo.DrawingStyle drawingStyle, java.awt.Color color, int width, float alpha)
label
- level labelvalue
- level value (indicates the value on the vertical (price-axis) for sub-window's type indicators or
price-axis shift calculated by way of summing up the average indicator values and the specified level
(specified in current instrument pip-value) for on-chart types of indicatorsdrawingStyle
- drawing stylecolor
- colorwidth
- widthalpha
- alphapublic java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- the label to setpublic double getValue()
public void setValue(double value)
value
- the value to setpublic OutputParameterInfo.DrawingStyle getDrawingStyle()
public void setDrawingStyle(OutputParameterInfo.DrawingStyle drawingStyle)
drawingStyle
- the drawingStyle to setpublic java.awt.Color getColor()
public void setColor(java.awt.Color color)
color
- the color to setpublic float getOpacityAlpha()
public void setOpacityAlpha(float opacityAlpha)
opacityAlpha
- the opacityAlpha to setpublic int getLineWidth()
public void setLineWidth(int lineWidth)
lineWidth
- the lineWidth to setpublic int compareTo(LevelInfo other)
compareTo
in interface java.lang.Comparable<LevelInfo>
public LevelInfo clone()
clone
in class java.lang.Object
Copyright © 2024. All rights reserved.