public View createFragment(int p0,int p1){
  checkPainter();
  Element elem=getElement();
  GlyphView v=(GlyphView)clone();
  v.offset=p0 - elem.getStartOffset();
  v.length=p1 - p0;
  v.painter=painter.getPainter(v,p0,p1);
  v.justificationInfo=null;
  return v;
}

public View createFragment ( int p0 , int p1 ) { checkPainter ( ) ; Element elem = getElement ( ) ; GlyphView v = ( GlyphView ) clone ( ) ; v . offset = p0 - elem . getStartOffset ( ) ; v . length = p1 - p0 ; v . painter = painter . getPainter ( v , p0 , p1 ) ; v . justificationInfo = null ; return v ; }
creates a view that represents a portion of the element . this is potentially useful during formatting operations for taking measurements of fragments of the view . if the view doesn ' t support fragmenting ( the default ) , it should return itself . < p > this view does support fragmenting . it is implemented to return a nested class that shares state in this view representing only a portion of the view .
