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;
|
|
|
|
|
|
|
|
public interface CellStyle {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* general (normal) horizontal alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short ALIGN_GENERAL = 0x0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* left-justified horizontal alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short ALIGN_LEFT = 0x1;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* center horizontal alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short ALIGN_CENTER = 0x2;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* right-justified horizontal alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short ALIGN_RIGHT = 0x3;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* fill? horizontal alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short ALIGN_FILL = 0x4;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* justified horizontal alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short ALIGN_JUSTIFY = 0x5;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* center-selection? horizontal alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short ALIGN_CENTER_SELECTION = 0x6;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* top-aligned vertical alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short VERTICAL_TOP = 0x0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* center-aligned vertical alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short VERTICAL_CENTER = 0x1;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* bottom-aligned vertical alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short VERTICAL_BOTTOM = 0x2;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* vertically justified vertical alignment
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short VERTICAL_JUSTIFY = 0x3;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* No border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_NONE = 0x0;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Thin border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_THIN = 0x1;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Medium border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_MEDIUM = 0x2;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* dash border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_DASHED = 0x3;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* dot border
|
|
|
|
*/
|
|
|
|
|
2013-11-07 17:28:06 -05:00
|
|
|
public final static short BORDER_HAIR = 0x7;
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Thick border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_THICK = 0x5;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* double-line border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_DOUBLE = 0x6;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* hair-line border
|
|
|
|
*/
|
|
|
|
|
2013-11-07 17:28:06 -05:00
|
|
|
public final static short BORDER_DOTTED = 0x4;
|
2008-01-16 11:08:22 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Medium dashed border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_MEDIUM_DASHED = 0x8;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* dash-dot border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_DASH_DOT = 0x9;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* medium dash-dot border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_MEDIUM_DASH_DOT = 0xA;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* dash-dot-dot border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_DASH_DOT_DOT = 0xB;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* medium dash-dot-dot border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_MEDIUM_DASH_DOT_DOT = 0xC;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* slanted dash-dot border
|
|
|
|
*/
|
|
|
|
|
|
|
|
public final static short BORDER_SLANTED_DASH_DOT = 0xD;
|
|
|
|
|
|
|
|
/** No background */
|
|
|
|
public final static short NO_FILL = 0;
|
|
|
|
|
|
|
|
/** Solidly filled */
|
|
|
|
public final static short SOLID_FOREGROUND = 1;
|
|
|
|
|
|
|
|
/** Small fine dots */
|
|
|
|
public final static short FINE_DOTS = 2;
|
|
|
|
|
|
|
|
/** Wide dots */
|
|
|
|
public final static short ALT_BARS = 3;
|
|
|
|
|
|
|
|
/** Sparse dots */
|
|
|
|
public final static short SPARSE_DOTS = 4;
|
|
|
|
|
|
|
|
/** Thick horizontal bands */
|
|
|
|
public final static short THICK_HORZ_BANDS = 5;
|
|
|
|
|
|
|
|
/** Thick vertical bands */
|
|
|
|
public final static short THICK_VERT_BANDS = 6;
|
|
|
|
|
|
|
|
/** Thick backward facing diagonals */
|
|
|
|
public final static short THICK_BACKWARD_DIAG = 7;
|
|
|
|
|
|
|
|
/** Thick forward facing diagonals */
|
|
|
|
public final static short THICK_FORWARD_DIAG = 8;
|
|
|
|
|
|
|
|
/** Large spots */
|
|
|
|
public final static short BIG_SPOTS = 9;
|
|
|
|
|
|
|
|
/** Brick-like layout */
|
|
|
|
public final static short BRICKS = 10;
|
|
|
|
|
|
|
|
/** Thin horizontal bands */
|
|
|
|
public final static short THIN_HORZ_BANDS = 11;
|
|
|
|
|
|
|
|
/** Thin vertical bands */
|
|
|
|
public final static short THIN_VERT_BANDS = 12;
|
|
|
|
|
|
|
|
/** Thin backward diagonal */
|
|
|
|
public final static short THIN_BACKWARD_DIAG = 13;
|
|
|
|
|
|
|
|
/** Thin forward diagonal */
|
|
|
|
public final static short THIN_FORWARD_DIAG = 14;
|
|
|
|
|
|
|
|
/** Squares */
|
|
|
|
public final static short SQUARES = 15;
|
|
|
|
|
|
|
|
/** Diamonds */
|
|
|
|
public final static short DIAMONDS = 16;
|
|
|
|
|
|
|
|
/** Less Dots */
|
|
|
|
public final static short LESS_DOTS = 17;
|
|
|
|
|
|
|
|
/** Least Dots */
|
|
|
|
public final static short LEAST_DOTS = 18;
|
|
|
|
|
|
|
|
/**
|
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
|
|
|
|
*/
|
|
|
|
public String getDataFormatString();
|
|
|
|
|
2008-01-16 11:08:22 -05:00
|
|
|
/**
|
|
|
|
* set the font for this style
|
2008-10-28 06:03:51 -04:00
|
|
|
* @param font a font object created or retreived from the Workbook object
|
|
|
|
* @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
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setAlignment(short align);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
short getAlignment();
|
|
|
|
|
|
|
|
/**
|
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
|
|
|
|
* whithin a cell by displaying it on multiple lines
|
|
|
|
*
|
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
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setVerticalAlignment(short align);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
short getVerticalAlignment();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* set the degree of rotation for the text in the cell
|
|
|
|
* @param rotation degrees (between -90 and 90 degrees)
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setRotation(short rotation);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the degree of rotation for the text in the cell
|
|
|
|
* @return rotation degrees (between -90 and 90 degrees)
|
|
|
|
*/
|
|
|
|
|
|
|
|
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
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setBorderLeft(short border);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the left border of the cell
|
|
|
|
* @return 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
short getBorderLeft();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setBorderRight(short border);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the right border of the cell
|
|
|
|
* @return 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
short getBorderRight();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setBorderTop(short border);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the top border of the cell
|
|
|
|
* @return 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
short getBorderTop();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
|
|
|
*/
|
|
|
|
|
|
|
|
void setBorderBottom(short border);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the type of border to use for the bottom border of the cell
|
|
|
|
* @return 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
|
|
|
|
*/
|
|
|
|
short getBorderBottom();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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
|
2008-10-28 06:03:51 -04:00
|
|
|
* @return hhe 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)
|
|
|
|
*/
|
|
|
|
void setFillPattern(short fp);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the fill pattern (??) - set to 1 to fill with foreground color
|
|
|
|
* @return fill pattern
|
|
|
|
*/
|
|
|
|
|
|
|
|
short getFillPattern();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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)
|
|
|
|
*/
|
|
|
|
public 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
|
|
|
|
*/
|
|
|
|
public void setShrinkToFit(boolean shrinkToFit);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Should the Cell be auto-sized by Excel to shrink
|
|
|
|
* it to fit if this text is too long?
|
|
|
|
*/
|
|
|
|
public boolean getShrinkToFit();
|
|
|
|
}
|