|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DrawableAxes
DrawableAxes defines axes that render themselves in a drawing panel. Axes use the plotting panel's gutters, pixel scale, and affine transformation.
| Method Summary | |
|---|---|
java.awt.Color |
getInteriorBackground()
Gets the interior background color. |
java.lang.String |
getTitle()
Gets the x title. |
java.lang.String |
getXLabel()
Gets the x axis label. |
java.lang.String |
getYLabel()
Gets the y axis label. |
void |
resizeFonts(double factor,
DrawingPanel panel)
Resizes fonts by the specified factor. |
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)
Sets the title that will be drawn within the drawing panel. |
void |
setVisible(boolean isVisible)
Sets the visibility of the axes. |
void |
setXLabel(java.lang.String s,
java.lang.String font_name)
Sets the x label of the axes. |
void |
setYLabel(java.lang.String s,
java.lang.String font_name)
Sets the y label of the axes. |
| Methods inherited from interface org.opensourcephysics.display.Drawable |
|---|
draw |
| Method Detail |
|---|
void setXLabel(java.lang.String s,
java.lang.String font_name)
s - the labelfont_name - an optional font namejava.lang.String getXLabel()
void setYLabel(java.lang.String s,
java.lang.String font_name)
s - the labelfont_name - an optional font namejava.lang.String getYLabel()
void setTitle(java.lang.String s,
java.lang.String font_name)
s - the titlefont_name - an optional font namejava.lang.String getTitle()
void setVisible(boolean isVisible)
isVisible - true if the axes are visiblevoid setInteriorBackground(java.awt.Color color)
java.awt.Color getInteriorBackground()
void setShowMajorXGrid(boolean showGrid)
void setShowMinorXGrid(boolean showGrid)
void setShowMajorYGrid(boolean showGrid)
void setShowMinorYGrid(boolean showGrid)
void resizeFonts(double factor,
DrawingPanel panel)
factor - the factorpanel - the drawing panel on which these axes are drawn
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||