[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Relation.java, 1.2, 1.3 CoordinateSy
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Michael L. <he...@us...> - 2007-03-06 14:54:00
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25660/src/net/sourceforge/bprocessor/model Modified Files: Relation.java CoordinateSystem.java Log Message: A few changes to relations handling Index: CoordinateSystem.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/CoordinateSystem.java,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** CoordinateSystem.java 6 Mar 2007 14:11:41 -0000 1.36 --- CoordinateSystem.java 6 Mar 2007 14:53:48 -0000 1.37 *************** *** 684,686 **** --- 684,692 ---- n.scale(-1); } + + public void update() { + for (Relation relation : relations) { + System.out.println("offset : " + relation.getOffset()); + } + } } Index: Relation.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Relation.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Relation.java 6 Mar 2007 10:41:24 -0000 1.2 --- Relation.java 6 Mar 2007 14:53:48 -0000 1.3 *************** *** 8,11 **** --- 8,12 ---- package net.sourceforge.bprocessor.model; + import java.util.Iterator; import java.util.LinkedList; import java.util.List; *************** *** 35,38 **** --- 36,47 ---- return attributes; } + + /** + * Returns the offset. + * @return The offset + */ + public String getOffset() { + return offset; + } /** {@inheritDoc} */ *************** *** 52,56 **** /** {@inheritDoc} */ public void setAttributes(List attributes) { ! // TODO Auto-generated method stub } --- 61,71 ---- /** {@inheritDoc} */ public void setAttributes(List attributes) { ! Iterator iter = attributes.iterator(); ! while (iter.hasNext()) { ! Attribute current = (Attribute) iter.next(); ! if (current.getName().equals("Offset")) { ! this.offset = (String) current.getValue(); ! } ! } } |