JIDE 3.5.15

com.jidesoft.chart.style
Class BarStyle

java.lang.Object
  extended by com.jidesoft.chart.style.AbstractStyle
      extended by com.jidesoft.chart.style.BarStyle

public class BarStyle
extends AbstractStyle

The style to use when displaying bar charts


Constructor Summary
BarStyle()
          Create a Bar Style object with default property values
BarStyle(Paint paint)
           
BarStyle(Paint paint, int barWidth)
           
BarStyle(Paint paint, int barWidth, Orientation orientation)
           
 
Method Summary
 boolean equals(Object obj)
           
 Integer getBarWidth()
          Returns the width to use for bars in the bar chart
 Double getBarWidthProportion()
           
 Orientation getOrientation()
          Returns the orientation of the bars: either horizontal or vertical
 int hashCode()
           
 void setBarWidth(Integer barWidth)
          Specify the width to use for bars in the bar chart.
 void setBarWidthProportion(Double barWidthProportion)
           
 void setOrientation(Orientation orientation)
          Specify the orientation of the bars
 
Methods inherited from class com.jidesoft.chart.style.AbstractStyle
getColor, getPaint, setColor, setPaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BarStyle

public BarStyle()
Create a Bar Style object with default property values


BarStyle

public BarStyle(Paint paint)

BarStyle

public BarStyle(Paint paint,
                int barWidth)

BarStyle

public BarStyle(Paint paint,
                int barWidth,
                Orientation orientation)
Method Detail

getBarWidth

public Integer getBarWidth()
Returns the width to use for bars in the bar chart

Returns:
the width to use for bars in the bar chart

setBarWidth

public void setBarWidth(Integer barWidth)
Specify the width to use for bars in the bar chart. If null, the bars take up their natural width.

Parameters:
barWidth - the width to use for bars in the bar chart

getBarWidthProportion

public Double getBarWidthProportion()

setBarWidthProportion

public void setBarWidthProportion(Double barWidthProportion)

getOrientation

public Orientation getOrientation()
Returns the orientation of the bars: either horizontal or vertical

Returns:
the orientation of the bars

setOrientation

public void setOrientation(Orientation orientation)
Specify the orientation of the bars

Parameters:
orientation - the orientation of the bars: either horizontal or vertical

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractStyle

equals

public boolean equals(Object obj)
Overrides:
equals in class AbstractStyle

JIDE 3.5.15