Java Code Examples for sun.java2d.loops.DrawGlyphListLCD#locate()

The following examples show how to use sun.java2d.loops.DrawGlyphListLCD#locate() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SurfaceData.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
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 */
}
 
Example 2
Source File: SurfaceData.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
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 */
}
 
Example 3
Source File: SurfaceData.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
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 */
}
 
Example 4
Source File: SurfaceData.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
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 */
}
 
Example 5
Source File: SurfaceData.java    From jdk8u-jdk with GNU General Public License v2.0 6 votes vote down vote up
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 */
}
 
Example 6
Source File: SurfaceData.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
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 */
}
 
Example 7
Source File: SurfaceData.java    From jdk8u-dev-jdk with GNU General Public License v2.0 6 votes vote down vote up
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 */
}
 
Example 8
Source File: SurfaceData.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
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 */
}
 
Example 9
Source File: SurfaceData.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
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 */
}
 
Example 10
Source File: SurfaceData.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
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 */
}
 
Example 11
Source File: SurfaceData.java    From jdk8u_jdk with GNU General Public License v2.0 6 votes vote down vote up
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 */
}
 
Example 12
Source File: SurfaceData.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
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 */
}
 
Example 13
Source File: SurfaceData.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 14
Source File: SurfaceData.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 15
Source File: SurfaceData.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 16
Source File: SurfaceData.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 17
Source File: SurfaceData.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 18
Source File: SurfaceData.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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);
    loops.drawGlyphListColorLoop = DrawGlyphListColor.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;
}
 
Example 19
Source File: SurfaceData.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}
 
Example 20
Source File: SurfaceData.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 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;
}