2008-01-16 11:08:22 -05:00
|
|
|
/* ====================================================================
|
|
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
|
|
this work for additional information regarding copyright ownership.
|
|
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
(the "License"); you may not use this file except in compliance with
|
|
|
|
the License. You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
==================================================================== */
|
|
|
|
|
|
|
|
package org.apache.poi.ss.usermodel;
|
|
|
|
|
2016-09-18 20:20:44 -04:00
|
|
|
import org.apache.poi.util.Removal;
|
|
|
|
|
2008-01-16 11:08:22 -05:00
|
|
|
public interface CellStyle {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* general (normal) horizontal alignment
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#GENERAL} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short ALIGN_GENERAL = 0x0; //HorizontalAlignment.GENERAL.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* left-justified horizontal alignment
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#LEFT} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short ALIGN_LEFT = 0x1; //HorizontalAlignment.LEFT.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* center horizontal alignment
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#CENTER} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short ALIGN_CENTER = 0x2; //HorizontalAlignment.CENTER.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* right-justified horizontal alignment
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#RIGHT} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short ALIGN_RIGHT = 0x3; //HorizontalAlignment.RIGHT.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* fill? horizontal alignment
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#FILL} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short ALIGN_FILL = 0x4; //HorizontalAlignment.FILL.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* justified horizontal alignment
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#JUSTIFY} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short ALIGN_JUSTIFY = 0x5; //HorizontalAlignment.JUSTIFY.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* center-selection? horizontal alignment
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link HorizontalAlignment#CENTER_SELECTION} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short ALIGN_CENTER_SELECTION = 0x6; //HorizontalAlignment.CENTER_SELECTION.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* top-aligned vertical alignment
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link VerticalAlignment#TOP} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short VERTICAL_TOP = 0x0; //VerticalAlignment.TOP.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* center-aligned vertical alignment
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link VerticalAlignment#CENTER} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short VERTICAL_CENTER = 0x1; //VerticalAlignment.CENTER.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* bottom-aligned vertical alignment
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link VerticalAlignment#BOTTOM} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short VERTICAL_BOTTOM = 0x2; //VerticalAlignment.BOTTOM.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* vertically justified vertical alignment
|
2016-08-07 21:14:36 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link VerticalAlignment#JUSTIFY} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short VERTICAL_JUSTIFY = 0x3; //VerticalAlignment.JUSTIFY.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* No border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#NONE} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_NONE = 0x0; //BorderStyle.NONE.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Thin border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#THIN} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_THIN = 0x1; //BorderStyle.THIN.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Medium border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#MEDIUM} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_MEDIUM = 0x2; //BorderStyle.MEDIUM.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* dash border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#DASHED} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_DASHED = 0x3; //BorderStyle.DASHED.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* dot border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#DOTTED} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_DOTTED = 0x4; //BorderStyle.DOTTED.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Thick border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#THICK} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_THICK = 0x5; //BorderStyle.THICK.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* double-line border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#DOUBLE} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_DOUBLE = 0x6; //BorderStyle.DOUBLE.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* hair-line border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#HAIR} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_HAIR = 0x7; //BorderStyle.HAIR.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Medium dashed border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#MEDIUM_DASHED} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_MEDIUM_DASHED = 0x8; //BorderStyle.MEDIUM_DASHED.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* dash-dot border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#DASH_DOT} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_DASH_DOT = 0x9; //BorderStyle.DASH_DOT.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* medium dash-dot border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#MEDIUM_DASH_DOT} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_MEDIUM_DASH_DOT = 0xA; //BorderStyle.MEDIUM_DASH_DOT.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* dash-dot-dot border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#DASH_DOT_DOT} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_DASH_DOT_DOT = 0xB; //BorderStyle.DASH_DOT_DOT.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* medium dash-dot-dot border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#MEDIUM_DASH_DOT_DOT} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_MEDIUM_DASH_DOT_DOT = 0xC; //BorderStyle.MEDIUM_DASH_DOT_DOT.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* slanted dash-dot border
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link BorderStyle#SLANTED_DASH_DOT} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BORDER_SLANTED_DASH_DOT = 0xD; //BorderStyle.SLANTED_DASH_DOT.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: No background
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#NO_FILL} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short NO_FILL = 0; //FillPatternType.NO_FILL.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Solidly filled
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#SOLID_FOREGROUND} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short SOLID_FOREGROUND = 1; //FillPatternType.SOLID_FOREGROUND.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Small fine dots
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#FINE_DOTS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short FINE_DOTS = 2; //FillPatternType.FINE_DOTS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Wide dots
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#ALT_BARS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short ALT_BARS = 3; //FillPatternType.ALT_BARS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Sparse dots
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#SPARSE_DOTS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short SPARSE_DOTS = 4; //FillPatternType.SPARSE_DOTS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Thick horizontal bands
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#THICK_HORZ_BANDS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short THICK_HORZ_BANDS = 5; //FillPatternType.THICK_HORZ_BANDS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Thick vertical bands
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#THICK_VERT_BANDS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short THICK_VERT_BANDS = 6; //FillPatternType.THICK_VERT_BANDS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Thick backward facing diagonals
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#THICK_BACKWARD_DIAG} instead.
|
2016-07-08 18:28:28 -04:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short THICK_BACKWARD_DIAG = 7; //FillPatternType.THICK_BACKWARD_DIAG.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Thick forward facing diagonals
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#THICK_FORWARD_DIAG} instead.
|
2016-07-08 18:28:28 -04:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short THICK_FORWARD_DIAG = 8; //FillPatternType.THICK_FORWARD_DIAG.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Large spots
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#BIG_SPOTS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BIG_SPOTS = 9; //FillPatternType.BIG_SPOTS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Brick-like layout
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#BRICKS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short BRICKS = 10; //FillPatternType.BRICKS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Thin horizontal bands
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#THIN_HORZ_BANDS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short THIN_HORZ_BANDS = 11; //FillPatternType.THIN_HORZ_BANDS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Thin vertical bands
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#THIN_VERT_BANDS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short THIN_VERT_BANDS = 12; //FillPatternType.THIN_VERT_BANDS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Thin backward diagonal
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#THIN_BACKWARD_DIAG} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short THIN_BACKWARD_DIAG = 13; //FillPatternType.THIN_BACKWARD_DIAG.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Thin forward diagonal
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#THIN_FORWARD_DIAG} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short THIN_FORWARD_DIAG = 14; //FillPatternType.THIN_FORWARD_DIAG.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Squares
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#SQUARES} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short SQUARES = 15; //FillPatternType.SQUARES.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Diamonds
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#DIAMONDS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short DIAMONDS = 16; //FillPatternType.DIAMONDS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Less Dots
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#LESS_DOTS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short LESS_DOTS = 17; //FillPatternType.LESS_DOTS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* Fill Pattern: Least Dots
|
|
|
|
* @deprecated 3.15 beta 3. Use {@link FillPatternType#LEAST_DOTS} instead.
|
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2016-09-28 17:01:40 -04:00
|
|
|
short LEAST_DOTS = 18; //FillPatternType.LEAST_DOTS.getCode();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
2008-10-28 06:03:51 -04:00
|
|
|
* get the index within the Workbook (sequence within the collection of ExtnededFormat objects)
|
2008-01-16 11:08:22 -05:00
|
|
|
* @return unique index number of the underlying record this style represents (probably you don't care
|
|
|
|
* unless you're comparing which one is which)
|
|
|
|
*/
|
|
|
|
|
|
|
|
short getIndex();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the data format (must be a valid format)
|
2008-10-28 06:03:51 -04:00
|
|
|
* @see DataFormat
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
void setDataFormat(short fmt);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the index of the format
|
2008-10-28 06:03:51 -04:00
|
|
|
* @see DataFormat
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
short getDataFormat();
|
|
|
|
|
2008-03-22 10:38:43 -04:00
|
|
|
/**
|
|
|
|
* Get the format string
|
|
|
|
*/
|
2016-09-28 17:01:40 -04:00
|
|
|
String getDataFormatString();
|
2008-03-22 10:38:43 -04:00
|
|
|
|
2008-01-16 11:08:22 -05:00
|
|
|
/**
|
|
|
|
* set the font for this style
|
2015-09-03 16:46:32 -04:00
|
|
|
* @param font a font object created or retrieved from the Workbook object
|
2008-10-28 06:03:51 -04:00
|
|
|
* @see Workbook#createFont()
|
|
|
|
* @see Workbook#getFontAt(short)
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
void setFont(Font font);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* gets the index of the font for this style
|
2008-10-28 06:03:51 -04:00
|
|
|
* @see Workbook#getFontAt(short)
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
short getFontIndex();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the cell's using this style to be hidden
|
|
|
|
* @param hidden - whether the cell using this style should be hidden
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setHidden(boolean hidden);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get whether the cell's using this style are to be hidden
|
|
|
|
* @return hidden - whether the cell using this style should be hidden
|
|
|
|
*/
|
|
|
|
|
|
|
|
boolean getHidden();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the cell's using this style to be locked
|
|
|
|
* @param locked - whether the cell using this style should be locked
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setLocked(boolean locked);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get whether the cell's using this style are to be locked
|
|
|
|
* @return hidden - whether the cell using this style should be locked
|
|
|
|
*/
|
|
|
|
|
|
|
|
boolean getLocked();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the type of horizontal alignment for the cell
|
|
|
|
* @param align - the type of alignment
|
|
|
|
* @see #ALIGN_GENERAL
|
|
|
|
* @see #ALIGN_LEFT
|
|
|
|
* @see #ALIGN_CENTER
|
|
|
|
* @see #ALIGN_RIGHT
|
|
|
|
* @see #ALIGN_FILL
|
|
|
|
* @see #ALIGN_JUSTIFY
|
|
|
|
* @see #ALIGN_CENTER_SELECTION
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link #setAlignment(HorizontalAlignment)} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
void setAlignment(short align);
|
2016-07-10 04:29:02 -04:00
|
|
|
/**
|
|
|
|
* set the type of horizontal alignment for the cell
|
|
|
|
* @param align - the type of alignment
|
|
|
|
*/
|
|
|
|
void setAlignment(HorizontalAlignment align);
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* get the type of horizontal alignment for the cell
|
|
|
|
* @return align - the type of alignment
|
|
|
|
* @see #ALIGN_GENERAL
|
|
|
|
* @see #ALIGN_LEFT
|
|
|
|
* @see #ALIGN_CENTER
|
|
|
|
* @see #ALIGN_RIGHT
|
|
|
|
* @see #ALIGN_FILL
|
|
|
|
* @see #ALIGN_JUSTIFY
|
|
|
|
* @see #ALIGN_CENTER_SELECTION
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link #getAlignmentEnum()} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
short getAlignment();
|
2016-07-10 04:29:02 -04:00
|
|
|
/**
|
|
|
|
* get the type of horizontal alignment for the cell
|
|
|
|
* @return align - the type of alignment
|
|
|
|
*/
|
|
|
|
HorizontalAlignment getAlignmentEnum();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
2008-10-29 15:12:47 -04:00
|
|
|
* Set whether the text should be wrapped.
|
|
|
|
* Setting this flag to <code>true</code> make all content visible
|
2016-07-10 04:29:02 -04:00
|
|
|
* within a cell by displaying it on multiple lines
|
2008-10-29 15:12:47 -04:00
|
|
|
*
|
2008-01-16 11:08:22 -05:00
|
|
|
* @param wrapped wrap text or not
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setWrapText(boolean wrapped);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get whether the text should be wrapped
|
|
|
|
* @return wrap text or not
|
|
|
|
*/
|
|
|
|
|
|
|
|
boolean getWrapText();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the type of vertical alignment for the cell
|
|
|
|
* @param align the type of alignment
|
|
|
|
* @see #VERTICAL_TOP
|
|
|
|
* @see #VERTICAL_CENTER
|
|
|
|
* @see #VERTICAL_BOTTOM
|
|
|
|
* @see #VERTICAL_JUSTIFY
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link #setVerticalAlignment(VerticalAlignment)} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
void setVerticalAlignment(short align);
|
2016-07-10 04:29:02 -04:00
|
|
|
/**
|
|
|
|
* set the type of vertical alignment for the cell
|
|
|
|
* @param align the type of alignment
|
|
|
|
*/
|
|
|
|
void setVerticalAlignment(VerticalAlignment align);
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* get the type of vertical alignment for the cell
|
|
|
|
* @return align the type of alignment
|
|
|
|
* @see #VERTICAL_TOP
|
|
|
|
* @see #VERTICAL_CENTER
|
|
|
|
* @see #VERTICAL_BOTTOM
|
|
|
|
* @see #VERTICAL_JUSTIFY
|
2016-07-10 04:29:02 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link #getVerticalAlignmentEnum()} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
short getVerticalAlignment();
|
2016-07-10 04:29:02 -04:00
|
|
|
/**
|
|
|
|
* get the type of vertical alignment for the cell
|
|
|
|
* @return align the type of alignment
|
|
|
|
*/
|
|
|
|
VerticalAlignment getVerticalAlignmentEnum();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
2016-01-03 08:28:17 -05:00
|
|
|
* set the degree of rotation for the text in the cell.
|
|
|
|
*
|
|
|
|
* Note: HSSF uses values from -90 to 90 degrees, whereas XSSF
|
|
|
|
* uses values from 0 to 180 degrees. The implementations of this method will map between these two value-ranges
|
|
|
|
* accordingly, however the corresponding getter is returning values in the range mandated by the current type
|
|
|
|
* of Excel file-format that this CellStyle is applied to.
|
|
|
|
*
|
|
|
|
* @param rotation degrees (see note above)
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
void setRotation(short rotation);
|
|
|
|
|
|
|
|
/**
|
2016-01-03 08:28:17 -05:00
|
|
|
* get the degree of rotation for the text in the cell.
|
|
|
|
*
|
|
|
|
* Note: HSSF uses values from -90 to 90 degrees, whereas XSSF
|
|
|
|
* uses values from 0 to 180 degrees. The implementations of this method will map between these two value-ranges
|
|
|
|
* value-range as used by the type of Excel file-format that this CellStyle is applied to.
|
|
|
|
*
|
|
|
|
* @return rotation degrees (see note above)
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
short getRotation();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the number of spaces to indent the text in the cell
|
|
|
|
* @param indent - number of spaces
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setIndention(short indent);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the number of spaces to indent the text in the cell
|
|
|
|
* @return indent - number of spaces
|
|
|
|
*/
|
|
|
|
|
|
|
|
short getIndention();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the type of border to use for the left border of the cell
|
|
|
|
* @param border type
|
|
|
|
* @see #BORDER_NONE
|
|
|
|
* @see #BORDER_THIN
|
|
|
|
* @see #BORDER_MEDIUM
|
|
|
|
* @see #BORDER_DASHED
|
|
|
|
* @see #BORDER_DOTTED
|
|
|
|
* @see #BORDER_THICK
|
|
|
|
* @see #BORDER_DOUBLE
|
|
|
|
* @see #BORDER_HAIR
|
|
|
|
* @see #BORDER_MEDIUM_DASHED
|
|
|
|
* @see #BORDER_DASH_DOT
|
|
|
|
* @see #BORDER_MEDIUM_DASH_DOT
|
|
|
|
* @see #BORDER_DASH_DOT_DOT
|
|
|
|
* @see #BORDER_MEDIUM_DASH_DOT_DOT
|
|
|
|
* @see #BORDER_SLANTED_DASH_DOT
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link #setBorderLeft(BorderStyle)} instead
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2008-01-16 11:08:22 -05:00
|
|
|
void setBorderLeft(short border);
|
2016-04-05 16:28:46 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the type of border to use for the left border of the cell
|
|
|
|
* @param border type
|
2016-09-18 20:20:44 -04:00
|
|
|
* @since POI 3.15
|
2016-04-05 16:28:46 -04:00
|
|
|
*/
|
|
|
|
void setBorderLeft(BorderStyle border);
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the left border of the cell
|
|
|
|
* @return border type
|
2016-09-18 20:20:44 -04:00
|
|
|
* @deprecated POI 3.15. Use {@link #getBorderLeftEnum()} instead.
|
|
|
|
* This will return a BorderStyle enum in the future.
|
|
|
|
*/
|
|
|
|
short getBorderLeft();
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the left border of the cell
|
|
|
|
* @return border type
|
|
|
|
* @since POI 3.15
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
BorderStyle getBorderLeftEnum();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the type of border to use for the right border of the cell
|
|
|
|
* @param border type
|
|
|
|
* @see #BORDER_NONE
|
|
|
|
* @see #BORDER_THIN
|
|
|
|
* @see #BORDER_MEDIUM
|
|
|
|
* @see #BORDER_DASHED
|
|
|
|
* @see #BORDER_DOTTED
|
|
|
|
* @see #BORDER_THICK
|
|
|
|
* @see #BORDER_DOUBLE
|
|
|
|
* @see #BORDER_HAIR
|
|
|
|
* @see #BORDER_MEDIUM_DASHED
|
|
|
|
* @see #BORDER_DASH_DOT
|
|
|
|
* @see #BORDER_MEDIUM_DASH_DOT
|
|
|
|
* @see #BORDER_DASH_DOT_DOT
|
|
|
|
* @see #BORDER_MEDIUM_DASH_DOT_DOT
|
|
|
|
* @see #BORDER_SLANTED_DASH_DOT
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link #setBorderRight(BorderStyle)} instead
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2008-01-16 11:08:22 -05:00
|
|
|
void setBorderRight(short border);
|
2016-04-05 16:28:46 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the type of border to use for the right border of the cell
|
|
|
|
* @param border type
|
2016-09-18 20:20:44 -04:00
|
|
|
* @since POI 3.15
|
2016-04-05 16:28:46 -04:00
|
|
|
*/
|
|
|
|
void setBorderRight(BorderStyle border);
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the right border of the cell
|
|
|
|
* @return border type
|
2016-09-18 20:20:44 -04:00
|
|
|
* @deprecated POI 3.15. Use {@link #getBorderRightEnum()} instead.
|
|
|
|
* This will return a BorderStyle enum in the future.
|
|
|
|
*/
|
|
|
|
short getBorderRight();
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the right border of the cell
|
|
|
|
* @return border type
|
|
|
|
* @since POI 3.15
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
BorderStyle getBorderRightEnum();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the type of border to use for the top border of the cell
|
|
|
|
* @param border type
|
|
|
|
* @see #BORDER_NONE
|
|
|
|
* @see #BORDER_THIN
|
|
|
|
* @see #BORDER_MEDIUM
|
|
|
|
* @see #BORDER_DASHED
|
|
|
|
* @see #BORDER_DOTTED
|
|
|
|
* @see #BORDER_THICK
|
|
|
|
* @see #BORDER_DOUBLE
|
|
|
|
* @see #BORDER_HAIR
|
|
|
|
* @see #BORDER_MEDIUM_DASHED
|
|
|
|
* @see #BORDER_DASH_DOT
|
|
|
|
* @see #BORDER_MEDIUM_DASH_DOT
|
|
|
|
* @see #BORDER_DASH_DOT_DOT
|
|
|
|
* @see #BORDER_MEDIUM_DASH_DOT_DOT
|
|
|
|
* @see #BORDER_SLANTED_DASH_DOT
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link #setBorderTop(BorderStyle)} instead
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2008-01-16 11:08:22 -05:00
|
|
|
void setBorderTop(short border);
|
2016-04-05 16:28:46 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the type of border to use for the top border of the cell
|
|
|
|
* @param border type
|
2016-09-18 20:20:44 -04:00
|
|
|
* @since POI 3.15
|
2016-04-05 16:28:46 -04:00
|
|
|
*/
|
|
|
|
void setBorderTop(BorderStyle border);
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the top border of the cell
|
|
|
|
* @return border type
|
2016-09-18 20:20:44 -04:00
|
|
|
* @deprecated POI 3.15. Use {@link #getBorderTopEnum()} instead.
|
|
|
|
* This will return a BorderStyle enum in the future.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
short getBorderTop();
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the top border of the cell
|
|
|
|
* @return border type
|
|
|
|
* @since POI 3.15
|
|
|
|
*/
|
|
|
|
BorderStyle getBorderTopEnum();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the type of border to use for the bottom border of the cell
|
|
|
|
* @param border type
|
|
|
|
* @see #BORDER_NONE
|
|
|
|
* @see #BORDER_THIN
|
|
|
|
* @see #BORDER_MEDIUM
|
|
|
|
* @see #BORDER_DASHED
|
|
|
|
* @see #BORDER_DOTTED
|
|
|
|
* @see #BORDER_THICK
|
|
|
|
* @see #BORDER_DOUBLE
|
|
|
|
* @see #BORDER_HAIR
|
|
|
|
* @see #BORDER_MEDIUM_DASHED
|
|
|
|
* @see #BORDER_DASH_DOT
|
|
|
|
* @see #BORDER_MEDIUM_DASH_DOT
|
|
|
|
* @see #BORDER_DASH_DOT_DOT
|
|
|
|
* @see #BORDER_MEDIUM_DASH_DOT_DOT
|
|
|
|
* @see #BORDER_SLANTED_DASH_DOT
|
2016-04-05 19:30:37 -04:00
|
|
|
* @deprecated 3.15 beta 2. Use {@link #setBorderBottom(BorderStyle)} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
@Removal(version="3.17")
|
2008-01-16 11:08:22 -05:00
|
|
|
void setBorderBottom(short border);
|
2016-04-05 16:28:46 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the type of border to use for the bottom border of the cell
|
|
|
|
* @param border type
|
2016-09-18 20:20:44 -04:00
|
|
|
* @since POI 3.15
|
2016-04-05 16:28:46 -04:00
|
|
|
*/
|
|
|
|
void setBorderBottom(BorderStyle border);
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the bottom border of the cell
|
|
|
|
* @return border type
|
2016-09-18 20:20:44 -04:00
|
|
|
* @deprecated POI 3.15. Use {@link #getBorderBottomEnum()} instead.
|
|
|
|
* This will return a BorderStyle enum in the future.
|
|
|
|
*/
|
|
|
|
short getBorderBottom();
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the bottom border of the cell
|
|
|
|
* @return border type
|
|
|
|
* @since POI 3.15
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
2016-09-18 20:20:44 -04:00
|
|
|
BorderStyle getBorderBottomEnum();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the color to use for the left border
|
|
|
|
* @param color The index of the color definition
|
|
|
|
*/
|
|
|
|
void setLeftBorderColor(short color);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the color to use for the left border
|
|
|
|
*/
|
|
|
|
short getLeftBorderColor();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the color to use for the right border
|
|
|
|
* @param color The index of the color definition
|
|
|
|
*/
|
|
|
|
void setRightBorderColor(short color);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the color to use for the left border
|
2008-10-28 06:03:51 -04:00
|
|
|
* @return the index of the color definition
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
short getRightBorderColor();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the color to use for the top border
|
|
|
|
* @param color The index of the color definition
|
|
|
|
*/
|
|
|
|
void setTopBorderColor(short color);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the color to use for the top border
|
2016-06-11 07:01:48 -04:00
|
|
|
* @return the index of the color definition
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
short getTopBorderColor();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the color to use for the bottom border
|
|
|
|
* @param color The index of the color definition
|
|
|
|
*/
|
|
|
|
void setBottomBorderColor(short color);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the color to use for the left border
|
2008-10-28 06:03:51 -04:00
|
|
|
* @return the index of the color definition
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
short getBottomBorderColor();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* setting to one fills the cell with the foreground color... No idea about
|
|
|
|
* other values
|
|
|
|
*
|
|
|
|
* @see #NO_FILL
|
|
|
|
* @see #SOLID_FOREGROUND
|
|
|
|
* @see #FINE_DOTS
|
|
|
|
* @see #ALT_BARS
|
|
|
|
* @see #SPARSE_DOTS
|
|
|
|
* @see #THICK_HORZ_BANDS
|
|
|
|
* @see #THICK_VERT_BANDS
|
|
|
|
* @see #THICK_BACKWARD_DIAG
|
|
|
|
* @see #THICK_FORWARD_DIAG
|
|
|
|
* @see #BIG_SPOTS
|
|
|
|
* @see #BRICKS
|
|
|
|
* @see #THIN_HORZ_BANDS
|
|
|
|
* @see #THIN_VERT_BANDS
|
|
|
|
* @see #THIN_BACKWARD_DIAG
|
|
|
|
* @see #THIN_FORWARD_DIAG
|
|
|
|
* @see #SQUARES
|
|
|
|
* @see #DIAMONDS
|
|
|
|
*
|
|
|
|
* @param fp fill pattern (set to 1 to fill w/foreground color)
|
2016-07-08 18:28:28 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. Use {@link #setFillPattern(FillPatternType)} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
void setFillPattern(short fp);
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* setting to one fills the cell with the foreground color... No idea about
|
|
|
|
* other values
|
|
|
|
*
|
|
|
|
* @see #NO_FILL
|
|
|
|
* @see #SOLID_FOREGROUND
|
|
|
|
* @see #FINE_DOTS
|
|
|
|
* @see #ALT_BARS
|
|
|
|
* @see #SPARSE_DOTS
|
|
|
|
* @see #THICK_HORZ_BANDS
|
|
|
|
* @see #THICK_VERT_BANDS
|
|
|
|
* @see #THICK_BACKWARD_DIAG
|
|
|
|
* @see #THICK_FORWARD_DIAG
|
|
|
|
* @see #BIG_SPOTS
|
|
|
|
* @see #BRICKS
|
|
|
|
* @see #THIN_HORZ_BANDS
|
|
|
|
* @see #THIN_VERT_BANDS
|
|
|
|
* @see #THIN_BACKWARD_DIAG
|
|
|
|
* @see #THIN_FORWARD_DIAG
|
|
|
|
* @see #SQUARES
|
|
|
|
* @see #DIAMONDS
|
|
|
|
*
|
|
|
|
* @param fp fill pattern (set to {@link FillPatternType#SOLID_FOREGROUND} to fill w/foreground color)
|
|
|
|
* @since POI 3.15 beta 3
|
|
|
|
*/
|
|
|
|
void setFillPattern(FillPatternType fp);
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* get the fill pattern (??) - set to 1 to fill with foreground color
|
|
|
|
* @return fill pattern
|
2016-07-08 18:28:28 -04:00
|
|
|
* @deprecated POI 3.15 beta 3. This method will return {@link FillPatternType} in the future. Use {@link #setFillPattern(FillPatternType)} instead.
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
short getFillPattern();
|
2016-07-08 18:28:28 -04:00
|
|
|
/**
|
|
|
|
* get the fill pattern (??) - set to 1 to fill with foreground color
|
|
|
|
* @return fill pattern
|
|
|
|
* @since POI 3.15 beta 3
|
|
|
|
*/
|
|
|
|
FillPatternType getFillPatternEnum();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the background fill color.
|
|
|
|
*
|
|
|
|
* @param bg color
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setFillBackgroundColor(short bg);
|
|
|
|
|
|
|
|
/**
|
2010-05-26 13:46:46 -04:00
|
|
|
* get the background fill color, if the fill
|
|
|
|
* is defined with an indexed color.
|
|
|
|
* @return fill color index, or 0 if not indexed (XSSF only)
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
short getFillBackgroundColor();
|
2010-05-26 13:46:46 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the color object representing the current
|
|
|
|
* background fill, resolving indexes using
|
|
|
|
* the supplied workbook.
|
|
|
|
* This will work for both indexed and rgb
|
|
|
|
* defined colors.
|
|
|
|
*/
|
|
|
|
Color getFillBackgroundColorColor();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* set the foreground fill color
|
|
|
|
* <i>Note: Ensure Foreground color is set prior to background color.</i>
|
|
|
|
* @param bg color
|
|
|
|
*/
|
|
|
|
void setFillForegroundColor(short bg);
|
|
|
|
|
|
|
|
/**
|
2010-05-26 13:46:46 -04:00
|
|
|
* get the foreground fill color, if the fill
|
|
|
|
* is defined with an indexed color.
|
|
|
|
* @return fill color, or 0 if not indexed (XSSF only)
|
2008-01-16 11:08:22 -05:00
|
|
|
*/
|
|
|
|
short getFillForegroundColor();
|
2010-05-26 13:46:46 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets the color object representing the current
|
|
|
|
* foreground fill, resolving indexes using
|
|
|
|
* the supplied workbook.
|
|
|
|
* This will work for both indexed and rgb
|
|
|
|
* defined colors.
|
|
|
|
*/
|
|
|
|
Color getFillForegroundColorColor();
|
2008-01-16 11:08:22 -05:00
|
|
|
|
Merged revisions 638786-638802,638805-638811,638813-638814,638816-639230,639233-639241,639243-639253,639255-639486,639488-639601,639603-639835,639837-639917,639919-640056,640058-640710,640712-641156,641158-641184,641186-641795,641797-641798,641800-641933,641935-641963,641965-641966,641968-641995,641997-642230,642232-642562,642564-642565,642568-642570,642572-642573,642576-642736,642739-642877,642879,642881-642890,642892-642903,642905-642945,642947-643624,643626-643653,643655-643669,643671,643673-643830,643832-643833,643835-644342,644344-644472,644474-644508,644510-645347,645349-645351,645353-645559,645561-645565,645568-645951,645953-646193,646195-646311,646313-646404,646406-646665,646667-646853,646855-646869,646871-647151,647153-647185,647187-647277,647279-647566,647568-647573,647575,647578-647711,647714-647737,647739-647823,647825-648155,648157-648202,648204-648273,648275,648277-648302,648304-648333,648335-648588,648590-648622,648625-648673,648675-649141,649144,649146-649556,649558-649795,649799,649801-649910,649912-649913,649915-650128,650131-650132,650134-650137,650140-650914,650916-651991,651993-652284,652286-652287,652289,652291,652293-652297,652299-652328,652330-652425,652427-652445,652447-652560,652562-652933,652935,652937-652993,652995-653116,653118-653124,653126-653483,653487-653519,653522-653550,653552-653607,653609-653667,653669-653674,653676-653814,653817-653830,653832-653891,653893-653944,653946-654055,654057-654355,654357-654365,654367-654648,654651-655215,655217-655277,655279-655281,655283-655911,655913-656212,656214,656216-656251,656253-656698,656700-656756,656758-656892,656894-657135,657137-657165,657168-657179,657181-657354,657356-657357,657359-657701,657703-657874,657876-658032,658034-658284,658286,658288-658301,658303-658307,658309-658321,658323-658335,658337-658348,658351,658353-658832,658834-658983,658985,658987-659066,659068-659402,659404-659428,659430-659451,659453-659454,659456-659461,659463-659477,659479-659524,659526-659571,659574,659576-660255,660257-660262,660264-660279,660281-660343,660345-660473,660475-660827,660829-660833,660835-660888,660890-663321,663323-663435,663437-663764,663766-663854,663856-664219,664221-664489,664494-664514,664516-668013,668015-668142,668144-668152,668154,668156-668256,668258,668260-669139,669141-669455,669457-669657,669659-669808,669810-670189,670191-671321,671323-672229,672231-672549,672551-672552,672554-672561,672563-672566,672568,672571-673049,673051-673852,673854-673862,673864-673986,673988-673996,673998-674347,674349-674890,674892-674910,674912-674936,674938-674952,674954-675078,675080-675085,675087-675217,675219-675660,675662-675670,675672-675716,675718-675726,675728-675733,675735-675775,675777-675782,675784,675786-675791,675794-676205 via svnmerge from
https://svn.apache.org:443/repos/asf/poi/trunk
........
r675853 | josh | 2008-07-11 08:59:44 +0100 (Fri, 11 Jul 2008) | 1 line
Patch 45289 - finished support for special comparison operators in COUNTIF
........
r676201 | nick | 2008-07-12 17:56:55 +0100 (Sat, 12 Jul 2008) | 1 line
Support for cloning one font record onto another, plus tests
........
r676203 | nick | 2008-07-12 18:21:54 +0100 (Sat, 12 Jul 2008) | 1 line
Support for cloning one extended format record onto another, plus tests
........
r676205 | nick | 2008-07-12 18:38:10 +0100 (Sat, 12 Jul 2008) | 1 line
Allow the cloning of one HSSFCellStyle onto another, including cloning styles from one HSSFWorkbook onto another
........
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@676209 13f79535-47bb-0310-9956-ffa450edef68
2008-07-12 14:17:16 -04:00
|
|
|
/**
|
|
|
|
* Clones all the style information from another
|
|
|
|
* CellStyle, onto this one. This
|
|
|
|
* CellStyle will then have all the same
|
|
|
|
* properties as the source, but the two may
|
|
|
|
* be edited independently.
|
|
|
|
* Any stylings on this CellStyle will be lost!
|
|
|
|
*
|
|
|
|
* The source CellStyle could be from another
|
|
|
|
* Workbook if you like. This allows you to
|
|
|
|
* copy styles from one Workbook to another.
|
|
|
|
*
|
|
|
|
* However, both of the CellStyles will need
|
|
|
|
* to be of the same type (HSSFCellStyle or
|
|
|
|
* XSSFCellStyle)
|
|
|
|
*/
|
2016-09-28 17:01:40 -04:00
|
|
|
void cloneStyleFrom(CellStyle source);
|
2013-11-07 17:28:06 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Controls if the Cell should be auto-sized
|
|
|
|
* to shrink to fit if the text is too long
|
|
|
|
*/
|
2016-09-28 17:01:40 -04:00
|
|
|
void setShrinkToFit(boolean shrinkToFit);
|
2013-11-07 17:28:06 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Should the Cell be auto-sized by Excel to shrink
|
|
|
|
* it to fit if this text is too long?
|
|
|
|
*/
|
2016-09-28 17:01:40 -04:00
|
|
|
boolean getShrinkToFit();
|
2016-04-04 19:26:44 -04:00
|
|
|
}
|