sun.java2d.loops.RenderLoops Java Examples
The following examples show how to use
sun.java2d.loops.RenderLoops.
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: BufImgSurfaceData.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #2
Source File: BufImgSurfaceData.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #3
Source File: BufImgSurfaceData.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #4
Source File: BufImgSurfaceData.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #5
Source File: BufImgSurfaceData.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #6
Source File: BufImgSurfaceData.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #7
Source File: BufImgSurfaceData.java From hottub with GNU General Public License v2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #8
Source File: BufImgSurfaceData.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #9
Source File: BufImgSurfaceData.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #10
Source File: BufImgSurfaceData.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #11
Source File: BufImgSurfaceData.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #12
Source File: BufImgSurfaceData.java From Bytecoder with Apache License 2.0 | 6 votes |
public static synchronized RenderLoops getSolidLoops(SurfaceType type) { for (int i = CACHE_SIZE - 1; i >= 0; i--) { SurfaceType t = typecache[i]; if (t == type) { return loopcache[i]; } else if (t == null) { break; } } RenderLoops l = makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, type); System.arraycopy(loopcache, 1, loopcache, 0, CACHE_SIZE-1); System.arraycopy(typecache, 1, typecache, 0, CACHE_SIZE-1); loopcache[CACHE_SIZE - 1] = l; typecache[CACHE_SIZE - 1] = type; return l; }
Example #13
Source File: SurfaceData.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Return a RenderLoops object containing all of the basic * GraphicsPrimitive objects for rendering to the destination * surface with the current attributes of the given SunGraphics2D. */ public RenderLoops getRenderLoops(SunGraphics2D sg2d) { SurfaceType src = getPaintSurfaceType(sg2d); CompositeType comp = getFillCompositeType(sg2d); SurfaceType dst = sg2d.getSurfaceData().getSurfaceType(); Object o = loopcache.get(src, comp, dst); if (o != null) { return (RenderLoops) o; } RenderLoops loops = makeRenderLoops(src, comp, dst); loopcache.put(src, comp, dst, loops); return loops; }
Example #14
Source File: X11SurfaceData.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public RenderLoops getRenderLoops(SunGraphics2D sg2d) { if (sg2d.paintState <= SunGraphics2D.PAINT_ALPHACOLOR && sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY) { return solidloops; } return super.getRenderLoops(sg2d); }
Example #15
Source File: Win32GraphicsConfig.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public synchronized RenderLoops getSolidLoops(SurfaceType stype) { if (solidloops == null || sTypeOrig != stype) { solidloops = SurfaceData.makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, stype); sTypeOrig = stype; } return solidloops; }
Example #16
Source File: GDIWindowSurfaceData.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public RenderLoops getRenderLoops(SunGraphics2D sg2d) { if (sg2d.paintState <= sg2d.PAINT_ALPHACOLOR && sg2d.compositeState <= sg2d.COMP_ISCOPY) { return solidloops; } return super.getRenderLoops(sg2d); }
Example #17
Source File: SurfaceData.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * 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: GDIWindowSurfaceData.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public RenderLoops getRenderLoops(SunGraphics2D sg2d) { if (sg2d.paintState <= sg2d.PAINT_ALPHACOLOR && sg2d.compositeState <= sg2d.COMP_ISCOPY) { return solidloops; } return super.getRenderLoops(sg2d); }
Example #19
Source File: SurfaceData.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * 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 jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Return a RenderLoops object containing all of the basic * GraphicsPrimitive objects for rendering to the destination * surface with the current attributes of the given SunGraphics2D. */ public RenderLoops getRenderLoops(SunGraphics2D sg2d) { SurfaceType src = getPaintSurfaceType(sg2d); CompositeType comp = getFillCompositeType(sg2d); SurfaceType dst = sg2d.getSurfaceData().getSurfaceType(); Object o = loopcache.get(src, comp, dst); if (o != null) { return (RenderLoops) o; } RenderLoops loops = makeRenderLoops(src, comp, dst); loopcache.put(src, comp, dst, loops); return loops; }
Example #21
Source File: Win32GraphicsConfig.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public synchronized RenderLoops getSolidLoops(SurfaceType stype) { if (solidloops == null || sTypeOrig != stype) { solidloops = SurfaceData.makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, stype); sTypeOrig = stype; } return solidloops; }
Example #22
Source File: GDIWindowSurfaceData.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public RenderLoops getRenderLoops(SunGraphics2D sg2d) { if (sg2d.paintState <= SunGraphics2D.PAINT_ALPHACOLOR && sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY) { return solidloops; } return super.getRenderLoops(sg2d); }
Example #23
Source File: X11GraphicsConfig.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Return the RenderLoops this type of destination uses for * solid fills and strokes. */ public synchronized RenderLoops getSolidLoops(SurfaceType stype) { if (solidloops == null) { solidloops = SurfaceData.makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, stype); } return solidloops; }
Example #24
Source File: X11SurfaceData.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public RenderLoops getRenderLoops(SunGraphics2D sg2d) { if (sg2d.paintState <= SunGraphics2D.PAINT_ALPHACOLOR && sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY) { return solidloops; } return super.getRenderLoops(sg2d); }
Example #25
Source File: BufImgSurfaceData.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public RenderLoops getRenderLoops(SunGraphics2D sg2d) { if (sg2d.paintState <= SunGraphics2D.PAINT_ALPHACOLOR && sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY) { return solidloops; } return super.getRenderLoops(sg2d); }
Example #26
Source File: BufImgSurfaceData.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public RenderLoops getRenderLoops(SunGraphics2D sg2d) { if (sg2d.paintState <= SunGraphics2D.PAINT_ALPHACOLOR && sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY) { return solidloops; } return super.getRenderLoops(sg2d); }
Example #27
Source File: SurfaceData.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * 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 #28
Source File: SurfaceData.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Return a RenderLoops object containing all of the basic * GraphicsPrimitive objects for rendering to the destination * surface with the current attributes of the given SunGraphics2D. */ public RenderLoops getRenderLoops(SunGraphics2D sg2d) { SurfaceType src = getPaintSurfaceType(sg2d); CompositeType comp = getFillCompositeType(sg2d); SurfaceType dst = sg2d.getSurfaceData().getSurfaceType(); Object o = loopcache.get(src, comp, dst); if (o != null) { return (RenderLoops) o; } RenderLoops loops = makeRenderLoops(src, comp, dst); loopcache.put(src, comp, dst, loops); return loops; }
Example #29
Source File: SurfaceData.java From Bytecoder with Apache License 2.0 | 5 votes |
/** * Return a RenderLoops object containing all of the basic * GraphicsPrimitive objects for rendering to the destination * surface with the current attributes of the given SunGraphics2D. */ public RenderLoops getRenderLoops(SunGraphics2D sg2d) { SurfaceType src = getPaintSurfaceType(sg2d); CompositeType comp = getFillCompositeType(sg2d); SurfaceType dst = sg2d.getSurfaceData().getSurfaceType(); Object o = loopcache.get(src, comp, dst); if (o != null) { return (RenderLoops) o; } RenderLoops loops = makeRenderLoops(src, comp, dst); loopcache.put(src, comp, dst, loops); return loops; }
Example #30
Source File: Win32GraphicsConfig.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public synchronized RenderLoops getSolidLoops(SurfaceType stype) { if (solidloops == null || sTypeOrig != stype) { solidloops = SurfaceData.makeRenderLoops(SurfaceType.OpaqueColor, CompositeType.SrcNoEa, stype); sTypeOrig = stype; } return solidloops; }