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

examples.Match3.src.main.gosu.match3.StoneComponent.gs Maven / Gradle / Ivy

There is a newer version: 1.18.1
Show newest version
package match3

uses javax.swing.JPanel
uses java.awt.Graphics
uses java.awt.Dimension

/**
 */
class StoneComponent extends JPanel {
  var _stone : Stone as Stone
  var _board : Board as Board
  
  construct( stone: Stone, board: Board ) {
    _stone = stone
    _board = board
  }
  
  override function paintComponent(g: Graphics) {
    var renderer = _board.getRenderer( Stone )
    renderer.render( this, g )
  }

  override property get PreferredSize(): Dimension {
    return new( 58, 58 )
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy