org.jmol.jcamp
Class GraphCharacteristics

java.lang.Object
  extended by org.jmol.jcamp.GraphCharacteristics

public class GraphCharacteristics
extends java.lang.Object


Field Summary
private  java.lang.String _allIntegrationValues
           
private  java.lang.String _axisColor
           
private  java.lang.String _axisTextColor
           
private  java.text.DecimalFormat _decForm
           
private  java.lang.String _graphCurveColor
           
private  boolean _grid
           
private  boolean _integrate
           
private  java.lang.String _integrateCurveColor
           
private  java.lang.String _integrateTextColor
           
private  java.util.Hashtable _integrationValues
           
private  java.lang.String _lastPoint
           
private  boolean _reverse
           
private  java.lang.String _textColor
           
private  java.util.ArrayList _unsortedIntegrationValues
           
private  boolean _zoomIn
           
private static java.lang.String INTEGRATION_DELIM
           
private static java.lang.String INTEGRATION_VALUES_DELIM
           
private static int MAX_DECIMALS
           
 
Constructor Summary
GraphCharacteristics()
           
GraphCharacteristics(boolean zoomIn, boolean integrate, boolean grid, boolean reverse, java.lang.String allIntegrationValues, java.lang.String axisColor, java.lang.String axisTextColor, java.lang.String integrateCurveColor, java.lang.String graphCurveColor, java.lang.String textColor, java.lang.String integrateTextColor)
           
 
Method Summary
 java.lang.String getAxisColor()
           
 java.lang.String getAxisTextColor()
           
 java.lang.String getGraphCurveColor()
           
 boolean getGrid()
           
 boolean getIntegrate()
           
 java.lang.String getIntegrateCurveColor()
           
 java.lang.String getIntegrateTextColor()
           
 java.lang.String getIntegrationCurveAreaValue(java.lang.Double point)
           
 boolean getReverse()
           
 java.lang.String getTextColor()
           
 boolean getZoomIn()
           
private  java.lang.String isIntegrationCurvePoint(java.lang.Double point)
           
 void setAxisColor(java.lang.String axisColor)
          Setter and Getter methods for the 'Axis Color' option
 void setAxisTextColor(java.lang.String axisTextColor)
          Setter and Getter methods for the 'Axis Text Color' option
 void setGraphCurveColor(java.lang.String graphCurveColor)
          Setter and Getter methods for the 'Graph Curve Color' option
 void setGrid(boolean grid)
          Setter and Getter methods for the 'Grid' option
 void setIntegrate(boolean integrate)
          Setter and Getter methods for the 'Integrate' option
 void setIntegrateCurveColor(java.lang.String integrateCurveColor)
          Setter and Getter methods for the 'Integrate Curve Color' option
 void setIntegrateTextColor(java.lang.String integrateTextColor)
           
 void setIntegrationValues()
          Setter and Getter methods for the 'Integration Values' option
 void setIntegrationValues(java.util.ArrayList unsortedIntegrationValues)
          Method to create a HashTable of integration curve area relationship to the concerned points
 void setReverse(boolean reverse)
          Setter and Getter methods for the 'Reverse' option
 void setTextColor(java.lang.String textColor)
          Setter and Getter methods for the 'Graph Text Color' option
 void setUnsortedIntegrationValues(java.lang.String unsortedIntegrationValues)
          Method to split and create an ArrayList of Integration relationship values
 void setZoomIn(boolean zoomIn)
          Setter and Getter methods for the 'Zoom In' option
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INTEGRATION_VALUES_DELIM

private static final java.lang.String INTEGRATION_VALUES_DELIM
See Also:
Constant Field Values

INTEGRATION_DELIM

private static final java.lang.String INTEGRATION_DELIM
See Also:
Constant Field Values

MAX_DECIMALS

private static final int MAX_DECIMALS
See Also:
Constant Field Values

_zoomIn

private boolean _zoomIn

_integrate

private boolean _integrate

_grid

private boolean _grid

_reverse

private boolean _reverse

_allIntegrationValues

private java.lang.String _allIntegrationValues

_integrationValues

private java.util.Hashtable _integrationValues

_unsortedIntegrationValues

private java.util.ArrayList _unsortedIntegrationValues

_textColor

private java.lang.String _textColor

_axisColor

private java.lang.String _axisColor

_axisTextColor

private java.lang.String _axisTextColor

_integrateCurveColor

private java.lang.String _integrateCurveColor

_integrateTextColor

private java.lang.String _integrateTextColor

_graphCurveColor

private java.lang.String _graphCurveColor

_decForm

private java.text.DecimalFormat _decForm

_lastPoint

private java.lang.String _lastPoint
Constructor Detail

GraphCharacteristics

public GraphCharacteristics()

GraphCharacteristics

public GraphCharacteristics(boolean zoomIn,
                            boolean integrate,
                            boolean grid,
                            boolean reverse,
                            java.lang.String allIntegrationValues,
                            java.lang.String axisColor,
                            java.lang.String axisTextColor,
                            java.lang.String integrateCurveColor,
                            java.lang.String graphCurveColor,
                            java.lang.String textColor,
                            java.lang.String integrateTextColor)
Method Detail

setIntegrationValues

public void setIntegrationValues(java.util.ArrayList unsortedIntegrationValues)
Method to create a HashTable of integration curve area relationship to the concerned points


setUnsortedIntegrationValues

public void setUnsortedIntegrationValues(java.lang.String unsortedIntegrationValues)
Method to split and create an ArrayList of Integration relationship values


isIntegrationCurvePoint

private java.lang.String isIntegrationCurvePoint(java.lang.Double point)

getIntegrationCurveAreaValue

public java.lang.String getIntegrationCurveAreaValue(java.lang.Double point)

setZoomIn

public void setZoomIn(boolean zoomIn)
Setter and Getter methods for the 'Zoom In' option


getZoomIn

public boolean getZoomIn()

setGrid

public void setGrid(boolean grid)
Setter and Getter methods for the 'Grid' option


getGrid

public boolean getGrid()

setIntegrate

public void setIntegrate(boolean integrate)
Setter and Getter methods for the 'Integrate' option


getIntegrate

public boolean getIntegrate()

setReverse

public void setReverse(boolean reverse)
Setter and Getter methods for the 'Reverse' option


getReverse

public boolean getReverse()

setIntegrationValues

public void setIntegrationValues()
Setter and Getter methods for the 'Integration Values' option


setAxisColor

public void setAxisColor(java.lang.String axisColor)
Setter and Getter methods for the 'Axis Color' option


getAxisColor

public java.lang.String getAxisColor()

setAxisTextColor

public void setAxisTextColor(java.lang.String axisTextColor)
Setter and Getter methods for the 'Axis Text Color' option


getAxisTextColor

public java.lang.String getAxisTextColor()

setIntegrateCurveColor

public void setIntegrateCurveColor(java.lang.String integrateCurveColor)
Setter and Getter methods for the 'Integrate Curve Color' option


getIntegrateCurveColor

public java.lang.String getIntegrateCurveColor()

setGraphCurveColor

public void setGraphCurveColor(java.lang.String graphCurveColor)
Setter and Getter methods for the 'Graph Curve Color' option


getGraphCurveColor

public java.lang.String getGraphCurveColor()

setTextColor

public void setTextColor(java.lang.String textColor)
Setter and Getter methods for the 'Graph Text Color' option


getTextColor

public java.lang.String getTextColor()

setIntegrateTextColor

public void setIntegrateTextColor(java.lang.String integrateTextColor)

getIntegrateTextColor

public java.lang.String getIntegrateTextColor()