java.lang.Object
omix.lang.chart.util.ChartStyleElement
omix.lang.chart.util.ChartProperties
omix.lang.chart.util.BarChartProperties
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClusteredBarChartProperties
public class BarChartProperties extends ChartProperties
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BarChartProperties()
-
Method Summary
Modifier and Type Method Description BarChartProperties
clone()
Color
getBarOutlineColor()
StrokeStyle
getBarOutlineStyle()
double
getBarOutlineWidth()
double
getBase()
Returns the base value for the bars.double
getMaximumBarWidth()
double
getMinimumBarLength()
Color
getShadowColor()
double
getShadowXOffset()
double
getShadowYOffset()
boolean
isDrawBarOutline()
Returns a flag that controls whether or not bar outlines are drawn.boolean
isIncludeBaseInRange()
Returns the flag that controls whether or not the base value for the bars is included in the range.boolean
isShadowsVisible()
Returns the flag that controls whether or not shadows are drawn for the bars.void
set(ChartProperties chartProperties)
void
setBarOutlineColor(Color barOutlineColor)
void
setBarOutlineStyle(StrokeStyle barOutlineStyle)
void
setBarOutlineWidth(double barOutlineWidth)
void
setBase(double base)
Sets the base value for the bars.void
setDrawBarOutline(boolean drawBarOutline)
Sets the flag that controls whether or not bar outlines are drawn.void
setIncludeBaseInRange(boolean includeBaseInRange)
Sets the flag that controls whether or not the base value for the bars is included in the range.void
setMaximumBarWidth(double maximumBarWidth)
void
setMinimumBarLength(double minimumBarLength)
void
setShadowColor(Color shadowColor)
void
setShadowsVisible(boolean shadowsVisible)
Sets the flag that controls whether or not shadows are drawn by the renderer.void
setShadowXOffset(double shadowXOffset)
void
setShadowYOffset(double shadowYOffset)
Methods inherited from class omix.lang.chart.util.ChartStyleElement
addPropertyChangeListener, propertyChange, removePropertyChangeListener
-
Constructor Details
-
BarChartProperties
public BarChartProperties()
-
-
Method Details
-
set
- Overrides:
set
in classChartProperties
-
clone
- Specified by:
clone
in classChartProperties
-
isDrawBarOutline
public boolean isDrawBarOutline()Returns a flag that controls whether or not bar outlines are drawn.- Returns:
- A boolean.
- See Also:
setDrawBarOutline(boolean)
-
setDrawBarOutline
public void setDrawBarOutline(boolean drawBarOutline)Sets the flag that controls whether or not bar outlines are drawn.- Parameters:
draw
- the flag.- See Also:
isDrawBarOutline()
-
getMaximumBarWidth
public double getMaximumBarWidth() -
setMaximumBarWidth
public void setMaximumBarWidth(double maximumBarWidth) -
getMinimumBarLength
public double getMinimumBarLength() -
setMinimumBarLength
public void setMinimumBarLength(double minimumBarLength) -
getBase
public double getBase()Returns the base value for the bars. The default value is 0.0.- Returns:
- The base value for the bars.
- See Also:
setBase(double)
-
setBase
public void setBase(double base)Sets the base value for the bars.- Parameters:
base
- the new base value.- See Also:
getBase()
-
isIncludeBaseInRange
public boolean isIncludeBaseInRange()Returns the flag that controls whether or not the base value for the bars is included in the range.- Returns:
true
if the base is included in the range, andfalse
otherwise.- See Also:
setIncludeBaseInRange(boolean)
-
setIncludeBaseInRange
public void setIncludeBaseInRange(boolean includeBaseInRange)Sets the flag that controls whether or not the base value for the bars is included in the range.- Parameters:
include
- the new value for the flag.- See Also:
#getIncludeBaseInRange()
-
isShadowsVisible
public boolean isShadowsVisible()Returns the flag that controls whether or not shadows are drawn for the bars.- Returns:
- A boolean
-
setShadowsVisible
public void setShadowsVisible(boolean shadowsVisible)Sets the flag that controls whether or not shadows are drawn by the renderer.- Parameters:
visible
- the new flag value.
-
getShadowColor
-
setShadowColor
-
getShadowXOffset
public double getShadowXOffset() -
setShadowXOffset
public void setShadowXOffset(double shadowXOffset) -
getShadowYOffset
public double getShadowYOffset() -
setShadowYOffset
public void setShadowYOffset(double shadowYOffset) -
getBarOutlineColor
-
setBarOutlineColor
-
getBarOutlineWidth
public double getBarOutlineWidth() -
setBarOutlineWidth
public void setBarOutlineWidth(double barOutlineWidth) -
getBarOutlineStyle
-
setBarOutlineStyle
-