public boolean isNullStrokeFill(boolean isRectangle){
  MetaPen pen=state.getCurrentPen();
  MetaBrush brush=state.getCurrentBrush();
  boolean noPen=pen.getStyle() == MetaPen.PS_NULL;
  int style=brush.getStyle();
  boolean isBrush=style == MetaBrush.BS_SOLID || style == MetaBrush.BS_HATCHED && state.getBackgroundMode() == MetaState.OPAQUE;
  boolean result=noPen && !isBrush;
  if (!noPen) {
    if (isRectangle)     state.setLineJoinRectangle(cb);
 else     state.setLineJoinPolygon(cb);
  }
  return result;
}

public boolean isNullStrokeFill ( boolean isRectangle ) { MetaPen pen = state . getCurrentPen ( ) ; MetaBrush brush = state . getCurrentBrush ( ) ; boolean noPen = pen . getStyle ( ) == MetaPen . PS_NULL ; int style = brush . getStyle ( ) ; boolean isBrush = style == MetaBrush . BS_SOLID || style == MetaBrush . BS_HATCHED && state . getBackgroundMode ( ) == MetaState . OPAQUE ; boolean result = noPen && ! isBrush ; if ( ! noPen ) { if ( isRectangle ) state . setLineJoinRectangle ( cb ) ; else state . setLineJoinPolygon ( cb ) ; } return result ; }
return true if the pen style is null and if it isn ' t a brush .
