[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Grid.java, 1.2, 1.3
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2009-05-14 13:16:46
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1804/src/net/sourceforge/bprocessor/model Modified Files: Grid.java Log Message: Made Grid a Constructor Index: Grid.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Grid.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Grid.java 17 Dec 2007 13:09:16 -0000 1.2 --- Grid.java 14 May 2009 12:28:12 -0000 1.3 *************** *** 7,10 **** --- 7,11 ---- package net.sourceforge.bprocessor.model; + import java.util.LinkedList; import java.util.List; *************** *** 13,17 **** --- 14,46 ---- */ public class Grid extends Constructor { + private double size; + private double delta; + + /** + * + * + */ + public Grid() { + super(new Vertex(0, 0, 0)); + size = 40.0; + delta = 1.0; + } + /** + * + * @return size + */ + public double size() { + return size; + } + + /** + * + * @return delta + */ + public double delta() { + return delta; + } + /** {@inheritDoc} */ @Override *************** *** 21,34 **** /** {@inheritDoc} */ public List<Attribute> getAttributes() { ! return null; } /** {@inheritDoc} */ ! public String title() { ! return "Grid"; } /** {@inheritDoc} */ ! public void setAttributes(List<Attribute> attributes) { } } --- 50,63 ---- /** {@inheritDoc} */ public List<Attribute> getAttributes() { ! return new LinkedList(); } /** {@inheritDoc} */ ! public void setAttributes(List<Attribute> attributes) { } /** {@inheritDoc} */ ! public String title() { ! return "Grid"; } } |