Package hec.rss.plugins.opsupport.model
Class OsiDataTypeFactory
java.lang.Object
hec.rss.plugins.opsupport.model.OsiDataTypeFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanprotected static Stringstatic final String[]Descriptionstatic final Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final OsiDataTypeDescriptionstatic final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor for the DataTypeFactory object -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataType(String parameter, String name, String dssType, boolean yAxisReversed, int numLines) Adds a feature to the DataType attribute of the DataTypeFactory classgetDataType(G2dObject obj) Gets the DataType attribute of the DataTypeFactory classGets the DataType attribute of the DataTypeFactory classgetDataType(String parameter, String location) getDataType(String parameter, String location, String type, boolean isInstanteous, boolean useDataTypeStyles) Get the OsiDataType based on parameter, location, and type.getDataType(mil.army.usace.hec.rmi.gfx2d.SimpleDSSData data) Gets the DataType attribute of the DataTypeFactory classGets the DataTypes attribute of the DataTypeFactory classgetDataTypes(List<OsiDataType> dcList) Gets the DataTypes attribute of the DataTypeFactory classgetExcessParameter(String parameter) static OsiDataTypeFactoryprotected BufferedReaderprotected BufferedWritergetLine(DataContainer dc) getLineProperties(G2dObject data, String paramOverride, boolean useDataTypeStyles) Line style properties for all other G2dObject data typessame asgetLineProperties(dc, true);getLineProperties(DataContainer dc, boolean useDataTypeStyles) same asgetLineProperties(dc,null,useDataTypeStyles)getLineProperties(DataContainer dc, String paramOverride, boolean useDataTypeStyles) Gets the LineProperties attribute of the DataTypeFactory classgetLineProperties(String parameter, String location) Get the line properties by DataType identified by parameter and locationgetLineProperties(String parameter, String location, String type, boolean isInstanteous, boolean useDataTypeStyles) getLineProperties(List dataContainers) same asgetLineProperties(dataContainers, true)getLineProperties(List dataContainers, boolean useDataTypeStyles) same asgetLineProperties(dataContainers, null, useDataTypeStyles)getLineProperties(List dataContainers, String paramOverride) getLineProperties(List dataContainers, String param, boolean useDataTypeStyles) getLineProperties(mil.army.usace.hec.rmi.gfx2d.SimpleDSSData data) same asgetLineProperties(data, true)getLineProperties(mil.army.usace.hec.rmi.gfx2d.SimpleDSSData data, boolean useDataTypeStyles) getLineProperties(mil.army.usace.hec.rmi.gfx2d.SimpleDSSData data, String paramOverride, boolean useDataTypeStyles) protected List<LocationIndex> protected List<LocationIndex> getMarkerProperties(String parameter, String location) getParameter(String parameter) protected Stringprotected static booleanisInstanteous(String type) protected booleanreadFile()Read the plot lines defaults from the Jars and then updates with user defined defaults stored in the "user.home" directory.protected booleanreadFile(BufferedReader reader, int loc) voidreset()Method Descriptionstatic voidsetDefaultPackage(String newPackage) set the default package to look for the default line styles.static voidsetFactory(OsiDataTypeFactory factory) static voidsetOverrideFile(String file) set where to look for the override file.booleanMethod Description
-
Field Details
-
UNDEFINED_DATA_TYPE
Description -
PLOT_LINES_FILE
- See Also:
-
DEFAULT_PACKAGE
-
INST_VAL
-
INST_CUM
-
PER_AVER
-
PER_CUM
-
EDITABLE_TS
- See Also:
-
REVISED_TS
- See Also:
-
SELECTED_DATA_PT
- See Also:
-
SELECTED_ROW
- See Also:
-
START_OF_FORECAST
- See Also:
-
VISIBLE_TABLE_RANGE
- See Also:
-
DSS_TYPES
Description -
_debug
protected static boolean _debug
-
-
Constructor Details
-
OsiDataTypeFactory
protected OsiDataTypeFactory()Constructor for the DataTypeFactory object
-
-
Method Details
-
getLinesLocationList
-
getMarkerLocationList
-
setFactory
-
getFactory
-
reset
public void reset()Method Description -
getLineProperties
same asgetLineProperties(dataContainers, true)- Parameters:
dataContainers- Description- Returns:
- The LineProperties value
-
getLineProperties
same asgetLineProperties(dataContainers, null, useDataTypeStyles)- Parameters:
useDataTypeStyles-dataContainer-- Returns:
-
getLineProperties
-
getLineProperties
- Parameters:
dataContainers- DescriptionuseDataTypeStyles- Description- Returns:
- The LineProperties value
-
getLineProperties
same asgetLineProperties(data, true)- Parameters:
data- Description- Returns:
- The LineProperties value
-
getLineProperties
public G2dLineProperties getLineProperties(mil.army.usace.hec.rmi.gfx2d.SimpleDSSData data, boolean useDataTypeStyles) - Parameters:
data- DescriptionuseDataTypeStyles- Description- Returns:
- The LineProperties value
-
getLineProperties
public G2dLineProperties getLineProperties(mil.army.usace.hec.rmi.gfx2d.SimpleDSSData data, String paramOverride, boolean useDataTypeStyles) - Parameters:
data-paramOverride-useDataTypeStyles-- Returns:
-
getLineProperties
public G2dLineProperties getLineProperties(G2dObject data, String paramOverride, boolean useDataTypeStyles) Line style properties for all other G2dObject data types- Parameters:
data-paramOverride-useDataTypeStyles-- Returns:
-
getLineProperties
same asgetLineProperties(dc, true);- Parameters:
dc- Description- Returns:
- The LineProperties value
-
getLineProperties
same asgetLineProperties(dc,null,useDataTypeStyles)- Parameters:
dc-useDataTypeStyles-- Returns:
-
getLineProperties
public G2dLineProperties getLineProperties(DataContainer dc, String paramOverride, boolean useDataTypeStyles) Gets the LineProperties attribute of the DataTypeFactory class- Parameters:
dc- DescriptionuseDataTypeStyles- Description- Returns:
- The LineProperties value
-
getMarkerProperties
- Parameters:
string-startOfForecast-
-
getLineProperties
Get the line properties by DataType identified by parameter and location- Parameters:
parameter-location-- Returns:
-
getLineProperties
public G2dLineProperties getLineProperties(String parameter, String location, String type, boolean isInstanteous, boolean useDataTypeStyles) - Parameters:
parameter- Descriptionlocation- Descriptiontype- DescriptionisInstanteous- DescriptionuseDataTypeStyles- Description- Returns:
- The LineProperties value
-
getDataTypes
Gets the DataTypes attribute of the DataTypeFactory class- Returns:
- The DataTypes value
-
getDataTypes
Gets the DataTypes attribute of the DataTypeFactory class- Parameters:
dcList- Description- Returns:
- The DataTypes value
-
getDataType
-
getDataType
public OsiDataType getDataType(String parameter, String location, String type, boolean isInstanteous, boolean useDataTypeStyles) Get the OsiDataType based on parameter, location, and type.- Parameters:
parameter-location-type-isInstanteous-useDataTypeStyles-- Returns:
-
getDataType
Gets the DataType attribute of the DataTypeFactory class- Parameters:
obj- Description- Returns:
- The DataType value
-
getDataType
Gets the DataType attribute of the DataTypeFactory class- Parameters:
data- Description- Returns:
- The DataType value
-
getDataType
Gets the DataType attribute of the DataTypeFactory class- Parameters:
dc- Description- Returns:
- The DataType value
-
getLine
- Parameters:
dc- Description- Returns:
- The Line value
-
getParameter
- Parameters:
parameter- Description- Returns:
- The Parameter value
-
getType
- Parameters:
type- Description- Returns:
- The Type value
-
getExcessParameter
- Parameters:
parameter- Description- Returns:
- The ExcessParameter value
-
getFileReader
-
getFileWriter
-
writeFile
public boolean writeFile()Method Description- Returns:
- Description
-
getFileName
- Returns:
- The FileName value
-
readFile
protected boolean readFile()Read the plot lines defaults from the Jars and then updates with user defined defaults stored in the "user.home" directory.- Returns:
- true if successfull otherwise false.
-
readFile
- Parameters:
reader- Descriptionloc- Description- Returns:
- Description
-
addDataType
public void addDataType(String parameter, String name, String dssType, boolean yAxisReversed, int numLines) Adds a feature to the DataType attribute of the DataTypeFactory class- Parameters:
parameter- The feature to be added to the DataType attributename- The feature to be added to the DataType attributedssType- The feature to be added to the DataType attributeyAxisReversed- The feature to be added to the DataType attributenumLines- The feature to be added to the DataType attribute
-
isInstanteous
-
setDefaultPackage
set the default package to look for the default line styles. by default it looks in the hec/gfx2d/ package- Parameters:
newPackage- new package. with trailing slash, no leading slash
-
setOverrideFile
set where to look for the override file. This is the file the user creates when they edit the default line styles.- Parameters:
file- the new file location- See Also:
-