|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Dialog | +--jwo.utils.JWDialogue | +--jwo.landserf.gui.SampleBox
Creates a dialogue box for sampling raster cells Extends the generic JWDialogue class for simple interaction.
Nested Class Summary |
Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
static int |
ALL_CELLS
All cells selected in sample. |
static int |
RANDOM
Random sample. |
static int |
SYSTEMATIC
Systematic sample. |
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 | |
SampleBox(Frame parentFrame)
Creates the dialogue box for parameter selection. |
Method Summary | |
void |
checkActions(ActionEvent event)
Checks for mouse events (excluding return button presses). |
void |
checkInput()
Indicates that some changes have occurred to the paramater selection and closes window if they are valid. |
float |
getProportion()
Returns the currently selected sample proportion (0-1) for random sample, (1-n) for systematic sample, or -1 if no sampling selected. |
int |
getSampleType()
Returns type of sample selected (ALL_CELLS, SYSTEMATIC or RANDOM). |
void |
itemStateChanged(ItemEvent e)
Responds to a change in one of the checkboxes. |
Methods inherited from class jwo.utils.JWDialogue |
actionPerformed, add, addDialogueListener, addReturnButtons, closeDialogue, getGBConstraints, getGBLayout, isChanged, removeDialogueListener, setCancelAsDefault, setChanged, setOKAsDefault, updateListener |
Methods inherited from class java.awt.Dialog |
addNotify, dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int ALL_CELLS
public static final int SYSTEMATIC
public static final int RANDOM
Constructor Detail |
public SampleBox(Frame parentFrame)
parentFrame
- Frame that modal box is attached to.Method Detail |
public void checkActions(ActionEvent event)
checkActions
in class JWDialogue
event
- Action event to be processed.JWMonologue
public void checkInput()
checkInput
in class JWDialogue
public float getProportion()
public int getSampleType()
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |