mr = new MetaRecord(); break; mr.AddElement( new Integer( is.readShort()));
MetaRecord mr = new MetaRecord(); switch ( functionId ) { case WMFConstants.META_SETMAPMODE: { mr.addElement(mapmode); records.add( mr ); mr.addElement( xVal ); mr.addElement( yVal ); mr.addElement( flag ); if (clipped) { mr.addElement( x1 ); mr.addElement( y1 ); mr.addElement( x2 ); mr.addElement( y2 ); mr.addElement( xVal ); mr.addElement( yVal ); records.add( mr ); mr.addElement( lfHeight ); mr.addElement( lfItalic ); mr.addElement( lfWeight ); mr.addElement( lfCharSet ); mr.addElement( lfUnderline ); mr.addElement( lfStrikeOut ); mr.addElement( lfOrientation ); mr.addElement( lfEscapement );
currentStore.setVpX( vpX = -(float)mr.elementAt( 0 ) ); currentStore.setVpY( vpY = -(float)mr.elementAt( 1 ) ); vpX = vpX * scale; vpY = vpY * scale; vpW = (float)mr.elementAt( 0 ); vpH = (float)mr.elementAt( 1 ); int penStyle = mr.elementAt( 0 ); Color newClr; if ( penStyle == WMFConstants.META_PS_NULL ) { penWidth = mr.elementAt( 4 ); setStroke(g2d, penStyle, penWidth, scaleX); newClr = new Color( mr.elementAt( 1 ), mr.elementAt( 2 ), mr.elementAt( 3 ) ); objIndex = addObjectAt( currentStore, PEN, newClr, objIndex ); int brushStyle = mr.elementAt( 0 ); Color clr = new Color( mr.elementAt( 1 ), mr.elementAt( 2 ), mr.elementAt( 3 ) ); if ( brushStyle == WMFConstants.BS_SOLID ) { objIndex = addObjectAt( currentStore, BRUSH, clr, objIndex ); } else if (brushStyle == WMFConstants.BS_HATCHED) { int hatch = mr.elementAt( 4 ); Paint paint; if (! opaque) {
MetaRecord mr = new MetaRecord(); switch ( functionId ) { case WMFConstants.META_SETMAPMODE: { mr.addElement(mapmode); records.add( mr ); mr.addElement( xVal ); mr.addElement( yVal ); mr.addElement( flag ); if (clipped) { mr.addElement( x1 ); mr.addElement( y1 ); mr.addElement( x2 ); mr.addElement( y2 ); mr.addElement( xVal ); mr.addElement( yVal ); records.add( mr ); mr.addElement( lfHeight ); mr.addElement( lfItalic ); mr.addElement( lfWeight ); mr.addElement( lfCharSet ); mr.addElement( lfUnderline ); mr.addElement( lfStrikeOut ); mr.addElement( lfOrientation ); mr.addElement( lfEscapement );
currentStore.setVpX( vpX = -mr.elementAt( 0 )); currentStore.setVpY( vpY = -mr.elementAt( 1 )); vpX = vpX * scale; vpY = vpY * scale; vpW = mr.elementAt( 0 ); vpH = mr.elementAt( 1 ); int penStyle = mr.elementAt( 0 ); Color newClr; if ( penStyle == WMFConstants.META_PS_NULL ) { penWidth = mr.elementAt( 4 ); setStroke(g2d, penStyle, penWidth, scaleX); newClr = new Color( mr.elementAt( 1 ), mr.elementAt( 2 ), mr.elementAt( 3 ) ); objIndex = addObjectAt( currentStore, PEN, newClr, objIndex ); int brushStyle = mr.elementAt( 0 ); Color clr = new Color( mr.elementAt( 1 ), mr.elementAt( 2 ), mr.elementAt( 3 ) ); if ( brushStyle == WMFConstants.BS_SOLID ) { objIndex = addObjectAt( currentStore, BRUSH, clr, objIndex ); } else if (brushStyle == WMFConstants.BS_HATCHED) { int hatch = mr.elementAt( 4 ); Paint paint; if (! opaque) {
mr = new MetaRecord(); break; mr.AddElement((int) is.readShort());