|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ChartPopupAdaptor is an interface of adaptors that wrap charts so that different kinds of charts can be manipulated via a common interface that is appropriate for the SimpleChartPopupMenu and SimpleChartDialog.
| Method Summary | |
java.awt.Component |
getChartComponent()
Get the chart component. |
double |
getMaxXLimit()
Get the maximum value of x that is visible. |
double |
getMaxYLimit()
Get the maximum value of y that is visible. |
double |
getMinXLimit()
Get the minimum value of x that is visible. |
double |
getMinYLimit()
Get the minimum value of y that is visible. |
int |
getXNumMajorTicks()
Get the number of major ticks on the x-axis. |
int |
getXNumMinorTicks()
Get the number of minor ticks per major step on the x-axis. |
int |
getYNumMajorTicks()
Get the number of minor ticks on the y-axis. |
int |
getYNumMinorTicks()
Get the number of minor ticks per major step on the y-axis. |
boolean |
isXAutoScale()
Get the state of x-axis auto-scaling |
boolean |
isXGridVisible()
Get the visibility state of the x-axis grid. |
boolean |
isYAutoScale()
Get the state of y-axis auto-scaling |
boolean |
isYGridVisible()
Get the visibility state of the y-axis grid. |
void |
scaleXandY()
Scale the x and y axes once so all points fit on the chart then keep the axes' scales fixed. |
void |
setMaxXLimit(double upperLimit)
Set the maximum value of x that is visible. |
void |
setMaxYLimit(double upperLimit)
Set the maximum value of y that is visible. |
void |
setMinXLimit(double lowerLimit)
Set the minimum value of x that is visible. |
void |
setMinYLimit(double lowerLimit)
Set the minimum value of y that is visible. |
void |
setXAutoScale(boolean state)
Set the auto-scale state of the x-axis |
void |
setXGridVisible(boolean visibility)
Set the visibility of the x-axis grid. |
void |
setXNumMajorTicks(int count)
Set the number of major ticks on the x-axis. |
void |
setXNumMinorTicks(int count)
Set the number of minor ticks on the x-axis. |
void |
setYAutoScale(boolean state)
Set the auto-scale state of the y-axis |
void |
setYGridVisible(boolean visibility)
Set the visibility of the y-axis grid. |
void |
setYNumMajorTicks(int count)
Set the number of major ticks on the y-axis. |
void |
setYNumMinorTicks(int count)
Set the number of minor ticks on the y-axis. |
| Method Detail |
public java.awt.Component getChartComponent()
public double getMinXLimit()
public void setMinXLimit(double lowerLimit)
lowerLimit - the minimum value of x that is visiblepublic double getMaxXLimit()
public void setMaxXLimit(double upperLimit)
upperLimit - the maximum value of x that is visiblepublic double getMinYLimit()
public void setMinYLimit(double lowerLimit)
lowerLimit - the minimum value of y that is visiblepublic double getMaxYLimit()
public void setMaxYLimit(double upperLimit)
upperLimit - the maximum value of y that is visiblepublic void scaleXandY()
public boolean isXAutoScale()
public void setXAutoScale(boolean state)
state - true to enable x-axis auto-scaling; false to disable auto-scalingpublic boolean isYAutoScale()
public void setYAutoScale(boolean state)
state - true to enable y-axis auto-scaling; false to disable auto-scalingpublic int getXNumMinorTicks()
public void setXNumMinorTicks(int count)
count - number of minor tickspublic int getXNumMajorTicks()
public void setXNumMajorTicks(int count)
count - the desired number of major tickspublic int getYNumMinorTicks()
public void setYNumMinorTicks(int count)
count - the number of minor tickspublic int getYNumMajorTicks()
public void setYNumMajorTicks(int count)
count - the number of major tickspublic boolean isXGridVisible()
public void setXGridVisible(boolean visibility)
visibility - true to enable the grid; false to disable the gridpublic boolean isYGridVisible()
public void setYGridVisible(boolean visibility)
visibility - true to enable the grid; false to disable the grid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||