ch.tatool.core.display.swing.matrix
Class MatrixValue

java.lang.Object
  extended by ch.tatool.core.display.swing.matrix.MatrixValue

public class MatrixValue
extends Object

Encapsulates a value and the associated location in the matrix.

Author:
Michael Ruflin

Field Summary
 int action
           
 int column
           
 int row
           
 Object value
           
 
Constructor Summary
MatrixValue()
           
 
Method Summary
 boolean comparePositionTo(MatrixValue other)
           
 MatrixValue copy()
           
static MatrixValue fromString(String string)
          Converts a string into a matrix value.
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

row

public int row

column

public int column

value

public Object value

action

public int action
Constructor Detail

MatrixValue

public MatrixValue()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

copy

public MatrixValue copy()

comparePositionTo

public boolean comparePositionTo(MatrixValue other)

fromString

public static MatrixValue fromString(String string)
Converts a string into a matrix value.


main

public static void main(String[] args)


Copyright © 2012. All Rights Reserved.