HSSFSimpleShape

本文介绍了HSSFSimpleShape类及其所表示的各种简单形状类型,包括线、矩形、椭圆等,并列举了与之相关的常量定义。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.HSSFSimpleShape

表示一个简单的形状:线,矩形,椭圆...

public class HSSFSimpleShape extends HSSFShape implements SimpleShape{
}


2.常量

// 已注释表示没有被测试或不支持

// shape类型:线
public final static short       OBJECT_TYPE_LINE               = HSSFShapeTypes.Line;

// shape类型:矩形
public final static short       OBJECT_TYPE_RECTANGLE          = HSSFShapeTypes.Rectangle;

// shape类型:椭圆
public final static short       OBJECT_TYPE_OVAL               = HSSFShapeTypes.Ellipse;

// shape类型:弧形
public final static short       OBJECT_TYPE_ARC                = HSSFShapeTypes.Arc;

//    public final static short       OBJECT_TYPE_CHART              = 5;
//    public final static short       OBJECT_TYPE_TEXT               = 6;
//    public final static short       OBJECT_TYPE_BUTTON             = 7;

// shape类型:图片
public final static short       OBJECT_TYPE_PICTURE            = HSSFShapeTypes.PictureFrame;

//    public final static short       OBJECT_TYPE_POLYGON            = 9;
//    public final static short       OBJECT_TYPE_CHECKBOX           = 11;
//    public final static short       OBJECT_TYPE_OPTION_BUTTON      = 12;
//    public final static short       OBJECT_TYPE_EDIT_BOX           = 13;
//    public final static short       OBJECT_TYPE_LABEL              = 14;
//    public final static short       OBJECT_TYPE_DIALOG_BOX         = 15;
//    public final static short       OBJECT_TYPE_SPINNER            = 16;
//    public final static short       OBJECT_TYPE_SCROLL_BAR         = 17;
//    public final static short       OBJECT_TYPE_LIST_BOX           = 18;
//    public final static short       OBJECT_TYPE_GROUP_BOX          = 19;

// shape类型:组合框
public final static short       OBJECT_TYPE_COMBO_BOX          = HSSFShapeTypes.HostControl;

// shape类型:文本框
public final static short       OBJECT_TYPE_COMMENT            = HSSFShapeTypes.TextBox;
public final static short       OBJECT_TYPE_MICROSOFT_OFFICE_DRAWING = 30;

// 用于方法setWrapText()
public final static int WRAP_SQUARE = 0;
public final static int WRAP_BY_POINTS = 1;
public final static int WRAP_NONE = 2;
3.方法



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值