|
|||||||||
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 javax.swing.JDialog jwo.utils.gui.JWDialogue jwo.landserf.gui.ShadeReliefBox
public class ShadeReliefBox
Creates a dialogue box for setting shaded relief parameters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class jwo.utils.gui.JWDialogue |
---|
DIALOGUE, MONOLOGUE |
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ShadeReliefBox(GISFrame gisFrame,
float azim,
float alt,
float pShade,
float zScale,
float aspectWeight,
float ambient,
float diffuse,
float specular,
float shine)
Creates the dialogue box for parameter entry. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Responds to a button press by showing or removing advanced options. |
float |
getAlt()
Returns the currently selected sun elevation angle (radians). |
float |
getAmbient()
Returns the ambient light component. |
float |
getAspectWeight()
Returns the currently selected aspect bias. |
float |
getAzim()
Returns the currently selected sun azimuth angle (radians). |
float |
getDiffuse()
Returns the diffuse light component. |
float |
getPShade()
Returns the currently selected proportion of shaded relief scaled between 0 (no shading) and 1 (monochrome shaded relief). |
float |
getShadeExaggeration()
Returns the currently vertical exaggeration used for calculating relief. |
float |
getShine()
Returns the currently selected shine value. |
float |
getSpecular()
Returns the specular light component. |
void |
stateChanged(ChangeEvent e)
Responds to a change in a slider by updating thumbnail. |
Methods inherited from class jwo.utils.gui.JWDialogue |
---|
addDialogueListener, checkInput, closedown, getContentPane, isChanged, removeDialogueListener, setFullBackground |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ShadeReliefBox(GISFrame gisFrame, float azim, float alt, float pShade, float zScale, float aspectWeight, float ambient, float diffuse, float specular, float shine)
gisFrame
- GUI that requested this dialogue.azim
- Initial sun azimuth angle (radians).alt
- Initial sun elevation angle (radians).pShade
- Initial proportion shaded relief scaled between 0 and 1.zScale
- Initial vertical exaggeration factor.aspectWeight
- Extra weighting to give to aspect (used to highlight local detail).ambient
- Ambient light component scaled between 0 and 1.diffuse
- Diffuse light component scaled between 0 and 1.specular
- Specular light component scaled between 0 and 1.shine
- Shininess value scaled between 0 (matt) and 1 (polished metal).Method Detail |
---|
public float getAzim()
public float getAlt()
public float getPShade()
public float getShadeExaggeration()
public float getAspectWeight()
public float getShine()
public float getDiffuse()
public float getSpecular()
public float getAmbient()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- Action event representing button press.public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
e
- Slider change event.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |