⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hssfchart.java

📁 Office格式转换代码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
    }    private PlotAreaRecord createPlotAreaRecord()    {        PlotAreaRecord r = new PlotAreaRecord(  );        return r;    }    private AxisLineFormatRecord createAxisLineFormatRecord( short format )    {        AxisLineFormatRecord r = new AxisLineFormatRecord();        r.setAxisType( format );        return r;    }    private ValueRangeRecord createValueRangeRecord()    {        ValueRangeRecord r = new ValueRangeRecord();        r.setMinimumAxisValue( 0.0 );        r.setMaximumAxisValue( 0.0 );        r.setMajorIncrement( 0 );        r.setMinorIncrement( 0 );        r.setCategoryAxisCross( 0 );        r.setAutomaticMinimum( true );        r.setAutomaticMaximum( true );        r.setAutomaticMajor( true );        r.setAutomaticMinor( true );        r.setAutomaticCategoryCrossing( true );        r.setLogarithmicScale( false );        r.setValuesInReverse( false );        r.setCrossCategoryAxisAtMaximum( false );        r.setReserved( true );    // what's this do??        return r;    }    private TickRecord createTickRecord1()    {        TickRecord r = new TickRecord();        r.setMajorTickType( (byte) 2 );        r.setMinorTickType( (byte) 0 );        r.setLabelPosition( (byte) 3 );        r.setBackground( (byte) 1 );        r.setLabelColorRgb( 0 );        r.setZero1( (short) 0 );        r.setZero2( (short) 0 );        r.setZero3( (short) 45 );        r.setAutorotate( true );        r.setAutoTextBackground( true );        r.setRotation( (short) 0 );        r.setAutorotate( true );        r.setTickColor( (short) 77 );        return r;    }    private TickRecord createTickRecord2()    {        TickRecord r = createTickRecord1();        r.setZero3((short)0);        return r;    }    private AxisOptionsRecord createAxisOptionsRecord()    {        AxisOptionsRecord r = new AxisOptionsRecord();        r.setMinimumCategory( (short) -28644 );        r.setMaximumCategory( (short) -28715 );        r.setMajorUnitValue( (short) 2 );        r.setMajorUnit( (short) 0 );        r.setMinorUnitValue( (short) 1 );        r.setMinorUnit( (short) 0 );        r.setBaseUnit( (short) 0 );        r.setCrossingPoint( (short) -28644 );        r.setDefaultMinimum( true );        r.setDefaultMaximum( true );        r.setDefaultMajor( true );        r.setDefaultMinorUnit( true );        r.setIsDate( true );        r.setDefaultBase( true );        r.setDefaultCross( true );        r.setDefaultDateSettings( true );        return r;    }    private CategorySeriesAxisRecord createCategorySeriesAxisRecord()    {        CategorySeriesAxisRecord r = new CategorySeriesAxisRecord();        r.setCrossingPoint( (short) 1 );        r.setLabelFrequency( (short) 1 );        r.setTickMarkFrequency( (short) 1 );        r.setValueAxisCrossing( true );        r.setCrossesFarRight( false );        r.setReversed( false );        return r;    }    private AxisRecord createAxisRecord( short axisType )    {        AxisRecord r = new AxisRecord();        r.setAxisType( axisType );        return r;    }    private AxisParentRecord createAxisParentRecord()    {        AxisParentRecord r = new AxisParentRecord();        r.setAxisType( AxisParentRecord.AXIS_TYPE_MAIN );        r.setX( 479 );        r.setY( 221 );        r.setWidth( 2995 );        r.setHeight( 2902 );        return r;    }    private AxisUsedRecord createAxisUsedRecord( short numAxis )    {        AxisUsedRecord r = new AxisUsedRecord();        r.setNumAxis( numAxis );        return r;    }    private LinkedDataRecord createDirectLinkRecord()    {        LinkedDataRecord r = new LinkedDataRecord();        r.setLinkType( LinkedDataRecord.LINK_TYPE_TITLE_OR_TEXT );        r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_DIRECT );        r.setCustomNumberFormat( false );        r.setIndexNumberFmtRecord( (short) 0 );        r.setFormulaOfLink( new LinkedDataFormulaField() );        return r;    }    private FontIndexRecord createFontIndexRecord( int index )    {        FontIndexRecord r = new FontIndexRecord();        r.setFontIndex( (short) index );        return r;    }    private TextRecord createAllTextRecord()    {        TextRecord r = new TextRecord();        r.setHorizontalAlignment( TextRecord.HORIZONTAL_ALIGNMENT_CENTER );        r.setVerticalAlignment( TextRecord.VERTICAL_ALIGNMENT_CENTER );        r.setDisplayMode( TextRecord.DISPLAY_MODE_TRANSPARENT );        r.setRgbColor( 0 );        r.setX( -37 );        r.setY( -60 );        r.setWidth( 0 );        r.setHeight( 0 );        r.setAutoColor( true );        r.setShowKey( false );        r.setShowValue( true );        r.setVertical( false );        r.setAutoGeneratedText( true );        r.setGenerated( true );        r.setAutoLabelDeleted( false );        r.setAutoBackground( true );        r.setRotation( (short) 0 );        r.setShowCategoryLabelAsPercentage( false );        r.setShowValueAsPercentage( false );        r.setShowBubbleSizes( false );        r.setShowLabel( false );        r.setIndexOfColorValue( (short) 77 );        r.setDataLabelPlacement( (short) 0 );        r.setTextRotation( (short) 0 );        return r;    }    private TextRecord createUnknownTextRecord()    {        TextRecord r = new TextRecord();        r.setHorizontalAlignment( TextRecord.HORIZONTAL_ALIGNMENT_CENTER );        r.setVerticalAlignment( TextRecord.VERTICAL_ALIGNMENT_CENTER );        r.setDisplayMode( TextRecord.DISPLAY_MODE_TRANSPARENT );        r.setRgbColor( 0 );        r.setX( -37 );        r.setY( -60 );        r.setWidth( 0 );        r.setHeight( 0 );        r.setAutoColor( true );        r.setShowKey( false );        r.setShowValue( false );        r.setVertical( false );        r.setAutoGeneratedText( true );        r.setGenerated( true );        r.setAutoLabelDeleted( false );        r.setAutoBackground( true );        r.setRotation( (short) 0 );        r.setShowCategoryLabelAsPercentage( false );        r.setShowValueAsPercentage( false );        r.setShowBubbleSizes( false );        r.setShowLabel( false );        r.setIndexOfColorValue( (short) 77 );        r.setDataLabelPlacement( (short) 11088 );        r.setTextRotation( (short) 0 );        return r;    }    private DefaultDataLabelTextPropertiesRecord createDefaultTextRecord( short categoryDataType )    {        DefaultDataLabelTextPropertiesRecord r = new DefaultDataLabelTextPropertiesRecord();        r.setCategoryDataType( categoryDataType );        return r;    }    private SheetPropertiesRecord createSheetPropsRecord()    {        SheetPropertiesRecord r = new SheetPropertiesRecord();        r.setChartTypeManuallyFormatted( false );        r.setPlotVisibleOnly( true );        r.setDoNotSizeWithWindow( false );        r.setDefaultPlotDimensions( true );        r.setAutoPlotArea( false );        return r;    }    private SeriesToChartGroupRecord createSeriesToChartGroupRecord()    {        return new SeriesToChartGroupRecord();    }    private DataFormatRecord createDataFormatRecord()    {        DataFormatRecord r = new DataFormatRecord();        r.setPointNumber( (short) -1 );        r.setSeriesIndex( (short) 0 );        r.setSeriesNumber( (short) 0 );        r.setUseExcel4Colors( false );        return r;    }    private LinkedDataRecord createCategoriesLinkedDataRecord()    {        LinkedDataRecord r = new LinkedDataRecord();        r.setLinkType( LinkedDataRecord.LINK_TYPE_CATEGORIES );        r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_WORKSHEET );        r.setCustomNumberFormat( false );        r.setIndexNumberFmtRecord( (short) 0 );        LinkedDataFormulaField formula = new LinkedDataFormulaField();        Stack tokens = new Stack();        Area3DPtg p = new Area3DPtg();        p.setExternSheetIndex( (short) 0 );        p.setFirstColumn( (short) 1 );        p.setLastColumn( (short) 1 );        p.setFirstRow( (short) 0 );        p.setLastRow( (short) 31 );        tokens.add( p );        formula.setFormulaTokens( tokens );        r.setFormulaOfLink( formula );        return r;    }    private LinkedDataRecord createValuesLinkedDataRecord()    {        LinkedDataRecord r = new LinkedDataRecord();        r.setLinkType( LinkedDataRecord.LINK_TYPE_VALUES );        r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_WORKSHEET );        r.setCustomNumberFormat( false );        r.setIndexNumberFmtRecord( (short) 0 );        LinkedDataFormulaField formula = new LinkedDataFormulaField();        Stack tokens = new Stack();        Area3DPtg p = new Area3DPtg();        p.setExternSheetIndex( (short) 0 );        p.setFirstColumn( (short) 0 );        p.setLastColumn( (short) 0 );        p.setFirstRow( (short) 0 );        p.setLastRow( (short) 31 );        tokens.add( p );        formula.setFormulaTokens( tokens );        r.setFormulaOfLink( formula );        return r;    }    private LinkedDataRecord createTitleLinkedDataRecord()    {        LinkedDataRecord r = new LinkedDataRecord();        r.setLinkType( LinkedDataRecord.LINK_TYPE_TITLE_OR_TEXT );        r.setReferenceType( LinkedDataRecord.REFERENCE_TYPE_DIRECT );        r.setCustomNumberFormat( false );        r.setIndexNumberFmtRecord( (short) 0 );        r.setFormulaOfLink( new LinkedDataFormulaField() );        return r;    }    private SeriesRecord createSeriesRecord()    {        SeriesRecord r = new SeriesRecord();        r.setCategoryDataType( SeriesRecord.CATEGORY_DATA_TYPE_NUMERIC );        r.setValuesDataType( SeriesRecord.VALUES_DATA_TYPE_NUMERIC );        r.setNumCategories( (short) 32 );        r.setNumValues( (short) 31 );        r.setBubbleSeriesType( SeriesRecord.BUBBLE_SERIES_TYPE_NUMERIC );        r.setNumBubbleValues( (short) 0 );        return r;    }    private EndRecord createEndRecord()    {        return new EndRecord();    }    private AreaFormatRecord createAreaFormatRecord1()    {        AreaFormatRecord r = new AreaFormatRecord();        r.setForegroundColor( 16777215 );     // RGB Color        r.setBackgroundColor( 0 );            // RGB Color        r.setPattern( (short) 1 );             // TODO: Add Pattern constants to record        r.setAutomatic( true );        r.setInvert( false );        r.setForecolorIndex( (short) 78 );        r.setBackcolorIndex( (short) 77 );        return r;    }    private AreaFormatRecord createAreaFormatRecord2()    {        AreaFormatRecord r = new AreaFormatRecord();        r.setForegroundColor(0x00c0c0c0);        r.setBackgroundColor(0x00000000);        r.setPattern((short)1);        r.setAutomatic(false);        r.setInvert(false);        r.setForecolorIndex((short)22);        r.setBackcolorIndex((short)79);        return r;    }    private LineFormatRecord createLineFormatRecord( boolean drawTicks )    {        LineFormatRecord r = new LineFormatRecord();        r.setLineColor( 0 );        r.setLinePattern( LineFormatRecord.LINE_PATTERN_SOLID );        r.setWeight( (short) -1 );        r.setAuto( true );        r.setDrawTicks( drawTicks );        r.setColourPaletteIndex( (short) 77 );  // what colour is this?        return r;    }    private LineFormatRecord createLineFormatRecord2()    {        LineFormatRecord r = new LineFormatRecord();        r.setLineColor( 0x00808080 );        r.setLinePattern( (short) 0 );        r.setWeight( (short) 0 );        r.setAuto( false );        r.setDrawTicks( false );        r.setUnknown( false );        r.setColourPaletteIndex( (short) 23 );        return r;    }    private FrameRecord createFrameRecord1()    {        FrameRecord r = new FrameRecord();        r.setBorderType( FrameRecord.BORDER_TYPE_REGULAR );        r.setAutoSize( false );        r.setAutoPosition( true );        return r;    }    private FrameRecord createFrameRecord2()    {        FrameRecord r = new FrameRecord();        r.setBorderType( FrameRecord.BORDER_TYPE_REGULAR );        r.setAutoSize( true );        r.setAutoPosition( true );        return r;    }    private PlotGrowthRecord createPlotGrowthRecord( int horizScale, int vertScale )    {        PlotGrowthRecord r = new PlotGrowthRecord();        r.setHorizontalScale( horizScale );        r.setVerticalScale( vertScale );        return r;    }    private SCLRecord createSCLRecord( short numerator, short denominator )    {        SCLRecord r = new SCLRecord();        r.setDenominator( denominator );        r.setNumerator( numerator );        return r;    }    private BeginRecord createBeginRecord()    {        return new BeginRecord();    }    private ChartRecord createChartRecord( int x, int y, int width, int height )    {        ChartRecord r = new ChartRecord();        r.setX( x );        r.setY( y );        r.setWidth( width );        r.setHeight( height );        return r;    }    private UnitsRecord createUnitsRecord()    {        UnitsRecord r = new UnitsRecord();        r.setUnits( (short) 0 );        return r;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -