SpreadSheetApplet
Class CellArray

java.lang.Object
  |
  +--SpreadSheetApplet.CellArray

class CellArray
extends java.lang.Object

Classe CellArray implémentant la représentation d'un ensemble de cellules d'un sous-tableau (encadrement) d'un objet SpreadSheet.

Version:
0.9 - beta
Author:
Denis Di Filippantonio for Dynasite

Field Summary
private  java.awt.Point brCell
           
private  java.awt.Point tlCell
           
 
Constructor Summary
CellArray(java.awt.Point tlC, java.awt.Point brC)
          Constructeur
 
Method Summary
 boolean contains(SpreadSheetApplet.CellArray ca)
          Vérifie si ce sous-tableau contient un autre sous-tableau ca, ceci incuant le cas où les sous-tableaux sont identiques.
 java.awt.Point getBRCell()
          Renvoit la position de la dernière cellule du sous-tableau, le x est la position verticale et y est l'horizontale.
 java.awt.Point getTLCell()
          Renvoit la position de la première cellule du sous-tableau, le x est la position verticale et y est l'horizontale.
 boolean isCompatibleWith(java.awt.Point tl, java.awt.Point br, boolean forFusion)
          Vérifie si un autre sous-ensemble de cellules est compatible avec ce sous-tableau.
 void setBRCell(java.awt.Point p)
          Permet de changer la position de la dernière cellule du sous-tableau.
 void setTLCell(java.awt.Point p)
          Permet de changer la position de la première cellule du sous-tableau.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

tlCell

private java.awt.Point tlCell


brCell

private java.awt.Point brCell

Constructor Detail

CellArray

public CellArray(java.awt.Point tlC,
                 java.awt.Point brC)

Method Detail

getTLCell

public java.awt.Point getTLCell()


setTLCell

public void setTLCell(java.awt.Point p)


getBRCell

public java.awt.Point getBRCell()


setBRCell

public void setBRCell(java.awt.Point p)


isCompatibleWith

public boolean isCompatibleWith(java.awt.Point tl,
                                java.awt.Point br,
                                boolean forFusion)


contains

public boolean contains(SpreadSheetApplet.CellArray ca)