|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.display.axes.AbstractAxes
public abstract class AbstractAxes
An abstract class for axes that defines font and title accessor methods.
Copyright (c) 2006
Constructor Summary | |
---|---|
AbstractAxes(DrawingPanel drawingPanel)
Creates axes that will display themselves within the given drawing panel. |
Method Summary | |
---|---|
java.awt.Color |
getInteriorBackground()
Gets the color of the interior of the axes. |
java.lang.String |
getTitle()
Gets the title. |
boolean |
isVisible()
Gets the visibility of the axes. |
void |
resetPanelGutters()
|
void |
resizeFonts(double factor,
DrawingPanel panel)
Resizes fonts by the specified factor. |
void |
setDefaultGutters(int left,
int top,
int right,
int bottom)
Sets gutters that give the best appearance. |
void |
setInteriorBackground(java.awt.Color color)
Sets the interior background color. |
void |
setTitle(java.lang.String s,
java.lang.String font_name)
Set a title that will be drawn within the drawing panel. |
void |
setVisible(boolean isVisible)
Sets the visibility of the axes. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.opensourcephysics.display.axes.DrawableAxes |
---|
getXLabel, getYLabel, setShowMajorXGrid, setShowMajorYGrid, setShowMinorXGrid, setShowMinorYGrid, setXLabel, setYLabel |
Methods inherited from interface org.opensourcephysics.display.Drawable |
---|
draw |
Constructor Detail |
---|
public AbstractAxes(DrawingPanel drawingPanel)
drawingPanel
- DrawingPanelMethod Detail |
---|
public void setDefaultGutters(int left, int top, int right, int bottom)
left
- top
- right
- bottom
- public void resetPanelGutters()
public void setVisible(boolean isVisible)
setVisible
in interface DrawableAxes
isVisible
- true if the axes are visiblepublic boolean isVisible()
public void setInteriorBackground(java.awt.Color color)
setInteriorBackground
in interface DrawableAxes
color
- The new interiorBackground valuepublic java.awt.Color getInteriorBackground()
getInteriorBackground
in interface DrawableAxes
public void resizeFonts(double factor, DrawingPanel panel)
resizeFonts
in interface DrawableAxes
factor
- the factorpanel
- the drawing panel on which these axes are drawnpublic java.lang.String getTitle()
getTitle
in interface DrawableAxes
public void setTitle(java.lang.String s, java.lang.String font_name)
setTitle
in interface DrawableAxes
s
- the labelfont_name
- an optional font name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |