Package hec.gfx2d
Class ViewportLayout
java.lang.Object
hec.gfx2d.ViewportLayout
Title: Hec Java Development
Description:
Copyright: Copyright (c) 2003
Company:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a data curve to either the Y1 or Y2 axis.voidaddCurve(String yaxis, Object data, G2dLineProperties properties) Adds a data curve to the X1 - Y1/Y2 axis.voidAdds a data curve to either the Y1 or Y2 axis.voidaddCurve(String xaxis, String yaxis, Object data, G2dLineProperties properties) Adds a data curve to either the X1/X2 Y1/Y2 axis.voidAdds a data curve to either the Y1 or Y2 axis.voidaddMarkerLine(String axis, double markerValue) voidaddMarkerLine(String axis, double markerValue, G2dMarkerProperties properties) voidaddMarkerPoint(G2dMarkerPointProperties markerProps) convertAxisType(int axis) Converts from hec.geometry.Axis int axis types to ViewportLayout String axis types.intconvertAxisType(String axis) getAxisLabel(String axis) getAxisName(String axis) getAxisType(String axis) double[][]Returns a reference to the rating function entered with the setRatingFunction() method.Returns the list of data on the Y1 axis for a given xAxis.getY1DataProperties(String xAxis) Returns the Y1 Data properties for all data tied to a given X-AxisReturns the list of data on the Y2 axis.getY2DataProperties(String xAxis) Returns the Y2 Data properties for all data tied to a given X-AxisbooleanbooleanbooleanbooleanisAxisReversed(String axis) booleanvoidsetAutoRatedAxis(boolean b) voidsetAxisLabel(String axis, String label) voidsetAxisName(String axis, String name) voidsetAxisReversed(String axis, boolean isReversed) voidsetAxisType(String axis, String type) Sets the type of axis to use, i.e.voidsetRatingFunction(double[] b1, double[] r1) voidsetViewportLegendVisible(boolean b)
-
Field Details
-
BASE_COLUMN
public static final int BASE_COLUMN- See Also:
-
RATED_COLUMN
public static final int RATED_COLUMN- See Also:
-
AXIS_TYPE_LINEAR
- See Also:
-
AXIS_TYPE_LOG
- See Also:
-
AXIS_TYPE_TIME
- See Also:
-
AXIS_TYPE_PROBABILITY
- See Also:
-
AXIS_TYPE_SEASONAL
- See Also:
-
Y1
- See Also:
-
Y2
- See Also:
-
X1
- See Also:
-
X2
- See Also:
-
-
Constructor Details
-
ViewportLayout
public ViewportLayout()
-
-
Method Details
-
setViewportLegendVisible
public void setViewportLegendVisible(boolean b) -
isViewportLegendVisible
public boolean isViewportLegendVisible() -
convertAxisType
-
convertAxisType
Converts from hec.geometry.Axis int axis types to ViewportLayout String axis types.- Parameters:
axis- An hec.geometry.Axis axis type- Returns:
- A ViewportLayout axis type
-
setAxisType
Sets the type of axis to use, i.e. Linear, Log, Time etc- Parameters:
axis- valid values are "X1", "X2", "Y1", "Y2". The are also defined by the constants X1, X2, Y1, Y2type- Sets the type of axis to use, valid values are AXIS_TYPE_LINEAR, AXIS_TYPE_LOG,AXIS_TYPE_TIME, AXIS_TYPE_PROBABILITY, AXIS_TYPE_SEASONAL
-
getAxisType
-
isAxisReversed
-
setAxisReversed
-
setAxisName
-
getAxisName
-
setAxisLabel
-
getAxisLabel
-
hasAutoRatedAxis
public boolean hasAutoRatedAxis() -
setAutoRatedAxis
public void setAutoRatedAxis(boolean b) -
setRatingFunction
public void setRatingFunction(double[] b1, double[] r1) -
getRatingFunction
public double[][] getRatingFunction()Returns a reference to the rating function entered with the setRatingFunction() method. Position 0 "[0][]" is the base column and position 1 [1][] is the rated column. -
hasY1Data
-
hasY2Data
-
addCurve
Adds a data curve to either the Y1 or Y2 axis. The data object must be of either type TimeSeriesContainer, PairedDataContainer, or G2dObject- Parameters:
axis- either "Y1" or "Y2"data- the data object to add
-
addCurve
Adds a data curve to the X1 - Y1/Y2 axis. The data object must be of either type TimeSeriesContainer, PairedDataContainer, or G2dObject- Parameters:
yaxis- either "Y1" or "Y2"data- the data object to addproperties- drawing properties for the data. Can be null. If null than default properties are used.
-
addCurve
Adds a data curve to either the X1/X2 Y1/Y2 axis. The data object must be of either type TimeSeriesContainer, PairedDataContainer, or G2dObject- Parameters:
xaxis- either "X1" or "X2"yaxis- either "Y1" or "Y2"data- the data object to addproperties- drawing properties for the data. Can be null. If null than default properties are used.
-
addCurve
Adds a data curve to either the Y1 or Y2 axis. The data object must be of either type TimeSeriesContainer, PairedDataContainer, or G2dObject- Parameters:
yaxis- either "Y1" or "Y2"data- the data object to addproperties- of drawing properties for the data. Can be null. If null than default properties are used.
-
addCurve
Adds a data curve to either the Y1 or Y2 axis. The data object must be of either type TimeSeriesContainer, PairedDataContainer, or G2dObject- Parameters:
xaxis- either "X1" or "X2"yaxis- either "Y1" or "Y2"data- the data object to addproperties- of drawing properties for the data. Can be null. If null than default properties are used.
-
getY1Data
Returns the list of data on the Y1 axis for a given xAxis. The data is guaranteed to be of type G2dObject- Parameters:
xAxis- valid values are"X1" or"X2" - Returns:
- returns a clone of the list.
-
getY1DataProperties
Returns the Y1 Data properties for all data tied to a given X-Axis- Parameters:
xAxis- valid values are"X1" or"X2"
-
getY2Data
Returns the list of data on the Y2 axis. The data is guaranteed to be of type G2dObject- Parameters:
xAxis- valid values are"X1" or"X2" - Returns:
- returns a clone of the list.
-
getY2DataProperties
Returns the Y2 Data properties for all data tied to a given X-Axis- Parameters:
xAxis- valid values are"X1" or"X2"
-
addMarkerLine
-
addMarkerLine
- Parameters:
axis-markerValue-properties-
-
getY1MarkerLines
- Returns:
-
getY1MarklineProps
-
getX1MarkerLines
- Returns:
-
getX1MarklineProps
-
addMarkerPoint
- Parameters:
markerProps-
-
getMarkerPoints
-
getViewportLayers
- Returns:
-
addViewportTextLayer
-