Short patches: Difference between revisions

From FreeMind
Jump to navigationJump to search
No edit summary
(-navigation bar: moved to MediaWiki:Sidebar)
 
(10 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<div id="nolabel" style="overflow:auto;height:1px;">
<table><tr>
<td width=600>


A2Z India Jobs provides the latest legitimate computer work at home jobs List and online business which can be done from home - part time or full time at free of service.
Let us put short patches directly here.


This website helps job seekers to find a potential job match For job seekers, we provide you the free service of employer’s data base for posting your resume to their respective position.
===Patch resizing images upon zoom===


This site is specifically designed for Indian Peoples to get good job in IT, NON–IT, Freelancers and for Work at Home Business Opportunities/online business opportunities.
Our user ''Mario Claerhout'' has written to us: Since I like FreeMind so much I decided to add a little contribution. Attached you find an altered NodeView.java which contains following modification :
Nodes containing images are now also resized when zooming.
I did this by adding the method:


Now it’s good time to market your freelance services and find all the business you need to succeed. We have more number of jobs in our database, with fresh contacts and projects being added daily. So kickstart your work-at-home career through us
  private String resizeImage(String text) {
    JLabel imageLabel=new JLabel(text);
    Dimension prefSize=imageLabel.getPreferredSize();
    int width=(int)(prefSize.width * map.getZoom());
    int height=(int)(prefSize.height * map.getZoom());             
    String result=text.replaceAll("(<html>.*?<img src=\".*?\")",
                                  "$1 width=\""+width+"\" height=\""+height+"\"");
    System.out.println(result);
    return result;
  }


[http://www.a2zindiajobs.com online business opportunities]
</table>


[http://www.a2zindiajobs.com/workathome.html work at home]
===Patch to compile with Java 5===
(You'll need to remove the space at the start of each line)
diff -ur freemind/freemind/main/XMLElement.java freemind-loz/freemind/main/XMLElement.java
--- freemind/freemind/main/XMLElement.java 2003-11-03 11:00:10.000000000 +0000
+++ freemind-loz/freemind/main/XMLElement.java 2004-11-12 20:46:18.568427860 +0000
@@ -480,9 +480,9 @@
          this.children = new Vector();
          this.entities = entities;
          this.lineNr = 0;
-        Enumeration enum = this.entities.keys();
-        while (enum.hasMoreElements()) {
-            Object key = enum.nextElement();
+        Enumeration enumb = this.entities.keys();
+        while (enumb.hasMoreElements()) {
+            Object key = enumb.nextElement();
              Object value = this.entities.get(key);
              if (value instanceof String) {
                  value = ((String) value).toCharArray();
@@ -2194,10 +2194,10 @@
          writer.write('<');
          writer.write(this.name);
          if (! this.attributes.isEmpty()) {
-            Enumeration enum = this.attributes.keys();
-            while (enum.hasMoreElements()) {
+            Enumeration enumb = this.attributes.keys();
+            while (enumb.hasMoreElements()) {
                  writer.write(' ');
-                String key = (String) enum.nextElement();
+                String key = (String) enumb.nextElement();
                  String value = (String) this.attributes.get(key);
                  writer.write(key);
                  writer.write('='); writer.write('"');
@@ -2224,9 +2224,9 @@
          } else {
              writer.write('>');
              writer.write('\n');
-            Enumeration enum = this.enumerateChildren();
-            while (enum.hasMoreElements()) {
-                XMLElement child = (XMLElement) enum.nextElement();
+            Enumeration enumb = this.enumerateChildren();
+            while (enumb.hasMoreElements()) {
+                XMLElement child = (XMLElement) enumb.nextElement();
                  child.write(writer);
              }
              if (withClosingTag) {


[http://www.a2zindiajobs.com/jobslist.html jobs list internet business]
[[Category:Development]]
 
[http://www.a2zindiajobs.com/itjobs.html it jobs  internet business work from home]
 
[http://www.a2zindiajobs.com/nonitjobs.html non it jobs internet business freelancer jobs]
 
[http://www.a2zindiajobs.com/freelancer.html freelancer jobs online jobs]
 
 
A2Z India Jobs serving the mostly small business and work at home based business opportunity resources, classifieds, ideas, opportunities, tools and technologies, news and articles, a links directory, a monthly newsletter, an affiliate program, bizopp forums, and more.Work from home, running your own business and take control of your own future.
 
A2Z India Jobs is to bringing you all the latest freelance jobs and projects, with new listings added daily. So whether you're an experienced professional, or just starting out, You can apply/directly contact to the particular clients email/address.
 
we can bring you hot leads and cool projects in every work-at-home job and freelance sector, including:
</div>

Latest revision as of 11:30, 25 February 2011

Let us put short patches directly here.

Patch resizing images upon zoom

Our user Mario Claerhout has written to us: Since I like FreeMind so much I decided to add a little contribution. Attached you find an altered NodeView.java which contains following modification : Nodes containing images are now also resized when zooming. I did this by adding the method:

 private String resizeImage(String text) {

   JLabel imageLabel=new JLabel(text);
   Dimension prefSize=imageLabel.getPreferredSize();
   int width=(int)(prefSize.width * map.getZoom());
   int height=(int)(prefSize.height * map.getZoom());              
   String result=text.replaceAll("(<html>.*?<img src=\".*?\")",
                                 "$1 width=\""+width+"\" height=\""+height+"\"");
   System.out.println(result);
   return result;

 }

Patch to compile with Java 5

(You'll need to remove the space at the start of each line)

diff -ur freemind/freemind/main/XMLElement.java freemind-loz/freemind/main/XMLElement.java
--- freemind/freemind/main/XMLElement.java 2003-11-03 11:00:10.000000000 +0000
+++ freemind-loz/freemind/main/XMLElement.java 2004-11-12 20:46:18.568427860 +0000
@@ -480,9 +480,9 @@
         this.children = new Vector();
         this.entities = entities;
         this.lineNr = 0;
-        Enumeration enum = this.entities.keys();
-        while (enum.hasMoreElements()) {
-            Object key = enum.nextElement();
+        Enumeration enumb = this.entities.keys();
+        while (enumb.hasMoreElements()) {
+            Object key = enumb.nextElement();
             Object value = this.entities.get(key);
             if (value instanceof String) {
                 value = ((String) value).toCharArray();
@@ -2194,10 +2194,10 @@
         writer.write('<');
         writer.write(this.name);
         if (! this.attributes.isEmpty()) {
-            Enumeration enum = this.attributes.keys();
-            while (enum.hasMoreElements()) {
+            Enumeration enumb = this.attributes.keys();
+            while (enumb.hasMoreElements()) {
                 writer.write(' ');
-                String key = (String) enum.nextElement();
+                String key = (String) enumb.nextElement();
                 String value = (String) this.attributes.get(key);
                 writer.write(key);
                 writer.write('='); writer.write('"');
@@ -2224,9 +2224,9 @@
         } else {
             writer.write('>');
             writer.write('\n');
-            Enumeration enum = this.enumerateChildren();
-            while (enum.hasMoreElements()) {
-                XMLElement child = (XMLElement) enum.nextElement();
+            Enumeration enumb = this.enumerateChildren();
+            while (enumb.hasMoreElements()) {
+                XMLElement child = (XMLElement) enumb.nextElement();
                 child.write(writer);
             }
             if (withClosingTag) {