|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.chart.client.chart.axis.Axis<M,V>
M - the data type of the axisV - the variable type of axispublic abstract class Axis<M,V>
Defines axis for charts. The axis position, type, style can be configured. The axes are defined in an axes array of configuration objects where the type, field, grid and other configuration options can be set. To know more about how to create a Chart please check the Chart class documentation.
| Constructor Summary | |
|---|---|
Axis()
Create an axis. |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addAxisHandler(AxisHandler handler)
Adds a AxisHandler handler for AxisSelectionEvent,
AxisItemOutEvent, AxisItemOverEvent events. |
HandlerRegistration |
addAxisItemOutHandler(AxisItemOutEvent.AxisItemOutHandler handler)
Adds a AxisItemOutEvent.AxisItemOutHandler handler for AxisItemOutEvent
events. |
HandlerRegistration |
addAxisItemOverHandler(AxisItemOverEvent.AxisItemOverHandler handler)
Adds a AxisItemOverEvent.AxisItemOverHandler handler for AxisItemOverEvent
events. |
HandlerRegistration |
addAxisSelectionHandler(AxisSelectionEvent.AxisSelectionHandler handler)
Adds a AxisSelectionEvent.AxisSelectionHandler handler for
AxisSelectionEvent events. |
void |
delete()
Removes all the sprites of the axis from the surface. |
abstract void |
drawAxis(boolean init)
Renders the axis into the screen and updates it's position. |
abstract void |
drawLabels()
Renders the labels in the axes. |
PathSprite |
getAxisConfig()
Returns the configuration for the axis lines. |
PreciseRectangle |
getBBox()
Returns the bounding box of the axis. |
Chart<M> |
getChart()
Returns the chart that the axis is currently attached. |
double |
getFrom()
Returns the starting value of the axis. |
TextSprite |
getLabelConfig()
Returns the configuration for labels on the axis. |
LabelProvider<V> |
getLabelProvider()
Returns the LabelProvider used to provide labels displayed on the
axis. |
abstract Chart.Position |
getPosition()
Returns the Chart.Position of the axis. |
int |
getSteps()
Returns the steps of the axis. |
TextSprite |
getTitleConfig()
Returns the configuration of the title. |
double |
getTo()
Returns the ending value of the axis. |
double |
getX()
Returns the x-coordinate of the axis. |
double |
getY()
Returns the y-coordinate of the axis. |
boolean |
isDisplayGrid()
Returns whether or not the axis has a grid. |
boolean |
isHidden()
Returns whether or not the axis is hidden. |
void |
onMouseDown(PrecisePoint point)
Method used when the axis is clicked. |
int |
onMouseMove(PrecisePoint point)
Method used when the axis is moused over. |
void |
onMouseOut(PrecisePoint point)
Method used when the mouse leaves the axis. |
void |
removeToolTip()
Removes the components tooltip (if one exists). |
void |
setAxisConfig(PathSprite axisConfig)
Sets the configuration for the axis lines. |
void |
setChart(Chart<M> chart)
Sets the chart that the axis is attached. |
void |
setDisplayGrid(boolean displayGrid)
Sets whether or not the axis has a grid. |
void |
setHidden(boolean hidden)
Sets whether or not the axis is hidden. |
void |
setLabelConfig(TextSprite labelConfig)
Sets the configuration for labels on the axis. |
void |
setLabelProvider(LabelProvider<V> labelProvider)
Sets the LabelProvider used to provide labels displayed on the
axis. |
void |
setSteps(int steps)
Sets the number of steps on the axis. |
void |
setTitleConfig(TextSprite titleConfig)
Sets the configuration of the title. |
void |
setToolTipConfig(AxisToolTipConfig<M> config)
Sets the tooltip configuration. |
void |
setX(double x)
Sets the x-coordinate of the axis. |
void |
setY(double y)
Sets the y-coordinate of the axis. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Axis()
| Method Detail |
|---|
public HandlerRegistration addAxisHandler(AxisHandler handler)
AxisHandler.HasAxisHandlersAxisHandler handler for AxisSelectionEvent,
AxisItemOutEvent, AxisItemOverEvent events.
addAxisHandler in interface AxisHandler.HasAxisHandlershandler - the handler
public HandlerRegistration addAxisItemOutHandler(AxisItemOutEvent.AxisItemOutHandler handler)
AxisItemOutEvent.HasAxisItemOutHandlersAxisItemOutEvent.AxisItemOutHandler handler for AxisItemOutEvent
events.
addAxisItemOutHandler in interface AxisItemOutEvent.HasAxisItemOutHandlershandler - the handler
public HandlerRegistration addAxisItemOverHandler(AxisItemOverEvent.AxisItemOverHandler handler)
AxisItemOverEvent.HasAxisItemOverHandlersAxisItemOverEvent.AxisItemOverHandler handler for AxisItemOverEvent
events.
addAxisItemOverHandler in interface AxisItemOverEvent.HasAxisItemOverHandlershandler - the handler
public HandlerRegistration addAxisSelectionHandler(AxisSelectionEvent.AxisSelectionHandler handler)
AxisSelectionEvent.HasAxisSelectionHandlersAxisSelectionEvent.AxisSelectionHandler handler for
AxisSelectionEvent events.
addAxisSelectionHandler in interface AxisSelectionEvent.HasAxisSelectionHandlershandler - the handler
public void delete()
public abstract void drawAxis(boolean init)
init - true if the initial draw callpublic abstract void drawLabels()
public PathSprite getAxisConfig()
public PreciseRectangle getBBox()
public Chart<M> getChart()
public double getFrom()
public TextSprite getLabelConfig()
public LabelProvider<V> getLabelProvider()
LabelProvider used to provide labels displayed on the
axis.
public abstract Chart.Position getPosition()
Chart.Position of the axis.
public int getSteps()
public TextSprite getTitleConfig()
public double getTo()
public double getX()
public double getY()
public boolean isDisplayGrid()
public boolean isHidden()
public void onMouseDown(PrecisePoint point)
point - the point clickedpublic int onMouseMove(PrecisePoint point)
point - the point moused over
public void onMouseOut(PrecisePoint point)
point - the point leftpublic void removeToolTip()
public void setAxisConfig(PathSprite axisConfig)
axisConfig - the configuration for the axis linespublic void setChart(Chart<M> chart)
chart - the chart that the axis is attachedpublic void setDisplayGrid(boolean displayGrid)
displayGrid - true if gridpublic void setHidden(boolean hidden)
hidden - true if hiddenpublic void setLabelConfig(TextSprite labelConfig)
labelConfig - the configuration for labels on the axispublic void setLabelProvider(LabelProvider<V> labelProvider)
LabelProvider used to provide labels displayed on the
axis.
labelProvider - the label provider used to provide labels displayed on
the axispublic void setSteps(int steps)
steps - the number of steps on the axispublic void setTitleConfig(TextSprite titleConfig)
titleConfig - the configuration of the titlepublic void setToolTipConfig(AxisToolTipConfig<M> config)
config - the tooltip configurationpublic void setX(double x)
x - the x-coordinate of the axispublic void setY(double y)
y - the y-coordinate of the axis
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||