What Is poi-scratchpad-5.2.3.jar?

What Is poi-scratchpad-5.2.3.jar?

✍: FYIcenter.com

poi-scratchpad-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-scratchpad-5.2.3.jar provides support for older versions of Microsoft document files like Word 97, Excel 97, PowerPoint 97, etc.

poi-scratchpad-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-scratchpad-5.2.3.jar
Target JDK version: 9
Dependency: 
   poi.jar

File name: poi-scratchpad.jar, poi-scratchpad-5.2.3.jar
File size: 1897121 bytes
Release date: 09-09-2022
Download: Apache POI Website

Here are Java Source Code files for poi-scratchpad-5.2.3.jar:

org/apache/poi/hwmf/record/HwmfMapMode.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.hwmf.record;

/**
 * A 16-bit unsigned integer that defines the mapping mode.
 *
 * The MapMode defines how logical units are mapped to physical units;
 * that is, assuming that the origins in both the logical and physical coordinate systems
 * are at the same point on the drawing surface, what is the physical coordinate (x',y')
 * that corresponds to logical coordinate (x,y).
 *
 * For example, suppose the mapping mode is MM_TEXT. Given the following definition of that
 * mapping mode, and an origin (0,0) at the top left corner of the drawing surface, logical
 * coordinate (4,5) would map to physical coordinate (4,5) in pixels.
 *
 * Now suppose the mapping mode is MM_LOENGLISH, with the same origin as the previous
 * example. Given the following definition of that mapping mode, logical coordinate (4,-5)
 * would map to physical coordinate (0.04,0.05) in inches.
 */
public enum HwmfMapMode {
    /**
     *  Each logical unit is mapped to one device pixel.
     *  Positive x is to the right; positive y is down.
     */
    MM_TEXT(0x0001, 0),
    
    /**
     *  Each logical unit is mapped to 0.1 millimeter.
     *  Positive x is to the right; positive y is up.
     */
    MM_LOMETRIC(0x0002, 254),
    
    /**
     *  Each logical unit is mapped to 0.01 millimeter.
     *  Positive x is to the right; positive y is up.
     */
    MM_HIMETRIC(0x0003, 2540),
    
    /**
     *  Each logical unit is mapped to 0.01 inch.
     *  Positive x is to the right; positive y is up.
     */
    MM_LOENGLISH(0x0004, 100),
    
    /**
     *  Each logical unit is mapped to 0.001 inch.
     *  Positive x is to the right; positive y is up.
     */
    MM_HIENGLISH(0x0005, 1000),
    
    /**
     *  Each logical unit is mapped to one twentieth (1/20) of a point.
     *  In printing, a point is 1/72 of an inch; therefore, 1/20 of a point is 1/1440 of an inch.
     *  This unit is also known as a "twip".
     *  Positive x is to the right; positive y is up.
     */
    MM_TWIPS(0x0006, 1440),
    
    /**
     *  Logical units are mapped to arbitrary device units with equally scaled axes;
     *  that is, one unit along the x-axis is equal to one unit along the y-axis.
     *  The META_SETWINDOWEXT and META_SETVIEWPORTEXT records specify the units and the
     *  orientation of the axes.
     *  The processing application SHOULD make adjustments as necessary to ensure the x and y
     *  units remain the same size. For example, when the window extent is set, the viewport
     *  SHOULD be adjusted to keep the units isotropic.
     */
    MM_ISOTROPIC(0x0007, -1),
    
    /**
     *  Logical units are mapped to arbitrary units with arbitrarily scaled axes.
     */
    MM_ANISOTROPIC(0x0008, -1);
    
    /**
     * native flag
     */
    public final int flag;
    
    /**
     * transformation units - usually scale relative to current dpi.
     * when scale == 0, then don't scale
     * when scale == -1, then scale relative to window dimension. 
     */
    public final int scale;
    
    HwmfMapMode(int flag, int scale) {
        this.flag = flag;
        this.scale = scale;
    }

    public static HwmfMapMode valueOf(int flag) {
        for (HwmfMapMode mm : values()) {
            if (mm.flag == flag) return mm;
        }
        return MM_ISOTROPIC;
    }        
}

org/apache/poi/hwmf/record/HwmfMapMode.java

Or download all of them as a single archive file:

File name: poi-scratchpad-5.2.3-src.zip
File size: 1238744 bytes
Release date: 2022-09-09
Download 

 

What Is poi-examples-5.2.3.jar?

What Is poi-excelant-5.2.3.jar?

Downloading and Installing Apache POI Java Library

⇑⇑ FAQ for Apache POI (Poor Obfuscation Implementation)

2017-03-22, 25593👍, 0💬