Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## jet.report.xls
Class BarInfo

    java.lang.Object
      jet.report.xls.ChartTypeInfo
          jet.report.xls.BarInfo

    public class BarInfo

extends ChartTypeInfo

Contains the information of bar chart type in the file. The class extends chartTypeInfo.

Field Summary
`static short` | `F100STACKED` Represents 100% Stacked Bar Chart.
`static short` | `NORMAL` Represents Normal Bar Chart.
`static short` | `STACKED` Represents Stacked Bar Chart.

Fields inherited from class jet.report.xls.ChartTypeInfo
`AREA, BAR, BAR_AREA, BAR_LINE, BOPPOP, COLUMN, CONE, CYLINDER, DROPBAR, LINE, LINE_LINE, PIE, PYRAMID, RADAR, SCATTER, SHOWBUBBLESIZE, SHOWLABEL, SHOWLABPER, SHOWNONE, SHOWPERCENT, SHOWVALUE, STOCK, SURFACE`

Constructor Summary
`BarInfo(short dataLabel, boolean is3D, Info3D info3D, short style)` Constructs class BarInfo and sets its fields appropriately.

Method Summary
`int` | `getChartType()` Gets the type of the chart.
`short` | `getSpbBars()` Gets the space between bars.
`short` | `getSpbCats()` Gets the space between categories.
`short` | `getStyle()` Gets the style of the bar chart.
`boolean` | `hasShadow()` Gets whether this bar has a shadow or not.
`void` | `setHasShadow(boolean b)` Sets whether this bar has a shadow or not.
`void` | `setSpbBars(short spbBars)` Sets the space between bars.
`void` | `setSpbCats(short spbCats)` Sets the space between categories.
`void` | `setStyle(short style)` Sets the style of the bar chart.

Methods inherited from class jet.report.xls.ChartTypeInfo
`addSeries, getCatName, getCatNameRef, getDataLabel, getInfo3D, getIs3D, getSeries, getSeriesSize, insertSeries, removeSeries, replace, setCatName, setCatNameRef, setCatNameRef, setDataLabel, setInfo3D, setIs3D, setIsPercentDataLabel, setIsShowY2, setIsShowYAxis`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### NORMAL

    public static final short NORMAL

  Represents Normal Bar Chart.

  See Also:
    Constant Field Values

### STACKED

    public static final short STACKED

  Represents Stacked Bar Chart.

  See Also:
    Constant Field Values

### F100STACKED

    public static final short F100STACKED

  Represents 100% Stacked Bar Chart.

  See Also:
    Constant Field Values

Constructor Detail

### BarInfo

    public BarInfo(short dataLabel,
                   boolean is3D,
                   Info3D info3D,
                   short style)

  Constructs class BarInfo and sets its fields appropriately.

  Parameters:
    `dataLabel` - type of the data label. See `ChartTypeInfo.SHOWNONE`, `ChartTypeInfo.SHOWVALUE` and `ChartTypeInfo.SHOWLABEL`.
    `is3D` - is 3D chart or not
    `info3D` - the 3D chart info
    `style` - style of bar, please see `NORMAL`, `STACKED` and `F100STACKED`.

Method Detail

### getChartType

    public int getChartType()

  Gets the type of the chart.

  Specified by:
    `getChartType` in class `ChartTypeInfo`
  Returns:
    type of the chart

### getSpbBars

    public short getSpbBars()

  Gets the space between bars.

  Returns:
    space between bars

### setSpbBars

    public void setSpbBars(short spbBars)

  Sets the space between bars.

  Parameters:
    `spbBars` - space between bars

### getSpbCats

    public short getSpbCats()

  Gets the space between categories.

  Returns:
    space between categories

### setSpbCats

    public void setSpbCats(short spbCats)

  Sets the space between categories.

  Parameters:
    `spbCats` - space between categories

### getStyle

    public short getStyle()

  Gets the style of the bar chart. `NORMAL` `STACKED` `F100STACKED`

  Specified by:
    `getStyle` in class `ChartTypeInfo`
  Returns:
    style of the bar chart

### setStyle

    public void setStyle(short style)

  Sets the style of the bar chart. `NORMAL` `STACKED` `F100STACKED`

  Parameters:
    `style` - style of the bar chart

### hasShadow

    public boolean hasShadow()

  Gets whether this bar has a shadow or not.

  Specified by:
    `hasShadow` in class `ChartTypeInfo`
  Returns:
    true if this bar has a shadow

### setHasShadow

    public void setHasShadow(boolean b)

  Sets whether this bar has a shadow or not. If the chart is 3D, it can not set shadow.

  Parameters:
    `b` - - true if this bar has a shadow

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD