📄 temp
字号:
public void WMFPlay( ) {
// AppletWidth = w;
// AppletHeight = h;
// devExtX = (short) w;
// devExtY = (short) h;
ht = new WMFHandleTable();
drawFilled = false;
MetaRecordInfo = MetaRecordVector.elements();
handleIndex = 0;
recordIndex = 0;
while(MetaRecordInfo.hasMoreElements()){
mRecord = (MetaRecord) MetaRecordInfo.nextElement();
WMFlistRecord(mRecord, false);
recordIndex++;
}
}
// works on a single metarecord
// still need something to write out all info assigned in this
// public synchronized void WMFlistRecord(MetaRecord mRecord , boolean fromSelect, boolean play, Graphics g){
public synchronized void WMFlistRecord(MetaRecord mRecord , boolean fromSelect){
switch(mRecord.getFunction()){
case 0x2fa: // create pen indirect
if (!fromSelect){
ht.addObject(recordIndex,mRecord );
}
break;
case 0x2fc: //createBrushIndirect
if (!fromSelect){ // if not seleceting it, just add it to table
ht.addObject(recordIndex,mRecord );
}
break;
case 0x6ff: // create regio
if (!fromSelect){
ht.addObject(recordIndex ,mRecord );
}
break;
case 0x2fb: //createFontIndirect
if (!fromSelect){ // if not selecting it, just add it to table
ht.addObject(recordIndex,mRecord );
}
break
case 0x1f0:
windowInt = readInt(parmStream);
ht.deleteObject(windowInt);
break;
default:
}
} // end switch
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -