Linepublic class Line extends SimpleShape Represents a line in a PowerPoint drawing |
Fields Summary |
---|
public static final int | PEN_SOLIDSolid (continuous) pen | public static final int | PEN_PS_DASHPS_DASH system dash style | public static final int | PEN_DOTPS_DOT system dash style | public static final int | PEN_DASHDOTPS_DASHDOT system dash style | public static final int | PEN_DASHDOTDOTPS_DASHDOTDOT system dash style | public static final int | PEN_DOTGELsquare dot style | public static final int | PEN_DASHdash style | public static final int | PEN_LONGDASHGELlong dash style | public static final int | PEN_DASHDOTGELdash short dash | public static final int | PEN_LONGDASHDOTGELlong dash short dash | public static final int | PEN_LONGDASHDOTDOTGELlong dash short dash short dash | public static final int | LINE_SIMPLESingle line (of width lineWidth) | public static final int | LINE_DOUBLEDouble lines of equal width | public static final int | LINE_THICKTHINDouble lines, one thick, one thin | public static final int | LINE_THINTHICKDouble lines, reverse order | public static final int | LINE_TRIPLEThree lines, thin, thick, thin |
Constructors Summary |
---|
protected Line(EscherContainerRecord escherRecord, Shape parent)
super(escherRecord, parent);
| public Line(Shape parent)
super(null, parent);
_escherContainer = createSpContainer(parent instanceof ShapeGroup);
| public Line()
this(null);
|
Methods Summary |
---|
protected org.apache.poi.ddf.EscherContainerRecord | createSpContainer(boolean isChild)
EscherContainerRecord spcont = super.createSpContainer(isChild);
EscherSpRecord spRecord = spcont.getChildById(EscherSpRecord.RECORD_ID);
short type = (ShapeTypes.Line << 4) | 0x2;
spRecord.setOptions(type);
//set default properties for a line
EscherOptRecord opt = (EscherOptRecord)getEscherChild(spcont, EscherOptRecord.RECORD_ID);
//default line properties
setEscherProperty(opt, EscherProperties.GEOMETRY__SHAPEPATH, 4);
setEscherProperty(opt, EscherProperties.GEOMETRY__FILLOK, 0x10000);
setEscherProperty(opt, EscherProperties.FILL__NOFILLHITTEST, 0x100000);
setEscherProperty(opt, EscherProperties.LINESTYLE__COLOR, 0x8000001);
setEscherProperty(opt, EscherProperties.LINESTYLE__NOLINEDRAWDASH, 0xA0008);
setEscherProperty(opt, EscherProperties.SHADOWSTYLE__COLOR, 0x8000002);
return spcont;
|
|