[Nextobjects-devel] nextobjects/nextobjects/src/org/devaki/nextobjects/workspace/models/graphics Con
Status: Alpha
Brought to you by:
eflorent
From: <efl...@us...> - 2003-05-31 13:42:38
|
Update of /cvsroot/nextobjects/nextobjects/nextobjects/src/org/devaki/nextobjects/workspace/models/graphics In directory sc8-pr-cvs1:/tmp/cvs-serv22383/src/org/devaki/nextobjects/workspace/models/graphics Modified Files: ConceptualView.java PhysicalView.java Log Message: CheckStyle + debug graphics. Index: ConceptualView.java =================================================================== RCS file: /cvsroot/nextobjects/nextobjects/nextobjects/src/org/devaki/nextobjects/workspace/models/graphics/ConceptualView.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** ConceptualView.java 31 May 2003 12:00:37 -0000 1.18 --- ConceptualView.java 31 May 2003 13:42:35 -0000 1.19 *************** *** 109,112 **** --- 109,117 ---- */ private boolean fullRefresh = true; + + /** + * The buffered image + */ + transient private BufferedImage bi = null; /** *************** *** 140,144 **** super.paintComponent(g2); Rectangle area; ! BufferedImage bi = null; BufferedImage bi2; Graphics2D big; --- 145,149 ---- super.paintComponent(g2); Rectangle area; ! BufferedImage bi2; Graphics2D big; *************** *** 197,208 **** fullRefresh = false; } ! if (bi!=null) ! { ! g2.drawImage( ! bi, ! (int) jScrollPane.getViewport().getViewPosition().getX(), ! (int) jScrollPane.getViewport().getViewPosition().getY(), ! this); ! } // loop/paint selected objects objects toviewPort panel. --- 202,219 ---- fullRefresh = false; } ! if (bi != null) ! { ! g2.drawImage( ! bi, ! (int) jScrollPane ! .getViewport() ! .getViewPosition() ! .getX(), ! (int) jScrollPane ! .getViewport() ! .getViewPosition() ! .getY(), ! this); ! } // loop/paint selected objects objects toviewPort panel. Index: PhysicalView.java =================================================================== RCS file: /cvsroot/nextobjects/nextobjects/nextobjects/src/org/devaki/nextobjects/workspace/models/graphics/PhysicalView.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** PhysicalView.java 31 May 2003 11:48:34 -0000 1.17 --- PhysicalView.java 31 May 2003 13:42:35 -0000 1.18 *************** *** 96,100 **** * the context model */ ! private PhysicalModel myModel; /** --- 96,100 ---- * the context model */ ! transient private PhysicalModel myModel; /** *************** *** 112,115 **** --- 112,120 ---- */ private boolean fullRefresh = true; + + /** + * the buffered image + */ + transient private BufferedImage bi = null; /** *************** *** 136,140 **** { Rectangle area; - BufferedImage bi = null; BufferedImage bi2; Graphics2D big; --- 141,144 ---- |