DJI Mobile SDK Documentation

class HistogramWidget

class HistogramWidget extends FrameLayoutWidget implements View.OnTouchListener, View.OnClickListener
Package:dji.ux.widget
Inherits From:FrameLayoutWidget implements View.OnTouchListener, View.OnClickListener
Description:

Widget to display histogram chart.

Class Members:
method getHistogramLineColor
@ColorInt
int getHistogramLineColor()
Package:dji.ux.widget
Description:

Line color of the histogram.

Return:
intAn int value of histogram line color.
method setHistogramLineColor
void setHistogramLineColor(@ColorInt int histogramLineColor)
Package:dji.ux.widget
Description:

Set line color of the histogram.

Input Parameters:
@ColorInt int histogramLineColorAn int value of histogram line color.
method getHistogramFillColor
@ColorInt
int getHistogramFillColor()
Package:dji.ux.widget
Description:

Fill color of the histogram.

Return:
intAn int value of histogram fill color.
method setHistogramFillColor
void setHistogramFillColor(@ColorInt int histogramFillColor)
Package:dji.ux.widget
Description:

Set fill color of the histogram.

Input Parameters:
@ColorInt int histogramFillColorAn int value of the histogram fill color.
method getHistogramGridColor
@ColorInt
int getHistogramGridColor()
Package:dji.ux.widget
Description:

Grid color of the histogram.

Return:
intAn int value of the histogram grid color.
method setHistogramGridColor
void setHistogramGridColor(@ColorInt int histogramGridColor)
Package:dji.ux.widget
Description:

Set grid color of the histogram.

Input Parameters:
@ColorInt int histogramGridColorAn int value of the histogram grid color.
method getHistogramBackgroundColor
@ColorInt
int getHistogramBackgroundColor()
Package:dji.ux.widget
Description:

Background color of the histogram.

Return:
intAn int value of the histogram background color.
method setHistogramBackgroundColor
void setHistogramBackgroundColor(@ColorInt int histogramBackgroundColor)
Package:dji.ux.widget
Description:

Set background color of the histogram.

Input Parameters:
@ColorInt int histogramBackgroundColorAn int value of the histogram background color.
method shouldDrawGrid
boolean shouldDrawGrid()
Package:dji.ux.widget
Description:

Return true if grid needs to be drawn.

Return:
booleanA boolean value to check if grid needs to be drawn.
method setShouldDrawGrid
void setShouldDrawGrid(boolean shouldDrawGrid)
Package:dji.ux.widget
Description:

Determine whether grid needs to be drawn.

Input Parameters:
boolean shouldDrawGridtrue if grid needs to be drawn.
method shouldDrawCubic
boolean shouldDrawCubic()
Package:dji.ux.widget
Description:

Return true if histogram should be drawn in cubic mode.

Return:
booleanA boolean value to check if cubic needs to be drawn.
method setShouldDrawCubic
void setShouldDrawCubic(boolean shouldDrawCubic)
Package:dji.ux.widget
Description:

Determine whether cubic needs to be drawn.

Input Parameters:
boolean shouldDrawCubictrue if cubic needs to be drawn.
method shouldShowCloseButton
boolean shouldShowCloseButton()
Package:dji.ux.widget
Description:

Return true if histogram should show the close button.

Return:
booleanA boolean value to check if histogram needs to show the close button.
method setShouldShowCloseButton
void setShouldShowCloseButton(boolean shouldShowCloseButton)
Package:dji.ux.widget
Description:

Determine whether histogram should show the close button.

Input Parameters:
boolean shouldShowCloseButtontrue if histogram should show the close button.