|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.mainGUI.objects.GUI_InfoManager
public class GUI_InfoManager
This class manages the information needed by the main CUENCAS GUI created by ParentGUI
| Field Summary | |
|---|---|
boolean |
dataBaseDocumentationExists
This boolean inticates if the database directory contains the Documentation subdirectory |
java.io.File |
dataBaseDocumentationPath
The path to the Documentation subdirectory in the database |
boolean |
dataBaseExists
This boolean inticates if a database directory is available |
boolean |
dataBaseLinesExists
This boolean inticates if the database directory contains the Lines subdirectory |
java.io.File |
dataBaseLinesPath
The path to the Lines subdirectory in the database |
boolean |
dataBaseLogoExists
This boolean inticates if the database directory contains the logo.jpg file. |
java.io.File |
dataBaseLogoPath
The path to the logo.jpg in the database |
java.lang.String |
dataBaseName
The path to the name.txt file in the database |
boolean |
dataBaseNameExists
This boolean inticates if the database directory contains the name.txt file. |
java.io.File |
dataBaseNamePath
The path to the name.txt file in the database |
java.io.File |
dataBasePath
The path to the database directory |
boolean |
dataBasePolygonsExists
This boolean inticates if the database directory contains the Polygons subdirectory |
java.io.File |
dataBasePolygonsPath
The path to the Polygons subdirectory in the database |
boolean |
dataBaseRastersDemExists
This boolean inticates if the database directory contains the Rasters/Topography subdirectory |
java.io.File |
dataBaseRastersDemPath
The path to the Rasters/Topography subdirectory in the database |
boolean |
dataBaseRastersHydExists
This boolean inticates if the database directory contains the Rasters/Hydrology subdirectory |
java.io.File |
dataBaseRastersHydPath
The path to the Rasters/Hydrology subdirectory in the database |
boolean |
dataBaseSitesGaugesExists
This boolean inticates if the database directory contains the Sites/Gauges subdirectory |
java.io.File |
dataBaseSitesGaugesPath
The path to the Sites/Gauges subdirectory in the database |
boolean |
dataBaseSitesLocationsExists
This boolean inticates if the database directory contains the Sites/Locations subdirectory |
java.io.File |
dataBaseSitesLocationsPath
The path to the Sites/Locations subdirectory in the database |
boolean |
dataBaseVectorsExists
This boolean inticates if the database directory contains the Vectors subdirectory |
java.io.File |
dataBaseVectorsPath
The path to the Vectors subdirectory in the database |
int |
gui_Xpos
The initial horizontal position for the CUENCAS GUI |
int |
gui_Xsize
The initial horizontal size for the CUENCAS GUI |
int |
gui_Ypos
The initial vertical position for the CUENCAS GUI |
int |
gui_Ysize
The initial vertical size for the CUENCAS GUI |
java.lang.String |
language
The language of the GUI (Currently only English has been implemented) |
java.io.File |
metaFileActive
The path to the active metaFile (Used by GUI tools) |
java.util.Vector |
recentCalcMaps
A Vector containing the list of files recently created by the
user using the MapCalculator |
java.util.Vector |
recentDataBases
A Vector containing the list of database directories recently
opened by the user |
java.util.Vector |
recentFiles
A Vector containing the list of files recently opened by the
user |
| Constructor Summary | |
|---|---|
GUI_InfoManager()
Creates a new instance of GUI_InfoManager |
|
GUI_InfoManager(java.io.File predifined)
Creates a new instance of GUI_InfoManager |
|
| Method Summary | |
|---|---|
void |
assignProperty(java.lang.String tag)
Assigns the value of a property |
void |
assignProperty(java.lang.String tag,
java.io.BufferedReader buffer)
Assigns the value of a property using information contained in a file |
void |
checkDataBase()
Checks the directory structure of the CUENCAS database directory to determine if it follows the guidelines established. |
visad.DataReferenceImpl |
getDataReference(java.lang.String refName)
Returns the visad.DataReferenceImpl associated to a given name from a list of global references. |
float[] |
getNetworkBlue()
Return the array of intensities of blue color (RGB) for the river Network. |
float[] |
getNetworkGreen()
Return the array of intensities of green color (RGB) for the river Network. |
float[] |
getNetworkRed()
Return the array of intensities of red color (RGB) for the river Network. |
static void |
main(java.lang.String[] args)
Test for the class |
void |
registerDataReference(java.lang.String refName,
visad.DataReferenceImpl theRef)
Add a reference to the list of global references. |
void |
setBounds(java.awt.Rectangle newBounds)
Assigns the frame location and size properties |
void |
writePreferences()
Writes File of preferences including list of recently openned files and databases |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int gui_Xpos
public int gui_Ypos
public int gui_Xsize
public int gui_Ysize
public java.lang.String language
public java.util.Vector recentFiles
Vector containing the list of files recently opened by the
user
public java.util.Vector recentDataBases
Vector containing the list of database directories recently
opened by the user
public java.util.Vector recentCalcMaps
Vector containing the list of files recently created by the
user using the MapCalculator
public boolean dataBaseExists
public boolean dataBaseRastersDemExists
public boolean dataBaseRastersHydExists
public boolean dataBaseVectorsExists
public boolean dataBasePolygonsExists
public boolean dataBaseLinesExists
public boolean dataBaseSitesGaugesExists
public boolean dataBaseSitesLocationsExists
public boolean dataBaseDocumentationExists
public boolean dataBaseLogoExists
public boolean dataBaseNameExists
public java.io.File dataBasePath
public java.io.File dataBaseRastersDemPath
public java.io.File dataBaseRastersHydPath
public java.io.File dataBaseVectorsPath
public java.io.File dataBasePolygonsPath
public java.io.File dataBaseLinesPath
public java.io.File dataBaseSitesGaugesPath
public java.io.File dataBaseSitesLocationsPath
public java.io.File dataBaseDocumentationPath
public java.io.File dataBaseLogoPath
public java.io.File dataBaseNamePath
public java.io.File metaFileActive
public java.lang.String dataBaseName
| Constructor Detail |
|---|
public GUI_InfoManager(java.io.File predifined)
predifined - The path to a pre-existing .cuencas.ini filepublic GUI_InfoManager()
| Method Detail |
|---|
public void assignProperty(java.lang.String tag)
tag - The tag of the property to be assigned
public void assignProperty(java.lang.String tag,
java.io.BufferedReader buffer)
throws java.io.IOException
tag - The tag of the property to be assignedbuffer - The file where the property value resides
java.io.IOException - Captures errors while reading from the filepublic void checkDataBase()
public void setBounds(java.awt.Rectangle newBounds)
newBounds - A Rectangle containing the properties of the interface framepublic visad.DataReferenceImpl getDataReference(java.lang.String refName)
refName - The name of the desired reference
public float[] getNetworkRed()
public float[] getNetworkGreen()
public float[] getNetworkBlue()
public void registerDataReference(java.lang.String refName,
visad.DataReferenceImpl theRef)
refName - A name for the referencetheRef - The visad.DataReferenceImplpublic void writePreferences()
public static void main(java.lang.String[] args)
args - the command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.