|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.sha.gui.infoTools.GraphiWindowAPI_Impl
public class GraphiWindowAPI_Impl
This class accepts a function list and plots it using Jfreechart
| Constructor Summary | |
|---|---|
GraphiWindowAPI_Impl(ArrayList funcs,
String plotTitle)
|
|
GraphiWindowAPI_Impl(ArrayList funcs,
String plotTitle,
ArrayList<PlotCurveCharacterstics> plotChars)
|
|
GraphiWindowAPI_Impl(ArrayList funcs,
String plotTitle,
ArrayList<PlotCurveCharacterstics> plotChars,
boolean setVisible)
|
|
GraphiWindowAPI_Impl(PlotSpec plotSpec)
|
|
GraphiWindowAPI_Impl(XY_DataSet func,
String plotTitle)
|
|
| Method Summary | |
|---|---|
protected static ArrayList<PlotCurveCharacterstics> |
generateDefaultChars(List funcs)
|
static List<Color> |
generateDefaultColors()
|
ArrayList |
getCurveFunctionList()
|
GraphWindow |
getGraphWindow()
|
int |
getPlotLabelFontSize()
|
ArrayList |
getPlottingFeatures()
|
String |
getPlotTitle()
Get plot title |
int |
getTickLabelFontSize()
|
double |
getUserMaxX()
|
double |
getUserMaxY()
|
double |
getUserMinX()
|
double |
getUserMinY()
|
double |
getX_AxisMax()
This returns the current X-axis maximum value |
double |
getX_AxisMin()
This returns the current X-axis minimum value |
String |
getXAxisLabel()
|
boolean |
getXLog()
|
double |
getY_AxisMax()
This returns the current Y-axis maximum value |
double |
getY_AxisMin()
This returns the current Y-axis minimum value |
String |
getYAxisLabel()
|
boolean |
getYLog()
|
boolean |
isCustomAxis()
Whether this is custom axis |
static void |
main(String[] args)
|
void |
refreshPlot()
Plot Graph using preferences |
void |
saveAsPDF(String fileName)
|
void |
saveAsPNG(String fileName)
|
void |
setAllLineTypes(PlotLineType lineType,
PlotSymbol symbol)
|
void |
setAutoRange()
set the auto range for the axis. |
void |
setAxisLabelFontSize(int fontSize)
Set the axis label font size |
void |
setAxisRange(double xMin,
double xMax,
double yMin,
double yMax)
sets the range for X and Y axis |
void |
setPlotLabelFontSize(int fontSize)
Set plot label font size |
void |
setPlottingFeatures(ArrayList<PlotCurveCharacterstics> curveCharacteristics)
|
void |
setPlotTitle(String plotTitle)
Set plot Title |
void |
setTickLabelFontSize(int fontSize)
Set the tick label font size |
void |
setX_AxisLabel(String xAxisLabel)
|
void |
setX_AxisRange(double xMin,
double xMax)
sets the range for X axis |
void |
setXLog(boolean xLog)
|
void |
setY_AxisLabel(String yAxisLabel)
|
void |
setY_AxisRange(double yMin,
double yMax)
sets the range for Y axis |
void |
setYLog(boolean yLog)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GraphiWindowAPI_Impl(ArrayList funcs,
String plotTitle)
public GraphiWindowAPI_Impl(XY_DataSet func,
String plotTitle)
public GraphiWindowAPI_Impl(ArrayList funcs,
String plotTitle,
ArrayList<PlotCurveCharacterstics> plotChars)
public GraphiWindowAPI_Impl(ArrayList funcs,
String plotTitle,
ArrayList<PlotCurveCharacterstics> plotChars,
boolean setVisible)
public GraphiWindowAPI_Impl(PlotSpec plotSpec)
| Method Detail |
|---|
protected static ArrayList<PlotCurveCharacterstics> generateDefaultChars(List funcs)
public static List<Color> generateDefaultColors()
public void refreshPlot()
public void setPlotTitle(String plotTitle)
plotTitle - public String getPlotTitle()
public ArrayList getCurveFunctionList()
getCurveFunctionList in interface GraphWindowAPIpublic void setXLog(boolean xLog)
public void setYLog(boolean yLog)
public boolean getXLog()
getXLog in interface GraphWindowAPIpublic boolean getYLog()
getYLog in interface GraphWindowAPIpublic void setX_AxisLabel(String xAxisLabel)
public String getXAxisLabel()
getXAxisLabel in interface GraphWindowAPIpublic void setY_AxisLabel(String yAxisLabel)
public String getYAxisLabel()
getYAxisLabel in interface GraphWindowAPIpublic ArrayList getPlottingFeatures()
getPlottingFeatures in interface GraphWindowAPIpublic void setPlottingFeatures(ArrayList<PlotCurveCharacterstics> curveCharacteristics)
public void setAllLineTypes(PlotLineType lineType,
PlotSymbol symbol)
public void setAxisRange(double xMin,
double xMax,
double yMin,
double yMax)
xMin - : minimum value for X-axisxMax - : maximum value for X-axisyMin - : minimum value for Y-axisyMax - : maximum value for Y-axis
public void setX_AxisRange(double xMin,
double xMax)
xMin - : minimum value for X-axisxMax - : maximum value for X-axis
public void setY_AxisRange(double yMin,
double yMax)
yMin - : minimum value for Y-axisyMax - : maximum value for Y-axispublic boolean isCustomAxis()
isCustomAxis in interface GraphWindowAPIpublic void setAutoRange()
public double getUserMinX()
getUserMinX in interface GraphWindowAPIpublic double getUserMaxX()
getUserMaxX in interface GraphWindowAPIpublic double getUserMinY()
getUserMinY in interface GraphWindowAPIpublic double getUserMaxY()
getUserMaxY in interface GraphWindowAPIpublic double getY_AxisMin()
public double getY_AxisMax()
public double getX_AxisMin()
public double getX_AxisMax()
public void setPlotLabelFontSize(int fontSize)
fontSize - public void setTickLabelFontSize(int fontSize)
fontSize - public void setAxisLabelFontSize(int fontSize)
fontSize - public int getTickLabelFontSize()
public int getPlotLabelFontSize()
public static void main(String[] args)
public void saveAsPDF(String fileName)
throws IOException
IOException
public void saveAsPNG(String fileName)
throws IOException
IOExceptionpublic GraphWindow getGraphWindow()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||