jxl.biff.chart
Class Chart

java.lang.Object
  |
  +--jxl.biff.chart.Chart
All Implemented Interfaces:
ByteData

public class Chart
extends java.lang.Object
implements ByteData

Contains the various biff records used to insert a chart into a worksheet


Field Summary
private  byte[] data
          The chart byte data
private  int endpos
          The start pos of the chart bof stream in the data file
private  File file
          A handle to the Excel file
private  boolean initialized
          Flag which indicates that the byte data has been initialized
private  MsoDrawingRecord msoDrawingRecord
          The MsoDrawingRecord associated with the chart
private  ObjRecord objRecord
          The ObjRecord associated with the chart
private  int startpos
          The start pos of the chart bof stream in the data file
private  WorkbookSettings workbookSettings
          The workbook settings
 
Constructor Summary
Chart(MsoDrawingRecord mso, ObjRecord obj, int sp, int ep, File f, WorkbookSettings ws)
          Constructor
 
Method Summary
 byte[] getBytes()
          Gets the entire binary record for the chart as a chunk of binary data
private  void initialize()
          Initializes the charts byte data
 void rationalize(IndexMapping xfMapping, IndexMapping fontMapping, IndexMapping formatMapping)
          Rationalizes the sheets xf index mapping
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

msoDrawingRecord

private MsoDrawingRecord msoDrawingRecord
The MsoDrawingRecord associated with the chart

objRecord

private ObjRecord objRecord
The ObjRecord associated with the chart

startpos

private int startpos
The start pos of the chart bof stream in the data file

endpos

private int endpos
The start pos of the chart bof stream in the data file

file

private File file
A handle to the Excel file

data

private byte[] data
The chart byte data

initialized

private boolean initialized
Flag which indicates that the byte data has been initialized

workbookSettings

private WorkbookSettings workbookSettings
The workbook settings
Constructor Detail

Chart

public Chart(MsoDrawingRecord mso,
             ObjRecord obj,
             int sp,
             int ep,
             File f,
             WorkbookSettings ws)
Constructor
Parameters:
mso - a MsoDrawingRecord value
obj - an ObjRecord value
sp - an int value
ep - an int value
f - a File value
ws - the workbook settings
Method Detail

getBytes

public byte[] getBytes()
Gets the entire binary record for the chart as a chunk of binary data
Specified by:
getBytes in interface ByteData
Returns:
the bytes

initialize

private void initialize()
Initializes the charts byte data

rationalize

public void rationalize(IndexMapping xfMapping,
                        IndexMapping fontMapping,
                        IndexMapping formatMapping)
Rationalizes the sheets xf index mapping
Parameters:
xfMapping - the index mapping for XFRecords
fontMapping - the index mapping for fonts
formatMapping - the index mapping for formats