[Bprocessor-commit] /model/src/net/sourceforge/bprocessor/model Persistence.java, 1.72, 1.73 Coordi
Status: Pre-Alpha
Brought to you by:
henryml
From: rimestad <rim...@us...> - 2007-12-30 23:29:17
|
Update of /cvsroot/bprocessor//model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv18488/src/net/sourceforge/bprocessor/model Modified Files: Persistence.java CoordinateSystem.java Log Message: Renamed onlyPlane to showPlane Index: Persistence.java =================================================================== RCS file: /cvsroot/bprocessor//model/src/net/sourceforge/bprocessor/model/Persistence.java,v retrieving revision 1.72 retrieving revision 1.73 diff -C2 -d -r1.72 -r1.73 *** Persistence.java 17 Dec 2007 10:24:27 -0000 1.72 --- Persistence.java 30 Dec 2007 23:29:06 -0000 1.73 *************** *** 563,567 **** CoordinateSystem res = new CoordinateSystem(); CoordinateSystemType cst = (CoordinateSystemType)xml; ! res.onlyPlane(cst.isOnlyplane()); List ijn = cst.getIjn().getVertex(); Vertex i = internalizeVertex(null, (VertexType)ijn.get(0), new HashMap(), new LinkedList()); --- 563,567 ---- CoordinateSystem res = new CoordinateSystem(); CoordinateSystemType cst = (CoordinateSystemType)xml; ! res.showPlane(cst.isOnlyplane()); List ijn = cst.getIjn().getVertex(); Vertex i = internalizeVertex(null, (VertexType)ijn.get(0), new HashMap(), new LinkedList()); *************** *** 1155,1159 **** private static CoordinateSystemType externalizeCoordinateSystem(CoordinateSystem cs, Map map) { CoordinateSystemType xml = new CoordinateSystemTypeImpl(); ! xml.setOnlyplane(cs.onlyPlane()); VertexesType vt = new VertexesTypeImpl(); List ijn = vt.getVertex(); --- 1155,1159 ---- private static CoordinateSystemType externalizeCoordinateSystem(CoordinateSystem cs, Map map) { CoordinateSystemType xml = new CoordinateSystemTypeImpl(); ! xml.setOnlyplane(cs.showPlane()); VertexesType vt = new VertexesTypeImpl(); List ijn = vt.getVertex(); Index: CoordinateSystem.java =================================================================== RCS file: /cvsroot/bprocessor//model/src/net/sourceforge/bprocessor/model/CoordinateSystem.java,v retrieving revision 1.74 retrieving revision 1.75 diff -C2 -d -r1.74 -r1.75 *** CoordinateSystem.java 30 Dec 2007 23:24:27 -0000 1.74 --- CoordinateSystem.java 30 Dec 2007 23:29:06 -0000 1.75 *************** *** 720,724 **** } //setActive(((Boolean)(((Attribute)attributes.get(16)).getValue())).booleanValue()); ! onlyPlane(((Boolean)(((Attribute)attributes.get(16)).getValue())).booleanValue()); setEditable(((Boolean)(((Attribute)attributes.get(17)).getValue())).booleanValue()); update(); --- 720,724 ---- } //setActive(((Boolean)(((Attribute)attributes.get(16)).getValue())).booleanValue()); ! showPlane(((Boolean)(((Attribute)attributes.get(16)).getValue())).booleanValue()); setEditable(((Boolean)(((Attribute)attributes.get(17)).getValue())).booleanValue()); update(); *************** *** 750,754 **** res.add(new Attribute("Active", Boolean.FALSE)); }*/ ! if (onlyPlane()) { res.add(new Attribute("Show plane", Boolean.TRUE)); } else { --- 750,754 ---- res.add(new Attribute("Active", Boolean.FALSE)); }*/ ! if (showPlane()) { res.add(new Attribute("Show plane", Boolean.TRUE)); } else { *************** *** 765,781 **** /** ! * Check of onlyPlane boolean ! * @return True if coordinatesystem only should be drawn as a plane */ ! public boolean onlyPlane() { return showPlane; } /** ! * Setter for onlyPlane ! * @param what The value for onlyPlane */ ! public void onlyPlane(boolean what) { ! showPlane = what; } --- 765,781 ---- /** ! * Is the plane shown for this coordinatesystem ! * @return thue if the plane is shown */ ! public boolean showPlane() { return showPlane; } /** ! * Setter for showPlane field ! * @param show should the plane (xy) be shown */ ! public void showPlane(boolean show) { ! showPlane = show; } *************** *** 859,863 **** to = o.add(j); list.add(new Guide(from, to)); ! if (!onlyPlane()) { Vertex n = getN().copy(); n.scaleIt(size); --- 859,863 ---- to = o.add(j); list.add(new Guide(from, to)); ! if (!showPlane()) { Vertex n = getN().copy(); n.scaleIt(size); |