public abstract class AbstractAxis extends Object implements ChartAxis
Modifier and Type | Class and Description |
---|---|
static class |
AbstractAxis.RegisterPersistence |
Modifier and Type | Field and Description |
---|---|
protected ChartAxis |
associatedAxis |
protected Axis |
axis |
protected boolean |
isTitleVisible |
protected String |
title |
protected boolean |
visible |
Constructor and Description |
---|
AbstractAxis() |
AbstractAxis(Axis axis) |
Modifier and Type | Method and Description |
---|---|
abstract ChartAxis |
clone() |
void |
draw()
Draws the ChartAxis with its current characteristics
|
Axis |
getAxis() |
String |
getChartAxisTitle()
Gets the axis' title
|
ChartService |
getChartService() |
int |
getLabelAngle()
Gets the current label paint
|
Font |
getLabelFont() |
Paint |
getLabelPaint()
Gets the current label paint
|
ChartAxis |
getSharedAxis() |
Font |
getTitleFont() |
boolean |
isAssociatedAxis() |
boolean |
isAxisShared()
Check if the axis is shared with another
|
boolean |
isAxisTitleEdited() |
boolean |
isChartAxisTitleVisible() |
boolean |
isVisible() |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
abstract void |
merge(ChartAxis ax) |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setAssociatedAxis(boolean isAssociatedAxis) |
void |
setAxis(Axis axis) |
void |
setCategoryLabelPositions(float position) |
void |
setChartAxisTitle(String title)
Sets a title to the axis
|
void |
setChartService(ChartService cs) |
void |
setIsAxisTitleEdited(boolean isAxisTitleEdited) |
void |
setIsChartAxisTitleVisible(boolean title) |
void |
setIsSharedAxis(boolean b) |
void |
setLabelAngle(int angle)
Establishes a paint to the label
|
void |
setLabelFont(Font font) |
void |
setLabelPaint(Paint paint)
Establishes a paint to the label
|
void |
setSharedAxis(ChartAxis assoc) |
void |
setTitleFont(Font font) |
void |
setVisible(boolean visible) |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCategoryAxis
protected Axis axis
protected ChartAxis associatedAxis
protected boolean visible
protected boolean isTitleVisible
protected String title
public abstract void merge(ChartAxis ax)
public void setVisible(boolean visible)
setVisible
in interface ChartAxis
public Axis getAxis()
public void setAxis(Axis axis)
public String getChartAxisTitle()
ChartAxis
getChartAxisTitle
in interface ChartAxis
public void setChartAxisTitle(String title)
ChartAxis
setChartAxisTitle
in interface ChartAxis
public void draw()
ChartAxis
public Paint getLabelPaint()
ChartAxis
getLabelPaint
in interface ChartAxis
public void setLabelPaint(Paint paint)
ChartAxis
setLabelPaint
in interface ChartAxis
public void setIsSharedAxis(boolean b)
setIsSharedAxis
in interface ChartAxis
public boolean isAxisShared()
ChartAxis
isAxisShared
in interface ChartAxis
public ChartAxis getSharedAxis()
getSharedAxis
in interface ChartAxis
public void setSharedAxis(ChartAxis assoc)
setSharedAxis
in interface ChartAxis
public Font getLabelFont()
getLabelFont
in interface ChartAxis
public void setLabelFont(Font font)
setLabelFont
in interface ChartAxis
public int getLabelAngle()
ChartAxis
getLabelAngle
in interface ChartAxis
public void setLabelAngle(int angle)
ChartAxis
setLabelAngle
in interface ChartAxis
public void setCategoryLabelPositions(float position)
setCategoryLabelPositions
in interface ChartAxis
public boolean isChartAxisTitleVisible()
isChartAxisTitleVisible
in interface ChartAxis
public void setIsChartAxisTitleVisible(boolean title)
setIsChartAxisTitleVisible
in interface ChartAxis
public Font getTitleFont()
getTitleFont
in interface ChartAxis
public void setTitleFont(Font font)
setTitleFont
in interface ChartAxis
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public abstract ChartAxis clone()
public void setAssociatedAxis(boolean isAssociatedAxis)
public boolean isAssociatedAxis()
isAssociatedAxis
in interface ChartAxis
public ChartService getChartService()
getChartService
in interface ChartAxis
public void setChartService(ChartService cs)
setChartService
in interface ChartAxis
public boolean isAxisTitleEdited()
isAxisTitleEdited
in interface ChartAxis
public void setIsAxisTitleEdited(boolean isAxisTitleEdited)
setIsAxisTitleEdited
in interface ChartAxis