point.java

来自「Java调用Windows API,支持Office」· Java 代码 · 共 35 行

JAVA
35
字号
//******************************************************************
// Released under the DevelopMentor OpenSource Software License.
// Please consult the LICENSE file in the project root directory,
// or at http://www.develop.com for details before using this
// software.
//******************************************************************

package org.jawin.donated.win32;

import java.io.IOException;
import java.util.ArrayList;

import org.jawin.io.LittleEndianInputStream;
import org.jawin.io.LittleEndianOutputStream;

public class POINT {
    public int        x;
    public int        y;

    public static final String marshal = "XSPOINT,08[II]";

    public void marshal(LittleEndianOutputStream leos, ArrayList objs)
            throws IOException
    {
        leos.writeInt(x);
        leos.writeInt(y);
    }
    public void marshalOut(LittleEndianInputStream leis, ArrayList objs)
            throws IOException
    {
        x = leis.readInt();
        y = leis.readInt();
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?