Fields Summary |
---|
public static final short | SPRM_FRMARKDEL |
public static final short | SPRM_FRMARK |
public static final short | SPRM_FFLDVANISH |
public static final short | SPRM_PICLOCATION |
public static final short | SPRM_IBSTRMARK |
public static final short | SPRM_DTTMRMARK |
public static final short | SPRM_FDATA |
public static final short | SPRM_SYMBOL |
public static final short | SPRM_FOLE2 |
public static final short | SPRM_HIGHLIGHT |
public static final short | SPRM_OBJLOCATION |
public static final short | SPRM_ISTD |
public static final short | SPRM_FBOLD |
public static final short | SPRM_FITALIC |
public static final short | SPRM_FSTRIKE |
public static final short | SPRM_FOUTLINE |
public static final short | SPRM_FSHADOW |
public static final short | SPRM_FSMALLCAPS |
public static final short | SPRM_FCAPS |
public static final short | SPRM_FVANISH |
public static final short | SPRM_KUL |
public static final short | SPRM_DXASPACE |
public static final short | SPRM_LID |
public static final short | SPRM_ICO |
public static final short | SPRM_HPS |
public static final short | SPRM_HPSPOS |
public static final short | SPRM_ISS |
public static final short | SPRM_HPSKERN |
public static final short | SPRM_YSRI |
public static final short | SPRM_RGFTCASCII |
public static final short | SPRM_RGFTCFAREAST |
public static final short | SPRM_RGFTCNOTFAREAST |
public static final short | SPRM_CHARSCALE |
public static final short | SPRM_FDSTRIKE |
public static final short | SPRM_FIMPRINT |
public static final short | SPRM_FSPEC |
public static final short | SPRM_FOBJ |
public static final short | SPRM_PROPRMARK |
public static final short | SPRM_FEMBOSS |
public static final short | SPRM_SFXTEXT |
public static final short | SPRM_DISPFLDRMARK |
public static final short | SPRM_IBSTRMARKDEL |
public static final short | SPRM_DTTMRMARKDEL |
public static final short | SPRM_BRC |
public static final short | SPRM_SHD |
public static final short | SPRM_IDSIRMARKDEL |
public static final short | SPRM_CPG |
public static final short | SPRM_NONFELID |
public static final short | SPRM_FELID |
public static final short | SPRM_IDCTHINT |
SprmBuffer | _chpx |
CharacterProperties | _props |
Methods Summary |
---|
public java.lang.Object | clone()Used to create a deep copy of this object.
CharacterRun cp = (CharacterRun)super.clone();
cp._props.setDttmRMark((DateAndTime)_props.getDttmRMark().clone());
cp._props.setDttmRMarkDel((DateAndTime)_props.getDttmRMarkDel().clone());
cp._props.setDttmPropRMark((DateAndTime)_props.getDttmPropRMark().clone());
cp._props.setDttmDispFldRMark((DateAndTime)_props.getDttmDispFldRMark().
clone());
cp._props.setXstDispFldRMark((byte[])_props.getXstDispFldRMark().clone());
cp._props.setShd((ShadingDescriptor)_props.getShd().clone());
return cp;
|
public org.apache.poi.hwpf.usermodel.CharacterProperties | cloneProperties()clone the CharacterProperties object associated with this
characterRun so that you can apply it to another CharacterRun
try {
return (CharacterProperties)_props.clone();
} catch(java.lang.CloneNotSupportedException e) {
throw new RuntimeException(e);
}
|
public int | getCharacterSpacing()
return _props.getDxaSpace();
|
public int | getColor()
return _props.getIco();
|
public java.lang.String | getFontName()
return _doc.getFontTable().getMainFont(_props.getFtcAscii());
|
public int | getFontSize()
return _props.getHps();
|
public int | getIco24()Get the ico24 field for the CHP record.
return _props.getIco24();
|
public int | getKerning()
return _props.getHpsKern();
|
public int | getObjOffset()
return _props.getFcObj();
|
public int | getPicOffset()
return _props.getFcPic();
|
public short | getSubSuperScriptIndex()
return _props.getIss();
|
public int | getUnderlineCode()
return _props.getKul();
|
public int | getVerticalOffset()
return _props.getHpsPos();
|
public boolean | isBold()
return _props.isFBold();
|
public boolean | isCapitalized()
return _props.isFCaps();
|
public boolean | isData()
return _props.isFData();
|
public boolean | isDoubleStrikeThrough()
return _props.isFDStrike();
|
public boolean | isEmbossed()
return _props.isFEmboss();
|
public boolean | isFldVanished()
return _props.isFFldVanish();
|
public boolean | isHighlighted()
return _props.isFHighlight();
|
public boolean | isImprinted()
return _props.isFImprint();
|
public boolean | isItalic()
return _props.isFItalic();
|
public boolean | isMarkedDeleted()
return _props.isFRMarkDel();
|
public boolean | isMarkedInserted()
return _props.isFRMark();
|
public boolean | isObj()
return _props.isFObj();
|
public boolean | isOle2()
return _props.isFOle2();
|
public boolean | isOutlined()
return _props.isFOutline();
|
public boolean | isShadowed()
return _props.isFShadow();
|
public boolean | isSmallCaps()
return _props.isFSmallCaps();
|
public boolean | isSpecialCharacter()
return _props.isFSpec();
|
public boolean | isStrikeThrough()
return _props.isFStrike();
|
public boolean | isVanished()
return _props.isFVanish();
|
public void | markDeleted(boolean mark)
_props.setFRMarkDel(mark);
byte newVal = (byte)(mark ? 1 : 0);
_chpx.updateSprm(SPRM_FRMARKDEL, newVal);
|
public void | markInserted(boolean mark)
_props.setFRMark(mark);
byte newVal = (byte)(mark ? 1 : 0);
_chpx.updateSprm(SPRM_FRMARK, newVal);
|
public void | setBold(boolean bold)
_props.setFBold(bold);
byte newVal = (byte)(bold ? 1 : 0);
_chpx.updateSprm(SPRM_FBOLD, newVal);
|
public void | setCapitalized(boolean caps)
_props.setFCaps(caps);
byte newVal = (byte)(caps ? 1 : 0);
_chpx.updateSprm(SPRM_FCAPS, newVal);
|
public void | setCharacterSpacing(int twips)
_props.setDxaSpace(twips);
_chpx.updateSprm(SPRM_DXASPACE, twips);
|
public void | setColor(int color)
_props.setIco((byte)color);
_chpx.updateSprm(SPRM_ICO, (byte)color);
|
public void | setData(boolean data)
_props.setFData(data);
byte newVal = (byte)(data ? 1 : 0);
_chpx.updateSprm(SPRM_FOBJ, newVal);
|
public void | setDoubleStrikethrough(boolean dstrike)
_props.setFDStrike(dstrike);
byte newVal = (byte)(dstrike ? 1 : 0);
_chpx.updateSprm(SPRM_FDSTRIKE, newVal);
|
public void | setEmbossed(boolean emboss)
_props.setFEmboss(emboss);
byte newVal = (byte)(emboss ? 1 : 0);
_chpx.updateSprm(SPRM_FEMBOSS, newVal);
|
public void | setFldVanish(boolean fldVanish)
_props.setFFldVanish(fldVanish);
byte newVal = (byte)(fldVanish ? 1 : 0);
_chpx.updateSprm(SPRM_FFLDVANISH, newVal);
|
public void | setFontSize(int halfPoints)
_props.setHps(halfPoints);
_chpx.updateSprm(SPRM_HPS, (short)halfPoints);
|
public void | setFtcAscii(int ftcAscii)
_props.setFtcAscii(ftcAscii);
_chpx.updateSprm(SPRM_RGFTCASCII, (short)ftcAscii);
|
public void | setFtcFE(int ftcFE)
_props.setFtcFE(ftcFE);
_chpx.updateSprm(SPRM_RGFTCFAREAST, (short)ftcFE);
|
public void | setFtcOther(int ftcOther)
_props.setFtcOther(ftcOther);
_chpx.updateSprm(SPRM_RGFTCNOTFAREAST, (short)ftcOther);
|
public void | setHighlighted(byte color)
_props.setFHighlight(true);
_props.setIcoHighlight(color);
_chpx.updateSprm(SPRM_HIGHLIGHT, color);
|
public void | setIco24(int colour24)Set the ico24 field for the CHP record.
_props.setIco24(colour24);
|
public void | setImprinted(boolean imprint)
_props.setFImprint(imprint);
byte newVal = (byte)(imprint ? 1 : 0);
_chpx.updateSprm(SPRM_FIMPRINT, newVal);
|
public void | setItalic(boolean italic)
_props.setFItalic(italic);
byte newVal = (byte)(italic ? 1 : 0);
_chpx.updateSprm(SPRM_FITALIC, newVal);
|
public void | setKerning(int kern)
_props.setHpsKern(kern);
_chpx.updateSprm(SPRM_HPSKERN, (short)kern);
|
public void | setObj(boolean obj)
_props.setFObj(obj);
byte newVal = (byte)(obj ? 1 : 0);
_chpx.updateSprm(SPRM_FOBJ, newVal);
|
public void | setObjOffset(int obj)
_props.setFcObj(obj);
_chpx.updateSprm(SPRM_OBJLOCATION, obj);
|
public void | setOle2(boolean ole)
_props.setFOle2(ole);
byte newVal = (byte)(ole ? 1 : 0);
_chpx.updateSprm(SPRM_FOBJ, newVal);
|
public void | setOutline(boolean outlined)
_props.setFOutline(outlined);
byte newVal = (byte)(outlined ? 1 : 0);
_chpx.updateSprm(SPRM_FOUTLINE, newVal);
|
public void | setPicOffset(int offset)
_props.setFcPic(offset);
_chpx.updateSprm(SPRM_PICLOCATION, offset);
|
public void | setShadow(boolean shadow)
_props.setFShadow(shadow);
byte newVal = (byte)(shadow ? 1 : 0);
_chpx.updateSprm(SPRM_FSHADOW, newVal);
|
public void | setSmallCaps(boolean smallCaps)
_props.setFSmallCaps(smallCaps);
byte newVal = (byte)(smallCaps ? 1 : 0);
_chpx.updateSprm(SPRM_FSMALLCAPS, newVal);
|
public void | setSpecialCharacter(boolean spec)
_props.setFSpec(spec);
byte newVal = (byte)(spec ? 1 : 0);
_chpx.updateSprm(SPRM_FSPEC, newVal);
|
public void | setSubSuperScriptIndex(short iss)
_props.setDxaSpace(iss);
_chpx.updateSprm(SPRM_DXASPACE, iss);
|
public void | setUnderlineCode(int kul)
_props.setKul((byte)kul);
_chpx.updateSprm(SPRM_KUL, (byte)kul);
|
public void | setVanished(boolean vanish)
_props.setFVanish(vanish);
byte newVal = (byte)(vanish ? 1 : 0);
_chpx.updateSprm(SPRM_FVANISH, newVal);
|
public void | setVerticalOffset(int hpsPos)
_props.setHpsPos(hpsPos);
_chpx.updateSprm(SPRM_HPSPOS, (byte)hpsPos);
|
public void | strikeThrough(boolean strike)
_props.setFStrike(strike);
byte newVal = (byte)(strike ? 1 : 0);
_chpx.updateSprm(SPRM_FSTRIKE, newVal);
|
public int | type()Here for runtime type determination using a switch statement convenient.
return TYPE_CHARACTER;
|