Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
What Is poi-5.2.3.jar?
What Is poi-5.2.3.jar?
✍: FYIcenter.com
poi-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an API for Microsoft document files of Word, Excel, PowerPoint, and Visio.
poi-5.2.3.jar supports Apache POI components that read and write Microsoft's OLE 2 Compound document format, which is used in early versions of Microsoft Office tools like Word 97, Excel 97, PowerPoint 97, etc.
poi-5.2.3.jar is distributed as part of the poi-bin-5.2.3-20220909.zip download file.
JAR File Size and Download Location:
JAR name: poi-5.2.3.jar Target JDK version: 9 File name: poi.jar, poi-5.2.3.jar File size: 2964641 bytes Release date: 09-09-2022 Download: Apache POI Website
Here are Java Source Code files for poi-5.2.3.jar:
⏎ org/apache/poi/hssf/record/cf/BorderFormatting.java
/* ==================================================================== 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.hssf.record.cf; import java.util.Collections; import java.util.LinkedHashMap; import java.util.Map; import java.util.function.Supplier; import org.apache.poi.common.Duplicatable; import org.apache.poi.common.usermodel.GenericRecord; import org.apache.poi.util.BitField; import org.apache.poi.util.BitFieldFactory; import org.apache.poi.util.GenericRecordJsonWriter; import org.apache.poi.util.LittleEndian; import org.apache.poi.util.LittleEndianInput; import org.apache.poi.util.LittleEndianOutput; /** * Border Formatting Block of the Conditional Formatting Rule Record. */ public final class BorderFormatting implements Duplicatable, GenericRecord { /** No border */ public static final short BORDER_NONE = 0x0; /** Thin border */ public static final short BORDER_THIN = 0x1; /** Medium border */ public static final short BORDER_MEDIUM = 0x2; /** dash border */ public static final short BORDER_DASHED = 0x3; /** dot border */ public static final short BORDER_HAIR = 0x4; /** Thick border */ public static final short BORDER_THICK = 0x5; /** double-line border */ public static final short BORDER_DOUBLE = 0x6; /** hair-line border */ public static final short BORDER_DOTTED = 0x7; /** Medium dashed border */ public static final short BORDER_MEDIUM_DASHED = 0x8; /** dash-dot border */ public static final short BORDER_DASH_DOT = 0x9; /** medium dash-dot border */ public static final short BORDER_MEDIUM_DASH_DOT = 0xA; /** dash-dot-dot border */ public static final short BORDER_DASH_DOT_DOT = 0xB; /** medium dash-dot-dot border */ public static final short BORDER_MEDIUM_DASH_DOT_DOT = 0xC; /** slanted dash-dot border */ public static final short BORDER_SLANTED_DASH_DOT = 0xD; // BORDER FORMATTING BLOCK // For Border Line Style codes see HSSFCellStyle.BORDER_XXXXXX private static final BitField bordLeftLineStyle = BitFieldFactory.getInstance(0x0000000F); private static final BitField bordRightLineStyle = BitFieldFactory.getInstance(0x000000F0); private static final BitField bordTopLineStyle = BitFieldFactory.getInstance(0x00000F00); private static final BitField bordBottomLineStyle= BitFieldFactory.getInstance(0x0000F000); private static final BitField bordLeftLineColor = BitFieldFactory.getInstance(0x007F0000); private static final BitField bordRightLineColor = BitFieldFactory.getInstance(0x3F800000); private static final BitField bordTlBrLineOnOff = BitFieldFactory.getInstance(0x40000000); private static final BitField bordBlTrtLineOnOff = BitFieldFactory.getInstance(0x80000000); private static final BitField bordTopLineColor = BitFieldFactory.getInstance(0x0000007F); private static final BitField bordBottomLineColor= BitFieldFactory.getInstance(0x00003f80); private static final BitField bordDiagLineColor = BitFieldFactory.getInstance(0x001FC000); private static final BitField bordDiagLineStyle = BitFieldFactory.getInstance(0x01E00000); private int field_13_border_styles1; private int field_14_border_styles2; public BorderFormatting() { field_13_border_styles1 = 0; field_14_border_styles2 = 0; } public BorderFormatting(BorderFormatting other) { field_13_border_styles1 = other.field_13_border_styles1; field_14_border_styles2 = other.field_14_border_styles2; } /** Creates new FontFormatting */ public BorderFormatting(LittleEndianInput in) { field_13_border_styles1 = in.readInt(); field_14_border_styles2 = in.readInt(); } public int getDataLength() { return 8; } /** * 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 */ public void setBorderLeft(int border) { field_13_border_styles1 = bordLeftLineStyle.setValue(field_13_border_styles1, 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 */ public int getBorderLeft() { return bordLeftLineStyle.getValue(field_13_border_styles1); } /** * 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 */ public void setBorderRight(int border) { field_13_border_styles1 = bordRightLineStyle.setValue(field_13_border_styles1, 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 */ public int getBorderRight() { return bordRightLineStyle.getValue(field_13_border_styles1); } /** * 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 */ public void setBorderTop(int border) { field_13_border_styles1 = bordTopLineStyle.setValue(field_13_border_styles1, 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 */ public int getBorderTop() { return bordTopLineStyle.getValue(field_13_border_styles1); } /** * 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 */ public void setBorderBottom(int border) { field_13_border_styles1 = bordBottomLineStyle.setValue(field_13_border_styles1, 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 */ public int getBorderBottom() { return bordBottomLineStyle.getValue(field_13_border_styles1); } /** * set the type of border to use for the diagonal 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 */ public void setBorderDiagonal(int border) { field_14_border_styles2 = bordDiagLineStyle.setValue(field_14_border_styles2, border); } /** * get the type of border to use for the diagonal 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 */ public int getBorderDiagonal() { return bordDiagLineStyle.getValue(field_14_border_styles2); } /** * set the color to use for the left border * @param color The index of the color definition */ public void setLeftBorderColor(int color) { field_13_border_styles1 = bordLeftLineColor.setValue(field_13_border_styles1, color); } /** * get the color to use for the left border * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short) * @return The index of the color definition */ public int getLeftBorderColor() { return bordLeftLineColor.getValue(field_13_border_styles1); } /** * set the color to use for the right border * @param color The index of the color definition */ public void setRightBorderColor(int color) { field_13_border_styles1 = bordRightLineColor.setValue(field_13_border_styles1, color); } /** * get the color to use for the right border * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short) * @return The index of the color definition */ public int getRightBorderColor() { return bordRightLineColor.getValue(field_13_border_styles1); } /** * set the color to use for the top border * @param color The index of the color definition */ public void setTopBorderColor(int color) { field_14_border_styles2 = bordTopLineColor.setValue(field_14_border_styles2, color); } /** * get the color to use for the top border * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short) * @return The index of the color definition */ public int getTopBorderColor() { return bordTopLineColor.getValue(field_14_border_styles2); } /** * set the color to use for the bottom border * @param color The index of the color definition */ public void setBottomBorderColor(int color) { field_14_border_styles2 = bordBottomLineColor.setValue(field_14_border_styles2, color); } /** * get the color to use for the bottom border * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short) * @return The index of the color definition */ public int getBottomBorderColor() { return bordBottomLineColor.getValue(field_14_border_styles2); } /** * set the color to use for the diagonal borders * @param color The index of the color definition */ public void setDiagonalBorderColor(int color) { field_14_border_styles2 = bordDiagLineColor.setValue(field_14_border_styles2, color); } /** * get the color to use for the diagonal border * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short) * @return The index of the color definition */ public int getDiagonalBorderColor() { return bordDiagLineColor.getValue(field_14_border_styles2); } /** * Of/off bottom left to top right line * * @param on - if <code>true</code> - on, otherwise off */ public void setForwardDiagonalOn(boolean on) { field_13_border_styles1 = bordBlTrtLineOnOff.setBoolean(field_13_border_styles1, on); } /** * Of/off top left to bottom right line * * @param on - if <code>true</code> - on, otherwise off */ public void setBackwardDiagonalOn(boolean on) { field_13_border_styles1 = bordTlBrLineOnOff.setBoolean(field_13_border_styles1, on); } /** * @return <code>true</code> if forward diagonal is on */ public boolean isForwardDiagonalOn() { return bordBlTrtLineOnOff.isSet(field_13_border_styles1); } /** * @return <code>true</code> if backward diagonal is on */ public boolean isBackwardDiagonalOn() { return bordTlBrLineOnOff.isSet(field_13_border_styles1); } @Override public Map<String, Supplier<?>> getGenericProperties() { final Map<String,Supplier<?>> m = new LinkedHashMap<>(); m.put("borderLeft", this::getBorderLeft); m.put("borderRight", this::getBorderRight); m.put("borderTop", this::getBorderTop); m.put("borderBottom", this::getBorderBottom); m.put("leftBorderColor", this::getLeftBorderColor); m.put("rightBorderColor", this::getRightBorderColor); m.put("topBorderColor", this::getTopBorderColor); m.put("bottomBorderColor", this::getBottomBorderColor); m.put("forwardDiagonalOn", this::isForwardDiagonalOn); m.put("backwardDiagonalOn", this::isBackwardDiagonalOn); return Collections.unmodifiableMap(m); } public String toString() { return GenericRecordJsonWriter.marshal(this); } public BorderFormatting copy() { return new BorderFormatting(this); } public int serialize(int offset, byte [] data) { LittleEndian.putInt(data, offset, field_13_border_styles1); LittleEndian.putInt(data, offset+4, field_14_border_styles2); return 8; } public void serialize(LittleEndianOutput out) { out.writeInt(field_13_border_styles1); out.writeInt(field_14_border_styles2); } }
⏎ org/apache/poi/hssf/record/cf/BorderFormatting.java
Or download all of them as a single archive file:
File name: poi-5.2.3-src.zip File size: 2479830 bytes Release date: 2022-09-09 Download
⇒ What Is poi-ooxml-5.2.3.jar?
⇐ What Is poi-bin-5.2.3-20220909.zip?
2017-04-04, 92464👍, 0💬
Popular Posts:
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open s...
GJT (Giant Java Tree) implementation of XML Pull Parser. JAR File Size and Download Location: File n...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...