本文整理了Java中com.github.mikephil.charting.components.YAxis.isInverted()
方法的一些代码示例,展示了YAxis.isInverted()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YAxis.isInverted()
方法的具体详情如下:
包路径:com.github.mikephil.charting.components.YAxis
类名称:YAxis
方法名:isInverted
[英]If this returns true, the y-axis is inverted.
[中]如果返回true,则y轴反转。
代码示例来源:origin: PhilJay/MPAndroidChart
/**
* Returns true if either the left or the right or both axes are inverted.
*
* @return
*/
public boolean isAnyAxisInverted() {
if (mAxisLeft.isInverted())
return true;
if (mAxisRight.isInverted())
return true;
return false;
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public boolean isInverted(AxisDependency axis) {
return getAxis(axis).isInverted();
}
代码示例来源:origin: PhilJay/MPAndroidChart
protected void prepareOffsetMatrix() {
mRightAxisTransformer.prepareMatrixOffset(mAxisRight.isInverted());
mLeftAxisTransformer.prepareMatrixOffset(mAxisLeft.isInverted());
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void notifyDataSetChanged() {
if (mData == null) {
if (mLogEnabled)
Log.i(LOG_TAG, "Preparing... DATA NOT SET.");
return;
} else {
if (mLogEnabled)
Log.i(LOG_TAG, "Preparing...");
}
if (mRenderer != null)
mRenderer.initBuffers();
calcMinMax();
mAxisRendererLeft.computeAxis(mAxisLeft.mAxisMinimum, mAxisLeft.mAxisMaximum, mAxisLeft.isInverted());
mAxisRendererRight.computeAxis(mAxisRight.mAxisMinimum, mAxisRight.mAxisMaximum, mAxisRight.isInverted());
mXAxisRenderer.computeAxis(mXAxis.mAxisMinimum, mXAxis.mAxisMaximum, false);
if (mLegend != null)
mLegendRenderer.computeLegend(mData);
calculateOffsets();
}
代码示例来源:origin: PhilJay/MPAndroidChart
@Override
public void notifyDataSetChanged() {
if (mData == null)
return;
calcMinMax();
mYAxisRenderer.computeAxis(mYAxis.mAxisMinimum, mYAxis.mAxisMaximum, mYAxis.isInverted());
mXAxisRenderer.computeAxis(mXAxis.mAxisMinimum, mXAxis.mAxisMaximum, false);
if (mLegend != null && !mLegend.isLegendCustom())
mLegendRenderer.computeLegend(mData);
calculateOffsets();
}
代码示例来源:origin: PhilJay/MPAndroidChart
mAxisRendererLeft.computeAxis(mAxisLeft.mAxisMinimum, mAxisLeft.mAxisMaximum, mAxisLeft.isInverted());
mAxisRendererRight.computeAxis(mAxisRight.mAxisMinimum, mAxisRight.mAxisMaximum, mAxisRight.isInverted());
代码示例来源:origin: WenWangAndroid/ChartManager
/**
* Returns true if either the left or the right or both axes are inverted.
*
* @return
*/
public boolean isAnyAxisInverted() {
if (mAxisLeft.isInverted())
return true;
if (mAxisRight.isInverted())
return true;
return false;
}
代码示例来源:origin: com.github.PhilJay/MPAndroidChart
/**
* Returns true if either the left or the right or both axes are inverted.
*
* @return
*/
public boolean isAnyAxisInverted() {
if (mAxisLeft.isInverted())
return true;
if (mAxisRight.isInverted())
return true;
return false;
}
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
/**
* Returns true if either the left or the right or both axes are inverted.
*
* @return
*/
public boolean isAnyAxisInverted() {
if (mAxisLeft.isInverted()) {
return true;
}
return mAxisRight.isInverted();
}
代码示例来源:origin: xiaolongonly/Ticket-Analysis
/**
* Returns true if either the left or the right or both axes are inverted.
*
* @return
*/
public boolean isAnyAxisInverted() {
if (mAxisLeft.isInverted())
return true;
if (mAxisRight.isInverted())
return true;
return false;
}
代码示例来源:origin: xiaolongonly/Ticket-Analysis
protected void prepareOffsetMatrix() {
mRightAxisTransformer.prepareMatrixOffset(mAxisRight.isInverted());
mLeftAxisTransformer.prepareMatrixOffset(mAxisLeft.isInverted());
}
代码示例来源:origin: com.github.PhilJay/MPAndroidChart
@Override
public boolean isInverted(AxisDependency axis) {
return getAxis(axis).isInverted();
}
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
protected void prepareOffsetMatrix() {
mRightAxisTransformer.prepareMatrixOffset(mAxisRight.isInverted());
mLeftAxisTransformer.prepareMatrixOffset(mAxisLeft.isInverted());
}
代码示例来源:origin: xiaolongonly/Ticket-Analysis
@Override
public boolean isInverted(AxisDependency axis) {
return getAxis(axis).isInverted();
}
代码示例来源:origin: WenWangAndroid/ChartManager
@Override
public boolean isInverted(AxisDependency axis) {
return getAxis(axis).isInverted();
}
代码示例来源:origin: com.github.PhilJay/MPAndroidChart
protected void prepareOffsetMatrix() {
mRightAxisTransformer.prepareMatrixOffset(mAxisRight.isInverted());
mLeftAxisTransformer.prepareMatrixOffset(mAxisLeft.isInverted());
}
代码示例来源:origin: com.github.PhilJay/MPAndroidChart
@Override
public void notifyDataSetChanged() {
if (mData == null)
return;
calcMinMax();
mYAxisRenderer.computeAxis(mYAxis.mAxisMinimum, mYAxis.mAxisMaximum, mYAxis.isInverted());
mXAxisRenderer.computeAxis(mXAxis.mAxisMinimum, mXAxis.mAxisMaximum, false);
if (mLegend != null && !mLegend.isLegendCustom())
mLegendRenderer.computeLegend(mData);
calculateOffsets();
}
代码示例来源:origin: xiaolongonly/Ticket-Analysis
@Override
public void notifyDataSetChanged() {
if (mData == null)
return;
calcMinMax();
mYAxisRenderer.computeAxis(mYAxis.mAxisMinimum, mYAxis.mAxisMaximum, mYAxis.isInverted());
mXAxisRenderer.computeAxis(mXAxis.mAxisMinimum, mXAxis.mAxisMaximum, false);
if (mLegend != null && !mLegend.isLegendCustom())
mLegendRenderer.computeLegend(mData);
calculateOffsets();
}
代码示例来源:origin: WenWangAndroid/ChartManager
@Override
public void notifyDataSetChanged() {
if (mData == null)
return;
calcMinMax();
mYAxisRenderer.computeAxis(mYAxis.mAxisMinimum, mYAxis.mAxisMaximum, mYAxis.isInverted());
mXAxisRenderer.computeAxis(mXAxis.mAxisMinimum, mXAxis.mAxisMaximum, false);
if (mLegend != null && !mLegend.isLegendCustom())
mLegendRenderer.computeLegend(mData);
calculateOffsets();
}
代码示例来源:origin: WallaceXiao/StockChart-MPAndroidChart
@Override
public void notifyDataSetChanged() {
if (mData == null) {
return;
}
calcMinMax();
mYAxisRenderer.computeAxis(mYAxis.mAxisMinimum, mYAxis.mAxisMaximum, mYAxis.isInverted());
mXAxisRenderer.computeAxis(mXAxis.mAxisMinimum, mXAxis.mAxisMaximum, false);
if (mLegend != null && !mLegend.isLegendCustom()) {
mLegendRenderer.computeLegend(mData);
}
calculateOffsets();
}
内容来源于网络,如有侵权,请联系作者删除!