/**
  * Construct and return a RenderLoops object containing all of the basic GraphicsPrimitive objects
  * for rendering to the destination surface with the given source, destination, and composite
  * types.
  */
 public static RenderLoops makeRenderLoops(SurfaceType src, CompositeType comp, SurfaceType dst) {
   RenderLoops loops = new RenderLoops();
   loops.drawLineLoop = DrawLine.locate(src, comp, dst);
   loops.fillRectLoop = FillRect.locate(src, comp, dst);
   loops.drawRectLoop = DrawRect.locate(src, comp, dst);
   loops.drawPolygonsLoop = DrawPolygons.locate(src, comp, dst);
   loops.drawPathLoop = DrawPath.locate(src, comp, dst);
   loops.fillPathLoop = FillPath.locate(src, comp, dst);
   loops.fillSpansLoop = FillSpans.locate(src, comp, dst);
   loops.fillParallelogramLoop = FillParallelogram.locate(src, comp, dst);
   loops.drawParallelogramLoop = DrawParallelogram.locate(src, comp, dst);
   loops.drawGlyphListLoop = DrawGlyphList.locate(src, comp, dst);
   loops.drawGlyphListAALoop = DrawGlyphListAA.locate(src, comp, dst);
   loops.drawGlyphListLCDLoop = DrawGlyphListLCD.locate(src, comp, dst);
   /*
   System.out.println("drawLine: "+loops.drawLineLoop);
   System.out.println("fillRect: "+loops.fillRectLoop);
   System.out.println("drawRect: "+loops.drawRectLoop);
   System.out.println("drawPolygons: "+loops.drawPolygonsLoop);
   System.out.println("fillSpans: "+loops.fillSpansLoop);
   System.out.println("drawGlyphList: "+loops.drawGlyphListLoop);
   System.out.println("drawGlyphListAA: "+loops.drawGlyphListAALoop);
   System.out.println("drawGlyphListLCD: "+loops.drawGlyphListLCDLoop);
   */
   return loops;
 }
 public boolean canRenderLCDText(SunGraphics2D sg2d) {
   // For now the answer can only be true in the following cases:
   if (sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY
       && sg2d.paintState <= SunGraphics2D.PAINT_ALPHACOLOR
       && sg2d.clipState <= SunGraphics2D.CLIP_RECTANGULAR
       && sg2d.surfaceData.getTransparency() == Transparency.OPAQUE) {
     if (haveLCDLoop == LOOP_UNKNOWN) {
       DrawGlyphListLCD loop =
           DrawGlyphListLCD.locate(SurfaceType.AnyColor, CompositeType.SrcNoEa, getSurfaceType());
       haveLCDLoop = (loop != null) ? LOOP_FOUND : LOOP_NOTFOUND;
     }
     return haveLCDLoop == LOOP_FOUND;
   }
   return false; /* for now - in the future we may want to search */
 }