public class XAxis extends AxisBase
| Modifier and Type | Class and Description |
|---|---|
static class |
XAxis.XAxisPosition
enum for the position of the x-labels relative to the chart
|
| Modifier and Type | Field and Description |
|---|---|
int |
mLabelHeight
height of the x-axis labels in pixels - this is automatically
calculated by the computeSize() methods in the renderers
|
int |
mLabelRotatedHeight
height of the (rotated) x-axis labels in pixels - this is automatically
calculated by the computeSize() methods in the renderers
|
int |
mLabelRotatedWidth
width of the (rotated) x-axis labels in pixels - this is automatically
calculated by the computeSize() methods in the renderers
|
protected float |
mLabelRotationAngle
This is the angle for drawing the X axis labels (in degrees)
|
int |
mLabelWidth
width of the x-axis labels in pixels - this is automatically
calculated by the computeSize() methods in the renderers
|
mAxisMaximum, mAxisMinimum, mAxisRange, mAxisValueFormatter, mCenterAxisLabels, mCenteredEntries, mCustomAxisMax, mCustomAxisMin, mDecimals, mDrawAxisLine, mDrawGridLines, mDrawGridLinesBehindData, mDrawLabels, mDrawLimitLineBehindData, mEntries, mEntryCount, mForceLabels, mGranularity, mGranularityEnabled, mLimitLines, mSpaceMax, mSpaceMinmEnabled, mTextColor, mTextSize, mTypeface, mXOffset, mYOffset| Constructor and Description |
|---|
XAxis() |
| Modifier and Type | Method and Description |
|---|---|
float |
getLabelRotationAngle()
returns the angle for drawing the X axis labels (in degrees)
|
XAxis.XAxisPosition |
getPosition()
returns the position of the x-labels
|
boolean |
isAvoidFirstLastClippingEnabled()
returns true if avoid-first-lastclipping is enabled, false if not
|
void |
setAvoidFirstLastClipping(boolean enabled)
if set to true, the chart will avoid that the first and last label entry
in the chart "clip" off the edge of the chart or the screen
|
void |
setLabelRotationAngle(float angle)
sets the angle for drawing the X axis labels (in degrees)
|
void |
setPosition(XAxis.XAxisPosition pos)
sets the position of the x-labels
|
addLimitLine, calculate, disableAxisLineDashedLine, disableGridDashedLine, enableAxisLineDashedLine, enableGridDashedLine, getAxisLineColor, getAxisLineDashPathEffect, getAxisLineWidth, getAxisMaximum, getAxisMinimum, getFormattedLabel, getGranularity, getGridColor, getGridDashPathEffect, getGridLineWidth, getLabelCount, getLimitLines, getLongestLabel, getSpaceMax, getSpaceMin, getValueFormatter, isAxisLineDashedLineEnabled, isAxisMaxCustom, isAxisMinCustom, isCenterAxisLabelsEnabled, isDrawAxisLineEnabled, isDrawGridLinesBehindDataEnabled, isDrawGridLinesEnabled, isDrawLabelsEnabled, isDrawLimitLinesBehindDataEnabled, isForceLabelsEnabled, isGranularityEnabled, isGridDashedLineEnabled, removeAllLimitLines, removeLimitLine, resetAxisMaximum, resetAxisMinimum, setAxisLineColor, setAxisLineDashedLine, setAxisLineWidth, setAxisMaximum, setAxisMaxValue, setAxisMinimum, setAxisMinValue, setCenterAxisLabels, setDrawAxisLine, setDrawGridLines, setDrawGridLinesBehindData, setDrawLabels, setDrawLimitLinesBehindData, setGranularity, setGranularityEnabled, setGridColor, setGridDashedLine, setGridLineWidth, setLabelCount, setLabelCount, setSpaceMax, setSpaceMin, setValueFormattergetTextColor, getTextSize, getTypeface, getXOffset, getYOffset, isEnabled, setEnabled, setTextColor, setTextSize, setTypeface, setXOffset, setYOffsetpublic int mLabelWidth
public int mLabelHeight
public int mLabelRotatedWidth
public int mLabelRotatedHeight
protected float mLabelRotationAngle
public XAxis.XAxisPosition getPosition()
public void setPosition(XAxis.XAxisPosition pos)
pos - public float getLabelRotationAngle()
public void setLabelRotationAngle(float angle)
angle - the angle in degreespublic void setAvoidFirstLastClipping(boolean enabled)
enabled - public boolean isAvoidFirstLastClippingEnabled()