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/PatternFormatting.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 static org.apache.poi.util.GenericRecordUtil.getEnumBitsAsString; 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.GenericRecordUtil; import org.apache.poi.util.LittleEndianInput; import org.apache.poi.util.LittleEndianOutput; /** * Pattern Formatting Block of the Conditional Formatting Rule Record. */ public final class PatternFormatting implements Duplicatable, GenericRecord { /** No background */ public static final short NO_FILL = 0 ; /** Solidly filled */ public static final short SOLID_FOREGROUND = 1 ; /** Small fine dots */ public static final short FINE_DOTS = 2 ; /** Wide dots */ public static final short ALT_BARS = 3 ; /** Sparse dots */ public static final short SPARSE_DOTS = 4 ; /** Thick horizontal bands */ public static final short THICK_HORZ_BANDS = 5 ; /** Thick vertical bands */ public static final short THICK_VERT_BANDS = 6 ; /** Thick backward facing diagonals */ public static final short THICK_BACKWARD_DIAG = 7 ; /** Thick forward facing diagonals */ public static final short THICK_FORWARD_DIAG = 8 ; /** Large spots */ public static final short BIG_SPOTS = 9 ; /** Brick-like layout */ public static final short BRICKS = 10 ; /** Thin horizontal bands */ public static final short THIN_HORZ_BANDS = 11 ; /** Thin vertical bands */ public static final short THIN_VERT_BANDS = 12 ; /** Thin backward diagonal */ public static final short THIN_BACKWARD_DIAG = 13 ; /** Thin forward diagonal */ public static final short THIN_FORWARD_DIAG = 14 ; /** Squares */ public static final short SQUARES = 15 ; /** Diamonds */ public static final short DIAMONDS = 16 ; /** Less Dots */ public static final short LESS_DOTS = 17 ; /** Least Dots */ public static final short LEAST_DOTS = 18 ; // PATTERN FORMATING BLOCK // For Pattern Styles see constants at HSSFCellStyle (from NO_FILL to LEAST_DOTS) private static final BitField fillPatternStyle = BitFieldFactory.getInstance(0xFC00); private static final BitField patternColorIndex = BitFieldFactory.getInstance(0x007F); private static final BitField patternBackgroundColorIndex = BitFieldFactory.getInstance(0x3F80); private int field_15_pattern_style; private int field_16_pattern_color_indexes; public PatternFormatting() { field_15_pattern_style = 0; field_16_pattern_color_indexes = 0; } public PatternFormatting(PatternFormatting other) { field_15_pattern_style = other.field_15_pattern_style; field_16_pattern_color_indexes = other.field_16_pattern_color_indexes; } public PatternFormatting(LittleEndianInput in) { field_15_pattern_style = in.readUShort(); field_16_pattern_color_indexes = in.readUShort(); } public int getDataLength() { return 4; } /** * setting fill pattern * * @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 */ public void setFillPattern(int fp) { field_15_pattern_style = fillPatternStyle.setValue(field_15_pattern_style, fp); } /** * @return fill pattern */ public int getFillPattern() { return fillPatternStyle.getValue(field_15_pattern_style); } /** * set the background fill color. */ public void setFillBackgroundColor(int bg) { field_16_pattern_color_indexes = patternBackgroundColorIndex.setValue(field_16_pattern_color_indexes,bg); } /** * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short) * @return get the background fill color */ public int getFillBackgroundColor() { return patternBackgroundColorIndex.getValue(field_16_pattern_color_indexes); } /** * set the foreground fill color */ public void setFillForegroundColor(int fg) { field_16_pattern_color_indexes = patternColorIndex.setValue(field_16_pattern_color_indexes,fg); } /** * @see org.apache.poi.hssf.usermodel.HSSFPalette#getColor(short) * @return get the foreground fill color */ public int getFillForegroundColor() { return patternColorIndex.getValue(field_16_pattern_color_indexes); } @Override public Map<String, Supplier<?>> getGenericProperties() { return GenericRecordUtil.getGenericProperties( "fillPattern", getEnumBitsAsString(this::getFillPattern, new int[]{NO_FILL, SOLID_FOREGROUND, FINE_DOTS, ALT_BARS, SPARSE_DOTS, THICK_HORZ_BANDS, THICK_VERT_BANDS, THICK_BACKWARD_DIAG, THICK_FORWARD_DIAG, BIG_SPOTS, BRICKS, THIN_HORZ_BANDS, THIN_VERT_BANDS, THIN_BACKWARD_DIAG, THIN_FORWARD_DIAG, SQUARES, DIAMONDS, LESS_DOTS, LEAST_DOTS}, new String[]{"NO_FILL", "SOLID_FOREGROUND", "FINE_DOTS", "ALT_BARS", "SPARSE_DOTS", "THICK_HORZ_BANDS", "THICK_VERT_BANDS", "THICK_BACKWARD_DIAG", "THICK_FORWARD_DIAG", "BIG_SPOTS", "BRICKS", "THIN_HORZ_BANDS", "THIN_VERT_BANDS", "THIN_BACKWARD_DIAG", "THIN_FORWARD_DIAG", "SQUARES", "DIAMONDS", "LESS_DOTS", "LEAST_DOTS"}), "fillForegroundColor", this::getFillForegroundColor, "fillBackgroundColor", this::getFillForegroundColor ); } public String toString() { return GenericRecordJsonWriter.marshal(this); } public PatternFormatting copy() { return new PatternFormatting(this); } public void serialize(LittleEndianOutput out) { out.writeShort(field_15_pattern_style); out.writeShort(field_16_pattern_color_indexes); } }
⏎ org/apache/poi/hssf/record/cf/PatternFormatting.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, 57927👍, 0💬
Popular Posts:
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
JDK 11 java.rmi.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) module. JDK 11 RMI m...
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
What Is javax.websocket-api-1.1. jar?javax.websocket-api-1.1. jaris the JAR file for Java API for We...
Apache Log4j 1.2 Bridge allows applications coded to use Log4j 1.2 API to use Log4j 2 instead. Bytec...