|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.dukascopy.api.indicators.OutputParameterInfo
public class OutputParameterInfo
Describes output
| Nested Class Summary | |
|---|---|
static class |
OutputParameterInfo.DrawingStyle
Specifies how to draw output |
static class |
OutputParameterInfo.Type
Type of the output |
| Field Summary | |
|---|---|
static int |
DASH_LINE
Deprecated. use OutputParameterInfo.DrawingStyle.DASH_LINE instead |
static int |
DOT
Deprecated. use OutputParameterInfo.DrawingStyle.DOTS instead |
static int |
DOT_LINE
Deprecated. use OutputParameterInfo.DrawingStyle.DOT_LINE instead |
static int |
HISTO
Deprecated. use OutputParameterInfo.DrawingStyle.HISTOGRAM instead |
static int |
LINE
Deprecated. use OutputParameterInfo.DrawingStyle.LINE instead |
static int |
PATTERN_BOOL
Deprecated. use OutputParameterInfo.DrawingStyle.PATTERN_BOOL instead |
static int |
PATTERN_BULL_BEAR
Deprecated. use OutputParameterInfo.DrawingStyle.PATTERN_BULL_BEAR instead |
static int |
PATTERN_STRENGTH
Deprecated. use OutputParameterInfo.DrawingStyle.PATTERN_STRENGTH instead |
| Constructor Summary | |
|---|---|
OutputParameterInfo()
Creates empty parameter description without setting any field |
|
OutputParameterInfo(String name,
OutputParameterInfo.Type type,
int flags)
Deprecated. use OutputParameterInfo(String, Type, DrawingStyle) instead |
|
OutputParameterInfo(String name,
OutputParameterInfo.Type type,
OutputParameterInfo.DrawingStyle drawingStyle)
Creates output parameter descriptor and sets all fields. |
|
OutputParameterInfo(String name,
OutputParameterInfo.Type type,
OutputParameterInfo.DrawingStyle drawingStyle,
boolean lastValueOnChart)
Creates output parameter descriptor and sets all fields. |
|
| Method Summary | |
|---|---|
char |
getArrowSymbol()
Returns arrow character for outputs with OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_UP or OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_DOWN style |
Color |
getColor()
Returns default color for output or null if no color was set |
OutputParameterInfo.DrawingStyle |
getDrawingStyle()
Returns style that specifies how to draw this output |
int |
getFlags()
Deprecated. use getDrawingStyle() instead |
String |
getName()
Returns name of the output |
float |
getOpacityAlpha()
Returns transparency alpha value |
int |
getShift()
Shifts output by number of candles returned |
OutputParameterInfo.Type |
getType()
Returns type of the output |
boolean |
isDrawnByIndicator()
Returns true if indicator draws this output itself |
boolean |
isGapAtNaN()
Returns true if drawing logic should make a gap in lines when there is a NaN or Integer.MIN_VALUE in output |
boolean |
isHistogramTwoColor()
Returns true if histogram should be shown in two colors |
boolean |
isShowOutput()
|
boolean |
isShowValueOnChart()
Checks should last value be specially drawn on chart or not. |
void |
setArrowSymbol(char arrowSymbol)
Sets arrow character for outputs with OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_UP or OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_DOWN style |
void |
setColor(Color color)
Sets default color to use when drawing this output |
void |
setDrawingStyle(OutputParameterInfo.DrawingStyle drawingStyle)
Sets style that specifies how to draw this output |
void |
setDrawnByIndicator(boolean drawnByIndicator)
If set to true, than indicator should have public method public void drawOutput(Graphics g, int outputIdx, Object values, Color color, IIndicatorDrawingSupport indicatorDrawingSupport, List
Also it's possible to define public double[] getMinMax(int outputIdx, Object values) methods,
that will be called to define minimum and maximum values for scale
Please look at the description of IIndicator interface for more info |
void |
setFlags(int flags)
Deprecated. use setDrawingStyle(DrawingStyle) instead |
void |
setGapAtNaN(boolean gapAtNaN)
Set to true to make gaps at candles with Double.NaN or Integer.MIN_VALUE in output |
void |
setHistogramTwoColor(boolean histogramTwoColor)
If set to true and drawing style is histogram, then it will be shown in two colors, positive values with green and negative with red |
void |
setName(String name)
Sets name of the output |
void |
setOpacityAlpha(float alpha)
|
void |
setShift(int shift)
Sets number of candles to shift this output |
void |
setShowOutput(boolean showOutput)
|
void |
setShowValueOnChart(boolean showValueOnChart)
Defines should last value be specially drawn on chart or not. |
void |
setType(OutputParameterInfo.Type type)
Sets type of the output |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LINE
OutputParameterInfo.DrawingStyle.LINE instead
public static final int DOT_LINE
OutputParameterInfo.DrawingStyle.DOT_LINE instead
public static final int DASH_LINE
OutputParameterInfo.DrawingStyle.DASH_LINE instead
public static final int DOT
OutputParameterInfo.DrawingStyle.DOTS instead
public static final int HISTO
OutputParameterInfo.DrawingStyle.HISTOGRAM instead
public static final int PATTERN_BOOL
OutputParameterInfo.DrawingStyle.PATTERN_BOOL instead
public static final int PATTERN_BULL_BEAR
OutputParameterInfo.DrawingStyle.PATTERN_BULL_BEAR instead
public static final int PATTERN_STRENGTH
OutputParameterInfo.DrawingStyle.PATTERN_STRENGTH instead
| Constructor Detail |
|---|
public OutputParameterInfo()
public OutputParameterInfo(String name,
OutputParameterInfo.Type type,
int flags)
OutputParameterInfo(String, Type, DrawingStyle) instead
name - name of the outputtype - type of the outputflags - flags of the output
public OutputParameterInfo(String name,
OutputParameterInfo.Type type,
OutputParameterInfo.DrawingStyle drawingStyle)
name - name of the outputtype - type of the outputdrawingStyle - specifies how to draw this output
public OutputParameterInfo(String name,
OutputParameterInfo.Type type,
OutputParameterInfo.DrawingStyle drawingStyle,
boolean lastValueOnChart)
name - name of the outputtype - type of the outputdrawingStyle - specifies how to draw this outputlastValueOnChart - true to show indicator's last value
for this output on chart.| Method Detail |
|---|
public String getName()
public void setName(String name)
name - name of the outputpublic OutputParameterInfo.Type getType()
public void setType(OutputParameterInfo.Type type)
type - type of the outputpublic int getFlags()
getDrawingStyle() instead
public void setFlags(int flags)
setDrawingStyle(DrawingStyle) instead
flags - flags of the outputpublic OutputParameterInfo.DrawingStyle getDrawingStyle()
public void setDrawingStyle(OutputParameterInfo.DrawingStyle drawingStyle)
drawingStyle - specifies how to draw this outputpublic Color getColor()
public void setColor(Color color)
color - color to draw withpublic char getArrowSymbol()
OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_UP or OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_DOWN style
public void setArrowSymbol(char arrowSymbol)
OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_UP or OutputParameterInfo.DrawingStyle.ARROW_SYMBOL_DOWN style
arrowSymbol - arrow characterpublic void setHistogramTwoColor(boolean histogramTwoColor)
histogramTwoColor - if true, then show histogram in two colorspublic boolean isHistogramTwoColor()
public int getShift()
public void setShift(int shift)
shift - number of candles to shift this outputpublic boolean isDrawnByIndicator()
public void setDrawnByIndicator(boolean drawnByIndicator)
public void drawOutput(Graphics g, int outputIdx, Object values, Color color, IIndicatorDrawingSupport indicatorDrawingSupport, List shapes, Map>Map> handles)
Also it's possible to define public double[] getMinMax(int outputIdx, Object values) methods,
that will be called to define minimum and maximum values for scale
Please look at the description of IIndicator interface for more info
drawnByIndicator - true if indicator draws this output itselfpublic boolean isGapAtNaN()
public void setGapAtNaN(boolean gapAtNaN)
gapAtNaN - true for gapspublic boolean isShowValueOnChart()
true to draw the last value, false to not.public void setShowValueOnChart(boolean showValueOnChart)
showValueOnChart - true to draw the last value,
false to not.public boolean isShowOutput()
public void setShowOutput(boolean showOutput)
public float getOpacityAlpha()
public void setOpacityAlpha(float alpha)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||