[TeamTalk 145]: [682] TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder: 1) Fixed origin bug in MapCanvas. java that was introduced in the scribble3 refactor.
tk@edam.speech.cs.cmu.edu
tk at edam.speech.cs.cmu.edu
Thu Aug 2 13:02:53 EDT 2007
An HTML attachment was scrubbed...
URL: http://mailman.srv.cs.cmu.edu/pipermail/teamtalk-developers/attachments/20070802/2518d234/attachment.html
-------------- next part --------------
Modified: TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/MapCanvas.java
===================================================================
--- TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/MapCanvas.java 2007-08-01 17:43:45 UTC (rev 681)
+++ TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/MapCanvas.java 2007-08-02 17:02:52 UTC (rev 682)
@@ -461,7 +461,7 @@
public void setPreferredSize(Dimension d) {
view_size = d;
map_to_screen.setToScale(view_size.width / native_width, view_size.height / native_height);
- map_to_screen.translate(x_origin, y_origin);
+ map_to_screen.translate(-x_origin, -y_origin);
try {
screen_to_map = map_to_screen.createInverse();
} catch (NoninvertibleTransformException e) {
Added: TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/NativeFeelJFrame.java
===================================================================
--- TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/NativeFeelJFrame.java (rev 0)
+++ TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/NativeFeelJFrame.java 2007-08-02 17:02:52 UTC (rev 682)
@@ -0,0 +1,48 @@
+/*
+ * NativeFeelFrame.java
+ *
+ * Created on July 27, 2007, 6:40 PM
+ *
+ * To change this template, choose Tools | Template Manager
+ * and open the template in the editor.
+ */
+
+package edu.cmu.ravenclaw.pendecoder;
+
+import javax.swing.*;
+
+/**
+ *
+ * @author bfrisch
+ */
+public class NativeFeelJFrame extends JFrame{
+ public final static long serialVersionUID = -1;
+
+ /** Creates a new instance of NativeFeelFrame */
+ public NativeFeelJFrame() {
+ super();
+ try {
+ UIManager.setLookAndFeel(
+ UIManager.getSystemLookAndFeelClassName());
+ } catch (UnsupportedLookAndFeelException ex) {
+ System.err.println("Unable to load native look and feel");
+ }
+ catch (Exception e) {
+ System.err.println("Exception: " + e.toString());
+ }
+ }
+
+ public NativeFeelJFrame(String title) {
+ super(title);
+ try {
+ UIManager.setLookAndFeel(
+ UIManager.getSystemLookAndFeelClassName());
+ } catch (UnsupportedLookAndFeelException ex) {
+ System.err.println("Unable to load native look and feel");
+ }
+ catch (Exception e) {
+ System.err.println("Exception: " + e.toString());
+ }
+ }
+
+}
More information about the TeamTalk-developers
mailing list