|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
org.opensha.sha.magdist.gui.MagFreqDistTesterApplet
public class MagFreqDistTesterApplet
Title: MagFreqDistTesterApplet
Description:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JApplet |
|---|
JApplet.AccessibleJApplet |
| Nested classes/interfaces inherited from class java.applet.Applet |
|---|
Applet.AccessibleApplet |
| Nested classes/interfaces inherited from class java.awt.Panel |
|---|
Panel.AccessibleAWTPanel |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected static int |
A1
|
protected static int |
A2
|
protected static Font |
BUTTON_FONT
|
protected static String |
C
|
protected boolean |
cumCustomAxis
|
String |
currentMagDistName
Used to determine if should switch to new MagDist, and for display purposes |
protected static boolean |
D
|
protected JFrame |
frame
|
protected boolean |
graphOn
|
protected static int |
H
|
protected boolean |
incrCustomAxis
|
protected boolean |
inParameterChangeWarning
|
protected String |
legend
|
protected float |
maxXValue
|
protected float |
maxYValue
|
protected float |
minXValue
these four values save the custom axis scale specified by user |
protected float |
minYValue
|
protected boolean |
moCustomAxis
|
protected static int |
W
|
| Fields inherited from class javax.swing.JApplet |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
MagFreqDistTesterApplet()
Construct the applet |
|
| Method Summary | |
|---|---|
protected void |
addButton()
This causes the model data to be calculated and a plot trace added to the current plot |
protected void |
addGraphPanel()
Adds a feature to the GraphPanel attribute of the IMRTesterApplet object |
String |
getAppletInfo()
Get Applet information |
String |
getCurrentMagDistName()
Gets the currentMagDistName attribute of the MagFreqDistTesterApplet object |
void |
init()
Initialize the applet |
protected void |
initMagDistGui()
THis must be called before the Mag Dist is used. |
void |
itemStateChanged(ItemEvent e)
Description of the Method |
static void |
main(String[] args)
Main method |
void |
setFrame(JFrame newFrame)
Sets the frame attribute of the IMRTesterApplet object |
void |
setXRange(double xIncrMin,
double xIncrMax,
double xCumMin,
double xCumMax,
double xMoMin,
double xMoMax)
sets the range for X-axis |
void |
setYRange(double yIncrMin,
double yIncrMax,
double yCumMin,
double yCumMax,
double yMoMin,
double yMoMax)
sets the range for Y-axis |
protected void |
togglePlot()
Description of the Method |
| Methods inherited from class javax.swing.JApplet |
|---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update |
| Methods inherited from class java.applet.Applet |
|---|
destroy, getAppletContext, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
| Methods inherited from class java.awt.Panel |
|---|
addNotify |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final String C
protected static final boolean D
protected float minXValue
protected float maxXValue
protected float minYValue
protected float maxYValue
protected boolean incrCustomAxis
protected boolean cumCustomAxis
protected boolean moCustomAxis
protected String legend
protected static final int W
protected static final int H
protected static final int A1
protected static final int A2
protected static final Font BUTTON_FONT
public String currentMagDistName
protected boolean inParameterChangeWarning
protected JFrame frame
protected boolean graphOn
| Constructor Detail |
|---|
public MagFreqDistTesterApplet()
| Method Detail |
|---|
public void init()
init in class Appletpublic void setFrame(JFrame newFrame)
newFrame - The new frame valuepublic static void main(String[] args)
args - The command line argumentsprotected void initMagDistGui()
public void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenere - Description of the Parameterpublic String getCurrentMagDistName()
public String getAppletInfo()
getAppletInfo in class Appletprotected void addButton()
e - The feature to be added to the Button_mouseClicked attributeprotected void addGraphPanel()
protected void togglePlot()
public void setXRange(double xIncrMin,
double xIncrMax,
double xCumMin,
double xCumMax,
double xMoMin,
double xMoMax)
xMin - : minimum value for X-axisxMax - : maximum value for X-axis
public void setYRange(double yIncrMin,
double yIncrMax,
double yCumMin,
double yCumMax,
double yMoMin,
double yMoMax)
yMin - : minimum value for Y-axisyMax - : maximum value for Y-axis
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||