Package hec.gfx2d.swing.charts.data
Class ChartItemRenderControls
java.lang.Object
hec.gfx2d.swing.charts.data.ChartItemRenderControls
- All Implemented Interfaces:
PropertyFireable
- Direct Known Subclasses:
PieSliceRenderControls
Copyright (C) 2017 Hydrologic Engineering Center,
United States Army Corps of Engineers, All Rights Reserved
HEC-Java NEXGEN
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(ChartItemRenderControls copy) voidtriggers the parent controls to fire the default updatevoidfireUpdate(String propertyName, Object oldVal, Object newVal) triggers to fire the given updategets the chart parent controls for the item render controlsbooleanbooleanbooleanbooleanvoidsetLabelColor(Color labelColor) voidsetLabelFont(Font labelFont) voidsetLabelFormat(String labelFormat) voidsetParentControls(ChartRenderControls parent) sets the chart parent controls for the item render controlsvoidsetShowLabel(boolean showLabel) voidsetShowThresholds(boolean showThresholds) voidsetShowValue(boolean showValue) voidsetThresholds(List<Threshold> thresholds) voidsetVisible(boolean visible)
-
Field Details
-
PROPERTY_VISIBLE
- See Also:
-
PROPERTY_LABEL_FONT
- See Also:
-
PROPERTY_LABEL_FORMAT
- See Also:
-
PROPERTY_LABEL_COLOR
- See Also:
-
PROPERTY_SHOW_LABEL
- See Also:
-
PROPERTY_SHOW_VALUE
- See Also:
-
PROPERTY_SHOW_THRESHOLDS
- See Also:
-
PROPERTY_THRESHOLDS
- See Also:
-
PROPERTY_UPDATE
- See Also:
-
-
Constructor Details
-
ChartItemRenderControls
public ChartItemRenderControls()
-
-
Method Details
-
copy
-
getParentControls
gets the chart parent controls for the item render controls- Returns:
- the set of parent controls for this item
-
setParentControls
sets the chart parent controls for the item render controls- Parameters:
parent- the chart controls to establish as "owning" this set of item controls
-
isVisible
public boolean isVisible()- Returns:
- the visibility state of the item
-
setVisible
public void setVisible(boolean visible) - Parameters:
visible- the new visibility state to set
-
getLabelFont
- Returns:
- the font for the label
-
setLabelFont
- Parameters:
labelFont- the font to set for the label
-
getLabelFormat
- Returns:
- the format string of the label
-
setLabelFormat
- Parameters:
labelFormat- the new format string for the label
-
getLabelColor
- Returns:
- the color of the label text
-
setLabelColor
- Parameters:
labelColor- the new color for the label text
-
isShowLabel
public boolean isShowLabel()- Returns:
- the visibility state of this item's label
-
setShowLabel
public void setShowLabel(boolean showLabel) - Parameters:
showLabel- the new visibility state for this item's label
-
isShowValue
public boolean isShowValue()- Returns:
- the visibility state for this item's exact value display
-
setShowValue
public void setShowValue(boolean showValue) - Parameters:
showValue- the visibility state to set for this item's exact value display
-
isShowThresholds
public boolean isShowThresholds()- Returns:
- the visibility state for this item's thresholds as a whole
-
setShowThresholds
public void setShowThresholds(boolean showThresholds) - Parameters:
showThresholds- the new visibility state for this item's thresholds
-
getThresholds
- Returns:
- the list of thresholds associated with this item
-
setThresholds
- Parameters:
thresholds- the new list of thresholds to link to this item
-
fireUpdate
Description copied from interface:PropertyFireabletriggers to fire the given update- Specified by:
fireUpdatein interfacePropertyFireable- Parameters:
propertyName- the name of the propertyoldVal- the value of the object before the changenewVal- the value of the object after the change
-
fireUpdate
public void fireUpdate()Description copied from interface:PropertyFireabletriggers the parent controls to fire the default update- Specified by:
fireUpdatein interfacePropertyFireable
-