Class PoiEnumConversion


  • public class PoiEnumConversion
    extends java.lang.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 Detail

      • BOLDWEIGHT_BOLD

        public static final short BOLDWEIGHT_BOLD
        Bold boldness (bold) for xls use only
        See Also:
        Constant Field Values
    • Constructor Detail

      • PoiEnumConversion

        public PoiEnumConversion()
    • Method Detail

      • toPoiHyperlinkType

        public static org.apache.poi.common.usermodel.HyperlinkType toPoiHyperlinkType​(SHyperlink.HyperlinkType type)
      • toHyperlinkType

        public static SHyperlink.HyperlinkType toHyperlinkType​(org.apache.poi.common.usermodel.HyperlinkType type)
      • toPoiVerticalAlignment

        public static org.apache.poi.ss.usermodel.VerticalAlignment toPoiVerticalAlignment​(SCellStyle.VerticalAlignment vAlignment)
      • toVerticalAlignment

        public static SCellStyle.VerticalAlignment toVerticalAlignment​(org.apache.poi.ss.usermodel.VerticalAlignment poiVerticalAlignment)
      • toPoiFillPattern

        public static org.apache.poi.ss.usermodel.FillPatternType toPoiFillPattern​(SFill.FillPattern fillPattern)
      • toFillPattern

        public static SFill.FillPattern toFillPattern​(org.apache.poi.ss.usermodel.FillPatternType poiFillPattern)
      • toPoiBorderType

        public static org.apache.poi.ss.usermodel.BorderStyle toPoiBorderType​(SBorder.BorderType borderType)
      • toBorderType

        public static SBorder.BorderType toBorderType​(org.apache.poi.ss.usermodel.BorderStyle poiBorder)
      • toPoiHorizontalAlignment

        public static org.apache.poi.ss.usermodel.HorizontalAlignment toPoiHorizontalAlignment​(SCellStyle.Alignment alignment)
      • toHorizontalAlignment

        public static SCellStyle.Alignment toHorizontalAlignment​(org.apache.poi.ss.usermodel.HorizontalAlignment poiHorizontalAlignment)
      • toPoiBoldweight

        public static short toPoiBoldweight​(SFont.Boldweight 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)
      • 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)
      • toPoiAxisPosition

        public static org.apache.poi.xddf.usermodel.chart.AxisPosition toPoiAxisPosition​(AbstractChartAxisAdv.Position position)
      • 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 org.apache.poi.xddf.usermodel.chart.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)
      • toErrorCode

        public static ErrorValue toErrorCode​(byte errorCellValue)