public class CartesianType3 extends AbstractAxes implements CartesianAxes, Interactive
defaultBottomGutter, defaultLeftGutter, defaultRightGutter, defaultTopGutter, drawingPanel, gridcolor, interiorColor, labelFont, labelFormat, superscriptFont, titleFont, titleLine, visible| Constructor and Description |
|---|
CartesianType3(PlottingPanel panel)
Constructs the XYAxes inside the drawing panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
centerAxes(DrawingPanel panel) |
void |
draw(DrawingPanel panel,
java.awt.Graphics g)
Draws the axes in the drawing panel.
|
Interactive |
findInteractive(DrawingPanel panel,
int xpix,
int ypix) |
java.lang.String |
getTitle()
Gets the title.
|
double |
getX()
Gets the drawing location.
|
java.lang.String |
getXLabel()
Gets the x axis label.
|
double |
getXMax()
Gets the maximum x needed to draw this object.
|
double |
getXMin()
Gets the minimum x needed to draw this object.
|
double |
getY()
Gets the drawing location.
|
java.lang.String |
getYLabel()
Gets the y axis label.
|
double |
getYMax()
Gets the maximum y needed to draw this object.
|
double |
getYMin()
Gets the minimum y needed to draw this object.
|
boolean |
isEnabled() |
boolean |
isMeasured()
Determines if information is available to set min/max values.
|
boolean |
isXLog()
Determines if the x axis is logarithmic.
|
boolean |
isYLog()
Deteermines if the y axis is logarithmic.
|
void |
setEnabled(boolean _enabled) |
void |
setInteriorBackground(java.awt.Color color)
Sets the interior background color.
|
void |
setShowMajorXGrid(boolean showGrid)
Shows a grid line for every x axis major tickmark.
|
void |
setShowMajorYGrid(boolean showGrid)
Shows a grid line for every y axis major tickmark.
|
void |
setShowMinorXGrid(boolean showGrid)
Shows a grid line for every x axis minor tickmark.
|
void |
setShowMinorYGrid(boolean showGrid)
Shows a grid line for every y axis minor tickmark.
|
void |
setTitle(java.lang.String s,
java.lang.String font_name)
Set a title that will be drawn within the drawing panel.
|
void |
setX(double x)
Sets the drawing location.
|
void |
setXLabel(java.lang.String s,
java.lang.String font_name)
Sets the x label of the axes.
|
void |
setXLog(boolean isLog)
Sets the x axis to linear or logarithmic.
|
void |
setXY(double x,
double y) |
void |
setY(double y)
Sets the drawing location.
|
void |
setYLabel(java.lang.String s,
java.lang.String font_name)
Sets the y label of the axes.
|
void |
setYLog(boolean isLog)
Sets the y axis to linear or logarithmic.
|
getInteriorBackground, isVisible, resetPanelGutters, resizeFonts, setDefaultGutters, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresizeFonts, setVisiblepublic CartesianType3(PlottingPanel panel)
panel - the drawing panel that will use the axespublic void setXLabel(java.lang.String s,
java.lang.String font_name)
setXLabel in interface DrawableAxess - the titlefont_name - an optional font namepublic void setYLabel(java.lang.String s,
java.lang.String font_name)
setYLabel in interface DrawableAxess - the titlefont_name - an optional font namepublic void setTitle(java.lang.String s,
java.lang.String font_name)
setTitle in interface DrawableAxessetTitle in class AbstractAxess - the titlefont_name - an optional font namepublic java.lang.String getXLabel()
getXLabel in interface DrawableAxespublic java.lang.String getYLabel()
getYLabel in interface DrawableAxespublic java.lang.String getTitle()
getTitle in interface DrawableAxesgetTitle in class AbstractAxespublic void setXLog(boolean isLog)
setXLog in interface CartesianAxesisLog - true for log scale; false otherwisepublic void setYLog(boolean isLog)
setYLog in interface CartesianAxesisLog - true for log scale; false otherwisepublic boolean isXLog()
CartesianAxesisXLog in interface CartesianAxespublic boolean isYLog()
CartesianAxesisYLog in interface CartesianAxespublic void draw(DrawingPanel panel, java.awt.Graphics g)
public void setInteriorBackground(java.awt.Color color)
setInteriorBackground in interface DrawableAxessetInteriorBackground in class AbstractAxescolor - The new interiorBackground valuepublic void setShowMajorXGrid(boolean showGrid)
setShowMajorXGrid in interface DrawableAxespublic void setShowMinorXGrid(boolean showGrid)
setShowMinorXGrid in interface DrawableAxespublic void setShowMajorYGrid(boolean showGrid)
setShowMajorYGrid in interface DrawableAxespublic void setShowMinorYGrid(boolean showGrid)
setShowMinorYGrid in interface DrawableAxespublic void centerAxes(DrawingPanel panel)
public void setEnabled(boolean _enabled)
setEnabled in interface Interactivepublic boolean isEnabled()
isEnabled in interface Interactivepublic void setXY(double x,
double y)
setXY in interface Interactivepublic void setX(double x)
CartesianAxessetX in interface CartesianAxessetX in interface Interactivepublic void setY(double y)
CartesianAxessetY in interface CartesianAxessetY in interface Interactivepublic double getX()
CartesianAxesgetX in interface CartesianAxesgetX in interface Interactivepublic double getY()
CartesianAxesgetY in interface CartesianAxesgetY in interface Interactivepublic double getXMin()
getXMin in interface Measurablepublic double getXMax()
getXMax in interface Measurablepublic double getYMin()
getYMin in interface Measurablepublic double getYMax()
getYMax in interface Measurablepublic boolean isMeasured()
isMeasured in interface Measurablepublic Interactive findInteractive(DrawingPanel panel, int xpix, int ypix)
findInteractive in interface Interactive