com.alee.examples.groups.desktoppane.tetris
Class Block

java.lang.Object
  extended by com.alee.examples.groups.desktoppane.tetris.Block

public class Block
extends java.lang.Object

User: mgarin Date: 02.06.11 Time: 17:09


Field Summary
static java.awt.Font blockFont
           
 
Constructor Summary
Block()
           
Block(javax.swing.ImageIcon icon)
           
Block(java.lang.String text)
           
 
Method Summary
 java.awt.Point getBlockPoint()
           
 int getRotation()
           
 void paintBlock(java.awt.Graphics2D g2d, java.awt.Rectangle rect, int rotation)
           
 void setBlockPoint(java.awt.Point blockPoint)
           
 void setRotation(int rotation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blockFont

public static java.awt.Font blockFont
Constructor Detail

Block

public Block()

Block

public Block(java.lang.String text)

Block

public Block(javax.swing.ImageIcon icon)
Method Detail

getRotation

public int getRotation()

setRotation

public void setRotation(int rotation)

getBlockPoint

public java.awt.Point getBlockPoint()

setBlockPoint

public void setBlockPoint(java.awt.Point blockPoint)

paintBlock

public void paintBlock(java.awt.Graphics2D g2d,
                       java.awt.Rectangle rect,
                       int rotation)