Package limelight.ui

Examples of limelight.ui.BufferedImagePool


  private BufferedImagePool pool;

  public void setUp() throws Exception
  {
    bufferedImageCache = new SimpleCache<Panel, BufferedImage>();
    pool = new BufferedImagePool(1);
    Context.instance().bufferedImageCache = bufferedImageCache;
    Context.instance().bufferedImagePool = pool;

    job = new PaintJob(new Box(100, 200, 300, 400), Colors.TRANSPARENT);
    panel = new MockProp();
View Full Code Here


  }

  @Test
  public void paintsDirtyRegions() throws Exception
  {
    Context.instance().bufferedImagePool = new BufferedImagePool(0.1);
    activeRoot.addDirtyRegion(new Rectangle(0, 0, 10, 10));

    loop.paintDirtyRegions(activeRoot);

    assertEquals(false, activeRoot.hasDirtyRegions());
View Full Code Here

    if(context.bufferedImageCache == null)
      context.bufferedImageCache = new TimedCache<Panel, BufferedImage>(1);

    if(context.bufferedImagePool == null)
      context.bufferedImagePool = new BufferedImagePool(1);

    if(context.studio == null)
      context.studio = new Studio();

    if(context.castingDirector == null)
View Full Code Here

TOP

Related Classes of limelight.ui.BufferedImagePool

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.