All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.barrybecker4.simulation.reactiondiffusion.rendering.RenderWorker.scala Maven / Gradle / Ivy

There is a newer version: 1.6.2
Show newest version
/** Copyright by Barry G. Becker, 2000-2017. Licensed under MIT License: http://www.opensource.org/licenses/MIT  */
package com.barrybecker4.simulation.reactiondiffusion.rendering

import java.awt._


/**
  * Renders one of the rectangular strips.
  *
  * @author Barry Becker
  */
class RenderWorker private[rendering](var minX: Int, var maxX: Int, var renderer: RDRenderer, var g2: Graphics2D)
  extends Runnable {

  override def run() {
    if (maxX - minX > 0) {
      val colorRect = renderer.getColorRect(minX, maxX)
      renderer.renderStrip(minX, colorRect, g2)
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy