Package io.keikai.range.impl.imexp
Class PoiEnumConversion
- java.lang.Object
-
- io.keikai.range.impl.imexp.PoiEnumConversion
-
public class PoiEnumConversion extends Object
An utility to convert enumeration constant between ZSS model and POI model. This utility helps developers who want to write their own importer or exporter based on POI.- Since:
- 3.5.0
- Author:
- kuro, Hawk
-
-
Field Summary
Fields Modifier and Type Field Description static short
BOLDWEIGHT_BOLD
Bold boldness (bold) for xls use only
-
Constructor Summary
Constructors Constructor Description PoiEnumConversion()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValueAxisImpl.CrossBetween
toAxisBetween(org.apache.poi.xddf.usermodel.chart.AxisCrossBetween crossBetween)
static AbstractChartAxisAdv.Crosses
toAxisCrosses(org.apache.poi.xddf.usermodel.chart.AxisCrosses crosses)
static CategoryAxisImpl.LabelAlign
toAxisLabelAlign(org.apache.poi.xddf.usermodel.chart.AxisLabelAlignment labelAlign)
static AbstractChartAxisAdv.Orientation
toAxisOrientation(org.apache.poi.xddf.usermodel.chart.AxisOrientation orientation)
static AbstractChartAxisAdv.Position
toAxisPosition(org.apache.poi.xddf.usermodel.chart.AxisPosition position)
static AbstractChartAxisAdv.TickLabelPosition
toAxisTickLabelPosition(org.apache.poi.xddf.usermodel.chart.AxisTickLabelPosition tickLabelPosition)
static SChart.BarDirection
toBarDirection(org.apache.poi.xddf.usermodel.chart.BarDirection direction)
static SFont.Boldweight
toBoldweight(boolean bold)
static SFont.Boldweight
toBoldweight(short bold)
static SBorder.BorderType
toBorderType(BorderStyle poiBorder)
static ErrorValue
toErrorCode(byte errorCellValue)
static SDataValidation.AlertStyle
toErrorStyle(int errorStyle)
static SFill.FillPattern
toFillPattern(FillPatternType poiFillPattern)
static SCellStyle.Alignment
toHorizontalAlignment(HorizontalAlignment poiHorizontalAlignment)
static SHyperlink.HyperlinkType
toHyperlinkType(HyperlinkType type)
static SChart.ChartLegendPosition
toLengendPosition(org.apache.poi.xddf.usermodel.chart.LegendPosition position)
static SDataValidation.OperatorType
toOperatorType(int poiOperator)
static SPrintSetup.PaperSize
toPaperSize(short paperSize)
static org.apache.poi.xddf.usermodel.chart.AxisCrossBetween
toPoiAxisBetween(ValueAxisImpl.CrossBetween crossBetween)
static org.apache.poi.xddf.usermodel.chart.AxisCrosses
toPoiAxisCrosses(AbstractChartAxisAdv.Crosses crosses)
static org.apache.poi.xddf.usermodel.chart.AxisLabelAlignment
toPoiAxisLabelAlign(CategoryAxisImpl.LabelAlign labelAlign)
static org.apache.poi.xddf.usermodel.chart.AxisOrientation
toPoiAxisOrientation(AbstractChartAxisAdv.Orientation orientation)
static org.apache.poi.xddf.usermodel.chart.AxisPosition
toPoiAxisPosition(AbstractChartAxisAdv.Position position)
static org.apache.poi.xddf.usermodel.chart.AxisTickLabelPosition
toPoiAxisTickLabelPosition(AbstractChartAxisAdv.TickLabelPosition position)
static org.apache.poi.xddf.usermodel.chart.BarDirection
toPoiBarDirection(SChart.BarDirection direction)
static org.apache.poi.xddf.usermodel.chart.BarGrouping
toPoiBarGrouping(SChart.ChartGrouping grouping)
static short
toPoiBoldweight(SFont.Boldweight bold)
static BorderStyle
toPoiBorderType(SBorder.BorderType borderType)
static int
toPoiErrorStyle(SDataValidation.AlertStyle style)
static FillPatternType
toPoiFillPattern(SFill.FillPattern fillPattern)
static int
toPoiFilterOperator(SAutoFilter.FilterOp operator)
static org.apache.poi.xddf.usermodel.chart.Grouping
toPoiGrouping(SChart.ChartGrouping grouping)
static HorizontalAlignment
toPoiHorizontalAlignment(SCellStyle.Alignment alignment)
static HyperlinkType
toPoiHyperlinkType(SHyperlink.HyperlinkType type)
static org.apache.poi.xddf.usermodel.chart.LegendPosition
toPoiLegendPosition(SChart.ChartLegendPosition position)
static int
toPoiOperatorType(SDataValidation.OperatorType type)
static short
toPoiPaperSize(SPrintSetup.PaperSize paperSize)
static int
toPoiPictureFormat(SPicture.Format format)
static XDDFDateAxisHelper.TimeUnit
toPoiTimeUnit(DateAxisImpl.TimeUnit timeUnit)
static short
toPoiTypeOffset(SFont.TypeOffset typeOffset)
static byte
toPoiUnderline(SFont.Underline underline)
static VerticalAlignment
toPoiVerticalAlignment(SCellStyle.VerticalAlignment vAlignment)
static SFont.TypeOffset
toTypeOffset(short typeOffset)
static SFont.Underline
toUnderline(byte underline)
static SDataValidation.ValidationType
toValidationType(int validationType)
static SCellStyle.VerticalAlignment
toVerticalAlignment(VerticalAlignment poiVerticalAlignment)
-
-
-
Field Detail
-
BOLDWEIGHT_BOLD
public static final short BOLDWEIGHT_BOLD
Bold boldness (bold) for xls use only- See Also:
- Constant Field Values
-
-
Method Detail
-
toPoiHyperlinkType
public static HyperlinkType toPoiHyperlinkType(SHyperlink.HyperlinkType type)
-
toHyperlinkType
public static SHyperlink.HyperlinkType toHyperlinkType(HyperlinkType type)
-
toPoiFilterOperator
public static int toPoiFilterOperator(SAutoFilter.FilterOp operator)
-
toPoiPaperSize
public static short toPoiPaperSize(SPrintSetup.PaperSize paperSize)
-
toPaperSize
public static SPrintSetup.PaperSize toPaperSize(short paperSize)
-
toPoiVerticalAlignment
public static VerticalAlignment toPoiVerticalAlignment(SCellStyle.VerticalAlignment vAlignment)
-
toVerticalAlignment
public static SCellStyle.VerticalAlignment toVerticalAlignment(VerticalAlignment poiVerticalAlignment)
-
toPoiFillPattern
public static FillPatternType toPoiFillPattern(SFill.FillPattern fillPattern)
-
toFillPattern
public static SFill.FillPattern toFillPattern(FillPatternType poiFillPattern)
-
toPoiBorderType
public static BorderStyle toPoiBorderType(SBorder.BorderType borderType)
-
toBorderType
public static SBorder.BorderType toBorderType(BorderStyle poiBorder)
-
toPoiHorizontalAlignment
public static HorizontalAlignment toPoiHorizontalAlignment(SCellStyle.Alignment alignment)
-
toHorizontalAlignment
public static SCellStyle.Alignment toHorizontalAlignment(HorizontalAlignment poiHorizontalAlignment)
-
toPoiBoldweight
public static short toPoiBoldweight(SFont.Boldweight bold)
-
toBoldweight
public static SFont.Boldweight toBoldweight(boolean bold)
-
toBoldweight
public static SFont.Boldweight toBoldweight(short bold)
-
toPoiTypeOffset
public static short toPoiTypeOffset(SFont.TypeOffset typeOffset)
-
toTypeOffset
public static SFont.TypeOffset toTypeOffset(short typeOffset)
-
toPoiUnderline
public static byte toPoiUnderline(SFont.Underline underline)
-
toUnderline
public static SFont.Underline toUnderline(byte underline)
-
toPoiPictureFormat
public static int toPoiPictureFormat(SPicture.Format format)
-
toPoiGrouping
public static org.apache.poi.xddf.usermodel.chart.Grouping toPoiGrouping(SChart.ChartGrouping grouping)
-
toPoiBarGrouping
public static org.apache.poi.xddf.usermodel.chart.BarGrouping toPoiBarGrouping(SChart.ChartGrouping grouping)
-
toPoiBarDirection
public static org.apache.poi.xddf.usermodel.chart.BarDirection toPoiBarDirection(SChart.BarDirection direction)
-
toBarDirection
public static SChart.BarDirection toBarDirection(org.apache.poi.xddf.usermodel.chart.BarDirection direction)
-
toPoiLegendPosition
public static org.apache.poi.xddf.usermodel.chart.LegendPosition toPoiLegendPosition(SChart.ChartLegendPosition position)
-
toLengendPosition
public static SChart.ChartLegendPosition toLengendPosition(org.apache.poi.xddf.usermodel.chart.LegendPosition position)
-
toAxisCrosses
public static AbstractChartAxisAdv.Crosses toAxisCrosses(org.apache.poi.xddf.usermodel.chart.AxisCrosses crosses)
-
toPoiAxisCrosses
public static org.apache.poi.xddf.usermodel.chart.AxisCrosses toPoiAxisCrosses(AbstractChartAxisAdv.Crosses crosses)
-
toPoiAxisOrientation
public static org.apache.poi.xddf.usermodel.chart.AxisOrientation toPoiAxisOrientation(AbstractChartAxisAdv.Orientation orientation)
-
toAxisOrientation
public static AbstractChartAxisAdv.Orientation toAxisOrientation(org.apache.poi.xddf.usermodel.chart.AxisOrientation orientation)
-
toPoiAxisPosition
public static org.apache.poi.xddf.usermodel.chart.AxisPosition toPoiAxisPosition(AbstractChartAxisAdv.Position position)
-
toAxisPosition
public static AbstractChartAxisAdv.Position toAxisPosition(org.apache.poi.xddf.usermodel.chart.AxisPosition position)
-
toPoiAxisTickLabelPosition
public static org.apache.poi.xddf.usermodel.chart.AxisTickLabelPosition toPoiAxisTickLabelPosition(AbstractChartAxisAdv.TickLabelPosition position)
-
toAxisTickLabelPosition
public static AbstractChartAxisAdv.TickLabelPosition toAxisTickLabelPosition(org.apache.poi.xddf.usermodel.chart.AxisTickLabelPosition tickLabelPosition)
-
toPoiAxisLabelAlign
public static org.apache.poi.xddf.usermodel.chart.AxisLabelAlignment toPoiAxisLabelAlign(CategoryAxisImpl.LabelAlign labelAlign)
-
toAxisLabelAlign
public static CategoryAxisImpl.LabelAlign toAxisLabelAlign(org.apache.poi.xddf.usermodel.chart.AxisLabelAlignment labelAlign)
-
toPoiTimeUnit
public static XDDFDateAxisHelper.TimeUnit toPoiTimeUnit(DateAxisImpl.TimeUnit timeUnit)
-
toPoiAxisBetween
public static org.apache.poi.xddf.usermodel.chart.AxisCrossBetween toPoiAxisBetween(ValueAxisImpl.CrossBetween crossBetween)
-
toAxisBetween
public static ValueAxisImpl.CrossBetween toAxisBetween(org.apache.poi.xddf.usermodel.chart.AxisCrossBetween crossBetween)
-
toPoiOperatorType
public static int toPoiOperatorType(SDataValidation.OperatorType type)
-
toOperatorType
public static SDataValidation.OperatorType toOperatorType(int poiOperator)
-
toPoiErrorStyle
public static int toPoiErrorStyle(SDataValidation.AlertStyle style)
-
toErrorStyle
public static SDataValidation.AlertStyle toErrorStyle(int errorStyle)
-
toValidationType
public static SDataValidation.ValidationType toValidationType(int validationType)
-
toErrorCode
public static ErrorValue toErrorCode(byte errorCellValue)
-
-