Package hec.gfx2d
Class G2dPanelProp
java.lang.Object
hec.gfx2d.PlotProperties
hec.gfx2d.G2dPanelProp
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,Serializable
Drawing properties for glyphs.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
int
int
boolean
flag indicating that panel contains a titleboolean
flag indicating that panel contains a titleboolean
flag indicating that panel contains a toolbarcomponent insetsstatic int
static final String
static final String
legend properties objectstatic final String
static final String
static final String
static final String
vector of property objects describing plot component setsstatic int
static final String
static final String
title properties objectstatic final String
static final String
int
position of toolbar in the paneltoolbar properties objectstatic int
int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionDefault ConstructorCopy Constructorprotected
G2dPanelProp
(String cls) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getClone()
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.static String
boolean
boolean
boolean
int
static int
static String
getStringFromPosition
(int pos) int
int
static void
init()
static boolean
void
void
set
(G2dPanelProp dp) void
static void
setDefaults
(G2dPanelProp defaultProps) protected static void
setDefaults
(G2dPanelProp defaultProps, String cls) boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.void
sethasLegend
(boolean b) void
setHasTitle
(boolean b) void
sethasToolbar
(boolean b) void
void
setToolbarPosition
(int i) void
setViewportSpaceSize
(int i) static boolean
TODO: Insert description of the method here.....static boolean
writeDefaults
(BufferedWriter writer) protected static boolean
writeDefaults
(String cls, BufferedWriter writer) void
writeProperties
(BufferedWriter writer) Methods inherited from class hec.gfx2d.PlotProperties
dumpDefaults, getDefaultBoolean, getDefaultColor, getDefaultDouble, getDefaultFloat, getDefaultFloatArray, getDefaultFont, getDefaultInsets, getDefaultInt, getDefaultObject, getDefaults, getDefaultString, isDefault, isDefault, isDefault, isDefault, isDefault, isDefault, isDefault, isDefault, isDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setDefaults
-
Field Details
-
TOP
public static int TOP -
BOTTOM
public static int BOTTOM -
LEFT
public static int LEFT -
RIGHT
public static int RIGHT -
PANEL_BEGIN
- See Also:
-
PANEL_END
- See Also:
-
TOOLBAR_BEGIN
- See Also:
-
TOOLBAR_END
- See Also:
-
TITLE_BEGIN
- See Also:
-
TITLE_END
- See Also:
-
LEGEND_PANEL_BEGIN
- See Also:
-
LEGEND_PANEL_END
- See Also:
-
PLOT_BEGIN
- See Also:
-
PLOT_END
- See Also:
-
hasToolbar
public boolean hasToolbarflag indicating that panel contains a toolbar -
toolbarPosition
public int toolbarPositionposition of toolbar in the panel -
hasTitle
public boolean hasTitleflag indicating that panel contains a title -
hasLegend
public boolean hasLegendflag indicating that panel contains a title -
insets
component insets -
backgroundColor
-
viewportSpaceSize
public int viewportSpaceSize -
dialogWidth
public int dialogWidth -
dialogHeight
public int dialogHeight -
plotPropVector
vector of property objects describing plot component sets -
toolbarProp
toolbar properties object -
titleProp
title properties object -
legendProp
legend properties object -
accessoryPanelClass
-
-
Constructor Details
-
G2dPanelProp
public G2dPanelProp()Default Constructor -
G2dPanelProp
Copy Constructor -
G2dPanelProp
-
-
Method Details
-
init
public static void init() -
sethasToolbar
public void sethasToolbar(boolean b) -
setToolbarPosition
public void setToolbarPosition(int i) -
setHasTitle
public void setHasTitle(boolean b) -
sethasLegend
public void sethasLegend(boolean b) -
setInsets
-
setBackgroundColor
-
setViewportSpaceSize
public void setViewportSpaceSize(int i) -
gethasToolbar
public boolean gethasToolbar() -
getToolbarPosition
public int getToolbarPosition() -
getHasTitle
public boolean getHasTitle() -
gethasLegend
public boolean gethasLegend() -
getInsets
-
getBackgroundColor
-
getViewportSpaceSize
public int getViewportSpaceSize() -
writeProperties
-
writeDefaults
public static boolean writeDefaults()TODO: Insert description of the method here.....- Returns:
-
writeDefaults
-
writeDefaults
-
setDefaults
-
setDefaults
-
readProperties
-
getClone
-
set
-
addPlotProp
-
clearPlotProp
public void clearPlotProp() -
getPlotCount
public int getPlotCount() -
plotElements
-
getFileName
-
getFieldObject
Description copied from interface:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The java field object representing the member field to be setfobj
- The data to set in that field- Returns:
- returns true if successful
-
loadDefaults
-
getPositionFromString
-
getStringFromPosition
-