Autopsy  4.18.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport Class Reference

Inherits org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelSpecialFormatExport.ExcelItemExportable, and org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelExport.ExcelSheetExport.

Public Member Functions

 PieChartExport (String keyColumnHeader, String valueColumnHeader, String valueFormatString, String chartTitle, List< PieChartItem > slices)
 
 PieChartExport (String keyColumnHeader, String valueColumnHeader, String valueFormatString, String chartTitle, String sheetName, List< PieChartItem > slices, int colOffset, int rowPadding, int colSize, int rowSize)
 
String getSheetName ()
 
void renderSheet (Sheet sheet, ExcelExport.WorksheetEnv env) throws ExcelExport.ExcelExportException
 
ItemDimensions write (Sheet sheet, int rowStart, int colStart, ExcelExport.WorksheetEnv env) throws ExcelExportException
 

Private Attributes

final String chartTitle
 
final int colOffset
 
final int colSize
 
final int rowPadding
 
final int rowSize
 
final String sheetName
 
final ExcelTableExport< PieChartItem,?extends ExcelCellModeltableExport
 

Static Private Attributes

static final int DEFAULT_COL_OFFSET = 1
 
static final int DEFAULT_COL_SIZE = 10
 
static final int DEFAULT_ROW_PADDING = 1
 
static final int DEFAULT_ROW_SIZE = 20
 

Detailed Description

Class that creates an excel pie chart along with data table.

Definition at line 47 of file PieChartExport.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.PieChartExport ( String  keyColumnHeader,
String  valueColumnHeader,
String  valueFormatString,
String  chartTitle,
List< PieChartItem slices 
)

Main constructor assuming defaults.

Parameters
keyColumnHeaderThe header column name for the table descriptions (i.e. file types).
valueColumnHeaderThe header column name for the values.
valueFormatStringThe excel format string to use for values.
chartTitleThe title for the chart.
slicesThe values for the pie slices.

Definition at line 72 of file PieChartExport.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.chartTitle, org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.DEFAULT_COL_OFFSET, org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.DEFAULT_COL_SIZE, org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.DEFAULT_ROW_PADDING, and org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.DEFAULT_ROW_SIZE.

org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.PieChartExport ( String  keyColumnHeader,
String  valueColumnHeader,
String  valueFormatString,
String  chartTitle,
String  sheetName,
List< PieChartItem slices,
int  colOffset,
int  rowPadding,
int  colSize,
int  rowSize 
)

Main constructor.

Parameters
keyColumnHeaderThe header column name for the table descriptions (i.e. file types).
valueColumnHeaderThe header column name for the values.
valueFormatStringThe excel format string to use for values.
chartTitleThe title for the chart.
sheetNameThe sheet name if used as a sheet export.
slicesThe values for the pie slices.
colOffsetThe column spacing between the table and the chart.
rowPaddingThe padding between this and data above or below (if used as an ExcelItemExportable).
colSizeThe column size of the chart.
rowSizeThe row size of the chart.

Definition at line 96 of file PieChartExport.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.chartTitle, org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.colOffset, org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.colSize, org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.rowPadding, org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.rowSize, and org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.sheetName.

Member Function Documentation

String org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.getSheetName ( )

Returns the name of the sheet to use with this item.

NOTE: there can be no duplicates in a workbook.

Returns
The name of the sheet to use with this item.

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelExport.ExcelSheetExport.

Definition at line 117 of file PieChartExport.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.sheetName.

void org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.renderSheet ( Sheet  sheet,
ExcelExport.WorksheetEnv  env 
) throws ExcelExport.ExcelExportException

Renders this item to an excel worksheet.

Parameters
sheetThe worksheet.
envThe environment and preferences to use while exporting.
Exceptions
ExcelExportException

Implements org.sleuthkit.autopsy.datasourcesummary.uiutils.ExcelExport.ExcelSheetExport.

Definition at line 122 of file PieChartExport.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.write().

ItemDimensions org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.write ( Sheet  sheet,
int  rowStart,
int  colStart,
ExcelExport.WorksheetEnv  env 
) throws ExcelExportException

Member Data Documentation

final String org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.chartTitle
private
final int org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.colOffset
private
final int org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.colSize
private
final int org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.DEFAULT_COL_OFFSET = 1
staticprivate
final int org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.DEFAULT_COL_SIZE = 10
staticprivate
final int org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.DEFAULT_ROW_PADDING = 1
staticprivate
final int org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.DEFAULT_ROW_SIZE = 20
staticprivate
final int org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.rowPadding
private
final int org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.rowSize
private
final String org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.sheetName
private
final ExcelTableExport<PieChartItem, ? extends ExcelCellModel> org.sleuthkit.autopsy.datasourcesummary.uiutils.PieChartExport.tableExport
private

Definition at line 54 of file PieChartExport.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.