[JPP-Devel] SVN: [6282] core/trunk/src/org/openjump/core/ui/plugin/raster/ RasterMenuNames.java

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6282
  http://sourceforge.net/p/jump-pilot/code/6282
Author:   ma15569
Date: 2020-05-31 10:57:20 + (Sun, 31 May 2020)
Log Message:
---
Corrected some language codes

Modified Paths:
--
core/trunk/src/org/openjump/core/ui/plugin/raster/RasterMenuNames.java

Modified: core/trunk/src/org/openjump/core/ui/plugin/raster/RasterMenuNames.java
===
--- core/trunk/src/org/openjump/core/ui/plugin/raster/RasterMenuNames.java  
2020-05-31 10:15:14 UTC (rev 6281)
+++ core/trunk/src/org/openjump/core/ui/plugin/raster/RasterMenuNames.java  
2020-05-31 10:57:20 UTC (rev 6282)
@@ -17,9 +17,9 @@
 public static String Output_file = I18N
 .get("driver.DriverManager.file-to-save");
 public static String Choose_an_action = I18N
-.get("org.openjump.core.rasterimage.plugin.Choose-an-action");
+.get("ui.GenericNames.choose-an-action");
 public static String Check_field = I18N
-
.get("org.openjump.core.rasterimage.plugin.Check-value-into-the-field");
+.get("ui.GenericNames.chech-field");
 public static String PROCESSING = I18N
 .get("jump.plugin.edit.NoderPlugIn.processing");
 



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] Updated VertexSymbols plugin

2020-05-31 Thread Giuseppe Aruta
Hi all OpenJumpers,
for the up-to-come OpenJUMP NB I updated Geoff's VertexSymbols plugin to
version 0.20.
This new version extends OpenJUMP style capabilities on vertex and
Linestrings.
These are the main aspects:

   - Extended capability of the plugin to feature classification by
   attribute value.
   - Added capability to style linestrings with symbols at user-defined
   distance between each other, offset to the line, and rotation according
   line (segments) orientation

Other aspects of this new realize are:

   - better visual and command organization
   - improved panels and GUI
   - activated capability to read/use pure WKT files as symbols (already
   embedded by Geoff)
   - integration with some basic style parameters (line/fill colors, global
   transparency,..)

Regarding development, I rewrite some parts of the original code in order
to use more OpenJUMP libraries omologate to OpenJUMP  structure.
In a few days (I hope) I will upgrade also user documentation about the
plugin.

Note that there must be some code break between previous version of
VertexSymbols plugin and this new one. So the compatibility between the two
version of the plugin is not garanteeded 100%. Test are still under
development

Best regards

Giuseppe Aruta
___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6281] core/trunk/ChangeLog

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6281
  http://sourceforge.net/p/jump-pilot/code/6281
Author:   ma15569
Date: 2020-05-31 10:15:14 + (Sun, 31 May 2020)
Log Message:
---
Updated ChangeLog file

Modified Paths:
--
core/trunk/ChangeLog

Modified: core/trunk/ChangeLog
===
--- core/trunk/ChangeLog2020-05-31 10:05:13 UTC (rev 6280)
+++ core/trunk/ChangeLog2020-05-31 10:15:14 UTC (rev 6281)
@@ -5,6 +5,18 @@
 #< 80 chars 
-->#
 
 2020-05-31 Giuseppe Aruta
+  * Updated VertexSymbols plugin to version 0.20:
+a) Extended capability of the plugin to feature classification by attribute
+   value
+b) Added capability to style linestrings with symbols at user-defined
+   distance between each other, offset to the line, and rotation according
+   to segments orientation
+c) better visual and command organization
+d) activated capability to read/use pure WKT files as symbols (already
+   embedded by Geoff)
+e) integration with some basic style parameters (line/fill colors, global
+   transparency,..)
+f) improved panels, commands and GUI
   * Correct text preview panel of TextEditor in order that text is wrapped 
   into multiple lines
 



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6280] core/trunk/lib/plus/VertexSymbols-0.20.jar

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6280
  http://sourceforge.net/p/jump-pilot/code/6280
Author:   ma15569
Date: 2020-05-31 10:05:13 + (Sun, 31 May 2020)
Log Message:
---
Updated VertexSymbols plugin to version 0.20

Added Paths:
---
core/trunk/lib/plus/VertexSymbols-0.20.jar

Added: core/trunk/lib/plus/VertexSymbols-0.20.jar
===
(Binary files differ)

Index: core/trunk/lib/plus/VertexSymbols-0.20.jar
===
--- core/trunk/lib/plus/VertexSymbols-0.20.jar  2020-05-31 09:59:03 UTC (rev 
6279)
+++ core/trunk/lib/plus/VertexSymbols-0.20.jar  2020-05-31 10:05:13 UTC (rev 
6280)

Property changes on: core/trunk/lib/plus/VertexSymbols-0.20.jar
___
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6279] plug-ins/CadPlan_VertexSymbols/dist/VertexSymbols-0.20.jar

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6279
  http://sourceforge.net/p/jump-pilot/code/6279
Author:   ma15569
Date: 2020-05-31 09:59:03 + (Sun, 31 May 2020)
Log Message:
---
Added new realize of VertexSymbols plugin to disto SVN folder

Added Paths:
---
plug-ins/CadPlan_VertexSymbols/dist/VertexSymbols-0.20.jar

Added: plug-ins/CadPlan_VertexSymbols/dist/VertexSymbols-0.20.jar
===
(Binary files differ)

Index: plug-ins/CadPlan_VertexSymbols/dist/VertexSymbols-0.20.jar
===
--- plug-ins/CadPlan_VertexSymbols/dist/VertexSymbols-0.20.jar  2020-05-31 
09:57:22 UTC (rev 6278)
+++ plug-ins/CadPlan_VertexSymbols/dist/VertexSymbols-0.20.jar  2020-05-31 
09:59:03 UTC (rev 6279)

Property changes on: plug-ins/CadPlan_VertexSymbols/dist/VertexSymbols-0.20.jar
___
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6278] plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/ StylerMenuPlugIn.java

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6278
  http://sourceforge.net/p/jump-pilot/code/6278
Author:   ma15569
Date: 2020-05-31 09:57:22 + (Sun, 31 May 2020)
Log Message:
---
Activated feature popup and menu accesses to plugins via StylerMenuPlugIn 

Modified Paths:
--
plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/StylerMenuPlugIn.java

Modified: plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/StylerMenuPlugIn.java
===
--- plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/StylerMenuPlugIn.java  
2020-05-31 09:54:08 UTC (rev 6277)
+++ plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/StylerMenuPlugIn.java  
2020-05-31 09:57:22 UTC (rev 6278)
@@ -4,6 +4,7 @@
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 
+import javax.swing.ImageIcon;
 import javax.swing.JMenuItem;
 import javax.swing.JPopupMenu;
 import javax.swing.JToggleButton;
@@ -11,7 +12,6 @@
 import org.openide.awt.DropDownButtonFactory;
 
 import com.cadplan.jump.icon.IconLoader;
-import com.cadplan.jump.language.I18NPlug;
 import com.cadplan.jump.utils.LoadSymbolFiles;
 import com.cadplan.jump.utils.VertexParams;
 import com.vividsolutions.jump.workbench.WorkbenchContext;
@@ -21,7 +21,8 @@
 import com.vividsolutions.jump.workbench.plugin.MultiEnableCheck;
 import com.vividsolutions.jump.workbench.plugin.PlugInContext;
 import com.vividsolutions.jump.workbench.ui.GUIUtil;
-import com.vividsolutions.jump.workbench.ui.renderer.style.BasicStyle;
+import com.vividsolutions.jump.workbench.ui.LayerViewPanel;
+import com.vividsolutions.jump.workbench.ui.MenuNames;
 import com.vividsolutions.jump.workbench.ui.task.TaskMonitorManager;
 
 
@@ -30,14 +31,15 @@
 
 
private PlugInContext context;
-
-   // the JToggleButton in the WorkbenchToolBar
private JToggleButton toolbarButton = null;
+   public static JMenuItem mi;
 
-   public static JMenuItem mi;
-   public static final String COLOR = "COLOR";
-   public static final String R_G_B = BasicStyle.RGB_ATTRIBUTE_NAME;
private TaskMonitorManager taskMonitorManager;
+   final VertexSymbolsPlugIn vertexSymbolsPlugIn = new 
VertexSymbolsPlugIn();
+   final VertexNotePlugin vertexnotePlugIn = new VertexNotePlugin();
+   ImageIcon ICON1 = IconLoader.icon("vsicon.gif");
+   ImageIcon ICON2 = IconLoader.icon("noteicon.gif");
+
@Override
public void initialize(final PlugInContext context) throws Exception {
this.context = context;
@@ -46,14 +48,6 @@

GUIUtil.toSmallIcon(IconLoader.icon("Palette.png"), 20), 
initPopupLazily());
 
-   // init popup takes a long time, defer it after workbench is 
shown
-   /*  SwingUtilities.invokeLater(new Runnable() {
-   @Override
-   public void run() {
-   colorPickerPopup = initPopupLazily();
-   }
-   });*/
-
LoadSymbolFiles loadSymbols = new LoadSymbolFiles(context);
loadSymbols.start();
VertexParams.context = context.getWorkbenchContext();
@@ -61,6 +55,28 @@
 

context.getWorkbenchContext().getWorkbench().getFrame().getToolBar().add(toolbarButton);
 
+
+   EnableCheckFactory enableCheckFactory = new 
EnableCheckFactory(context.getWorkbenchContext());
+   MultiEnableCheck multiEnableCheck = new MultiEnableCheck();
+   
multiEnableCheck.add(enableCheckFactory.createAtLeastNLayersMustExistCheck(1));
+   
multiEnableCheck.add(enableCheckFactory.createAtLeastNLayersMustBeSelectedCheck(1));
+   String str = MenuNames.PLUGINS;
+   
context.getFeatureInstaller().addMainMenuPlugin(vertexSymbolsPlugIn, new 
String[]{str, MenuNames.STYLE}, 
+   vertexSymbolsPlugIn.getName(), 
+   false, ICON1, multiEnableCheck);
+
+   EnableCheckFactory check = new 
EnableCheckFactory(context.getWorkbenchContext());
+   EnableCheck scheck = 
check.createAtLeastNFeaturesMustBeSelectedCheck(1);
+   MultiEnableCheck mcheck = new MultiEnableCheck();
+   mcheck.add(check.createAtLeastNLayersMustExistCheck(1));
+   mcheck.add(check.createAtLeastNLayersMustBeEditableCheck(1));
+
+   
context.getFeatureInstaller().addMainMenuPlugin(vertexnotePlugIn, new 
String[]{str, MenuNames.STYLE}, 
+   vertexnotePlugIn.getName(), false, 
IconLoader.icon("noteicon.gif"), mcheck);
+   
context.getFeatureInstaller().addPopupMenuPlugin(LayerViewPanel.popupMenu(), 
vertexnotePlugIn, 
+   vertexnotePlugIn.getName(), false,ICON2, 
scheck);
+
+
}
final JPopupMenu popup = new JPopupMenu();

[JPP-Devel] SVN: [6277] plug-ins/CadPlan_VertexSymbols/trunk/src/jump/ VertexSymbolsExtension.java

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6277
  http://sourceforge.net/p/jump-pilot/code/6277
Author:   ma15569
Date: 2020-05-31 09:54:08 + (Sun, 31 May 2020)
Log Message:
---
Updated copyrights

Modified Paths:
--
plug-ins/CadPlan_VertexSymbols/trunk/src/jump/VertexSymbolsExtension.java

Modified: 
plug-ins/CadPlan_VertexSymbols/trunk/src/jump/VertexSymbolsExtension.java
===
--- plug-ins/CadPlan_VertexSymbols/trunk/src/jump/VertexSymbolsExtension.java   
2020-05-31 09:52:03 UTC (rev 6276)
+++ plug-ins/CadPlan_VertexSymbols/trunk/src/jump/VertexSymbolsExtension.java   
2020-05-31 09:54:08 UTC (rev 6277)
@@ -18,4 +18,9 @@
public String getVersion() {
return "0.20 (2020-05-30)";
}
+   
+   @Override
+   public String getName() {
+   return "VertexSymbol - © 2005 Geoffrey G Roy. Modified version 
by Giuseppe Aruta 2020";
+   }
 }



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6276] plug-ins/CadPlan_VertexSymbols/trunk/src/utils/StyleUtils.java

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6276
  http://sourceforge.net/p/jump-pilot/code/6276
Author:   ma15569
Date: 2020-05-31 09:52:03 + (Sun, 31 May 2020)
Log Message:
---
Few improvements and removed unused methods on StyleUtils class  

Modified Paths:
--
plug-ins/CadPlan_VertexSymbols/trunk/src/utils/StyleUtils.java

Modified: plug-ins/CadPlan_VertexSymbols/trunk/src/utils/StyleUtils.java
===
--- plug-ins/CadPlan_VertexSymbols/trunk/src/utils/StyleUtils.java  
2020-05-31 07:00:59 UTC (rev 6275)
+++ plug-ins/CadPlan_VertexSymbols/trunk/src/utils/StyleUtils.java  
2020-05-31 09:52:03 UTC (rev 6276)
@@ -9,14 +9,11 @@
 import java.awt.GridBagConstraints;
 import java.awt.Insets;
 import java.awt.Rectangle;
-import java.awt.Shape;
 import java.awt.Toolkit;
 import java.awt.event.KeyAdapter;
 import java.awt.event.KeyEvent;
 import java.awt.event.MouseAdapter;
 import java.awt.event.MouseEvent;
-import java.awt.geom.NoninvertibleTransformException;
-import java.awt.geom.Point2D;
 import java.util.ArrayList;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -25,7 +22,6 @@
 
 import javax.swing.BorderFactory;
 import javax.swing.JComponent;
-import javax.swing.JLabel;
 import javax.swing.JOptionPane;
 import javax.swing.JRadioButton;
 import javax.swing.JTextArea;
@@ -32,7 +28,6 @@
 import javax.swing.JTextField;
 
 import org.apache.log4j.Logger;
-import org.openjump.core.ui.util.GeometryUtils;
 
 import com.cadplan.jump.language.I18NPlug;
 import com.cadplan.jump.plugins.VertexSymbolsDialog;
@@ -40,26 +35,17 @@
 import com.cadplan.jump.plugins.panel.VertexColorThemingPanel;
 import com.cadplan.jump.plugins.panel.VertexParametersPanel;
 import com.cadplan.jump.plugins.panel.VertexSymbologyPanel;
-import com.cadplan.jump.ui.TextAreaEditor;
-import com.vividsolutions.jts.awt.ShapeWriter;
 import com.vividsolutions.jts.geom.Coordinate;
 import com.vividsolutions.jts.geom.CoordinateList;
-import com.vividsolutions.jts.geom.Envelope;
 import com.vividsolutions.jts.geom.Geometry;
-import com.vividsolutions.jts.geom.LineString;
 import com.vividsolutions.jts.linearref.LengthIndexedLine;
 import com.vividsolutions.jump.I18N;
-import com.vividsolutions.jump.feature.AttributeType;
 import com.vividsolutions.jump.feature.Feature;
 import com.vividsolutions.jump.feature.FeatureCollection;
-import com.vividsolutions.jump.feature.FeatureSchema;
-import com.vividsolutions.jump.geom.EnvelopeUtil;
 import com.vividsolutions.jump.workbench.JUMPWorkbench;
 import com.vividsolutions.jump.workbench.model.Layer;
 import com.vividsolutions.jump.workbench.ui.TextEditor;
-import com.vividsolutions.jump.workbench.ui.Viewport;
 import com.vividsolutions.jump.workbench.ui.WorkbenchFrame;
-import com.vividsolutions.jump.workbench.ui.renderer.java2D.Java2DConverter;
 import com.vividsolutions.jump.workbench.ui.renderer.style.AlphaSetting;
 import com.vividsolutions.jump.workbench.ui.renderer.style.ColorThemingStyle;
 import com.vividsolutions.jump.workbench.ui.renderer.style.Style;
@@ -67,19 +53,26 @@
 public class StyleUtils {
public static WorkbenchFrame frameInstance = 
JUMPWorkbench.getInstance().getFrame();
 
+   /**
+* Gets list of values of an attribute
+* @param layer
+* @param attribute
+* @param maxSize
+* @return
+*/
public static List availableValuesList(Layer layer, String 
attribute, int maxSize) {
-   List list = new ArrayList();
+   List list = new ArrayList();
FeatureCollection fc = layer.getFeatureCollectionWrapper();
-   Iterator it = fc.iterator();
+   Iterator it = fc.iterator();
 
while(it.hasNext() && list.size() < maxSize) {
-   Feature f = (Feature)it.next();
+   Feature f = it.next();
list.add(f.getString(attribute));
}
 
-   Set set1 = new HashSet();
-   List newList = new ArrayList();
-   Iterator iter = list.iterator();
+   Set set1 = new HashSet();
+   List newList = new ArrayList();
+   Iterator iter = list.iterator();
 
while(iter.hasNext()) {
Object element = iter.next();
@@ -93,28 +86,9 @@
return list;
}
 
-   public static List getAttributeList(Layer layer) {
-   List attrNames = new ArrayList();
-   if (layer != null) {
-   FeatureCollection fc = 
layer.getFeatureCollectionWrapper();
-   FeatureSchema schema = fc.getFeatureSchema();
 
-   for(int i = 0; i < schema.getAttributeCount(); ++i) {
-   if (schema.getAttributeType(i) != 
AttributeType.GEOMETRY) {
-   
attrNames.add(schema.getAttributeName(i));
-   

[JPP-Devel] SVN: [6275] plug-ins/CadPlan_VertexSymbols/trunk/src

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6275
  http://sourceforge.net/p/jump-pilot/code/6275
Author:   ma15569
Date: 2020-05-31 07:00:59 + (Sun, 31 May 2020)
Log Message:
---
delete duplicate

Removed Paths:
-
plug-ins/CadPlan_VertexSymbols/trunk/src/HTMLTextComponent.java
plug-ins/CadPlan_VertexSymbols/trunk/src/HTMLTextSegment.java
plug-ins/CadPlan_VertexSymbols/trunk/src/VertexSymbolsExtension.java

Deleted: plug-ins/CadPlan_VertexSymbols/trunk/src/HTMLTextComponent.java
===
--- plug-ins/CadPlan_VertexSymbols/trunk/src/HTMLTextComponent.java 
2020-05-31 07:00:34 UTC (rev 6274)
+++ plug-ins/CadPlan_VertexSymbols/trunk/src/HTMLTextComponent.java 
2020-05-31 07:00:59 UTC (rev 6275)
@@ -1,130 +0,0 @@
-package com.cadplan.jump;
-
-import com.cadplan.jump.ui.LabelCallout;
-import com.cadplan.jump.ui.TransparencyFilter;
-import java.awt.Color;
-import java.awt.Component;
-import java.awt.Dimension;
-import java.awt.Font;
-import java.awt.Graphics;
-import java.awt.Graphics2D;
-import java.awt.Image;
-import java.awt.MediaTracker;
-import java.awt.Rectangle;
-import java.awt.Toolkit;
-import java.awt.image.BufferedImage;
-import java.awt.image.FilteredImageSource;
-import java.awt.image.ImageObserver;
-import java.awt.image.ImageProducer;
-import javax.swing.JEditorPane;
-import javax.swing.JWindow;
-
-public class HTMLTextComponent extends Component {
-   private static final long serialVersionUID = 1L;
-   boolean debug = false;
-   String text;
-   double offset;
-   float x0;
-   float y0;
-   Color backgroundColor;
-   Color foregroundColor;
-   double alpha;
-   Image timage;
-   public int imageWidth;
-   public int imageHeight;
-   int border;
-   int position;
-   boolean fillText;
-   String fontName;
-   int fontSize;
-   double scaleFactor = 4.0D;
-   MediaTracker mediaTracker = new MediaTracker(this);
-
-   public HTMLTextComponent(String text, double offset, float x0, float y0, 
Color backgroundColor, Color foregroundColor, double alpha, int border, int 
position, boolean fillText, String fontName, int fontSize) {
-  this.text = text;
-  this.offset = offset;
-  this.x0 = x0;
-  this.y0 = y0;
-  this.backgroundColor = backgroundColor;
-  this.foregroundColor = foregroundColor;
-  this.alpha = alpha;
-  this.border = border;
-  this.position = position;
-  this.fillText = fillText;
-  this.fontName = fontName;
-  this.fontSize = fontSize;
-  this.timage = this.createTextImage();
-   }
-
-   private Image createTextImage() {
-  JWindow frame = new JWindow();
-  JEditorPane editorPane = new JEditorPane();
-  editorPane.setForeground(this.foregroundColor);
-  Font font = new Font(this.fontName, 0, (int)((double)this.fontSize * 
this.scaleFactor));
-  editorPane.setFont(font);
-  editorPane.putClientProperty("JEditorPane.honorDisplayProperties", true);
-  editorPane.setBackground(Color.WHITE);
-  editorPane.setDoubleBuffered(false);
-  editorPane.setEditable(false);
-  editorPane.setContentType("text/html");
-  editorPane.setText(this.text);
-  Rectangle bounds = editorPane.getBounds();
-  if (this.debug) {
- System.out.println("Painting text: " + this.text);
-  }
-
-  frame.setContentPane(editorPane);
-  frame.pack();
-  Dimension size = editorPane.getSize();
-  BufferedImage image = new BufferedImage(size.width, size.height, 1);
-  Graphics2D graphics = image.createGraphics();
-  editorPane.paint(graphics);
-  this.mediaTracker.addImage(image, 0);
-
-  try {
- this.mediaTracker.waitForID(0);
-  } catch (InterruptedException var9) {
- return null;
-  }
-
-  if (image == null) {
- if (this.debug) {
-System.out.println("Image is null");
- }
-
- return null;
-  } else {
- this.alpha = 0.0D;
- Image timage = this.makeTransparent(image, Color.WHITE, this.alpha);
- if (this.debug) {
-System.out.println("TImage size: " + 
timage.getWidth((ImageObserver)null) + "," + 
timage.getHeight((ImageObserver)null));
- }
-
- this.imageWidth = (int)((double)timage.getWidth((ImageObserver)null) 
/ this.scaleFactor);
- this.imageHeight = 
(int)((double)timage.getHeight((ImageObserver)null) / this.scaleFactor);
- return timage;
-  }
-   }
-
-   public void paint(Graphics g, float x, float y, double drawFactor) {
-  int width = this.imageWidth;
-  int height = this.imageHeight;
-  new LabelCallout(g, this.border, this.position, (int)this.x0, 
(int)this.y0, (int)x, (int)y, width - 1, height - 1, this.foregroundColor, 
this.backgroundColor, this.fillText);
-  Graphics2D g2 = (Graphics2D)g;
-  g2.drawImage(this.timage, (int)x, (int)y, width, height, 
(ImageObserver)null);
-   }
-
-   private Image makeTransparent(Image image, Color 

[JPP-Devel] SVN: [6273] plug-ins/CadPlan_VertexSymbols/trunk/src

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6273
  http://sourceforge.net/p/jump-pilot/code/6273
Author:   ma15569
Date: 2020-05-31 06:59:57 + (Sun, 31 May 2020)
Log Message:
---
delete duplicate

Removed Paths:
-
plug-ins/CadPlan_VertexSymbols/trunk/src/FileChooser.java
plug-ins/CadPlan_VertexSymbols/trunk/src/MyFileFilter.java
plug-ins/CadPlan_VertexSymbols/trunk/src/TextFile.java

Deleted: plug-ins/CadPlan_VertexSymbols/trunk/src/FileChooser.java
===
--- plug-ins/CadPlan_VertexSymbols/trunk/src/FileChooser.java   2020-05-31 
06:59:29 UTC (rev 6272)
+++ plug-ins/CadPlan_VertexSymbols/trunk/src/FileChooser.java   2020-05-31 
06:59:57 UTC (rev 6273)
@@ -1,75 +0,0 @@
-package com.cadplan.fileio;
-
-import java.awt.Component;
-import java.io.File;
-import java.util.Properties;
-import javax.swing.JFileChooser;
-
-public class FileChooser {
-   JFileChooser chooser;
-   public String fileName;
-   public String dirName;
-
-   public FileChooser(Component paramComponent, String paramString1, String 
paramString2, String[] paramArrayOfString, String paramString3, int paramInt) {
-  Properties properties = System.getProperties();
-  File file;
-  if (paramString1 == null) {
- file = new File(properties.getProperty("user.dir"));
-  } else {
- file = new File(String.valueOf(paramString1) + File.separator);
-  }
-
-  this.chooser = new JFileChooser();
-  this.chooser.setDialogType(paramInt);
-  MyFileFilter myFileFilter = new MyFileFilter(paramString3, 
paramArrayOfString);
-  this.chooser.setFileFilter(myFileFilter);
-  this.chooser.setCurrentDirectory(file);
-  if (paramString2 != null) {
- this.chooser.setSelectedFile(new File(paramString2));
-  }
-
-  int i;
-  if (paramInt == 0) {
- i = this.chooser.showOpenDialog(paramComponent);
-  } else {
- i = this.chooser.showSaveDialog(paramComponent);
-  }
-
-  if (i == 0) {
- this.fileName = this.chooser.getSelectedFile().getName();
- if (paramInt == 1) {
-this.fileName = this.addExtension(this.fileName, 
paramArrayOfString);
- }
-
- this.dirName = this.chooser.getCurrentDirectory().getPath();
-  } else {
- this.fileName = null;
-  }
-
-   }
-
-   public String getFile() {
-  return this.fileName;
-   }
-
-   public String getDir() {
-  return this.dirName;
-   }
-
-   private String addExtension(String paramString, String[] 
paramArrayOfString) {
-  boolean bool = false;
-
-  for(byte b = 0; b < paramArrayOfString.length; ++b) {
- String str = paramArrayOfString[b];
- if (paramString.toLowerCase().endsWith("." + str)) {
-bool = true;
- }
-  }
-
-  if (!bool) {
- paramString = String.valueOf(paramString) + "." + 
paramArrayOfString[0];
-  }
-
-  return paramString;
-   }
-}

Deleted: plug-ins/CadPlan_VertexSymbols/trunk/src/MyFileFilter.java
===
--- plug-ins/CadPlan_VertexSymbols/trunk/src/MyFileFilter.java  2020-05-31 
06:59:29 UTC (rev 6272)
+++ plug-ins/CadPlan_VertexSymbols/trunk/src/MyFileFilter.java  2020-05-31 
06:59:57 UTC (rev 6273)
@@ -1,65 +0,0 @@
-package com.cadplan.fileio;
-
-import java.io.File;
-import javax.swing.filechooser.FileFilter;
-
-class MyFileFilter extends FileFilter {
-   String description;
-   String[] extensions;
-   boolean acceptAll;
-
-   public MyFileFilter(String paramString1, String paramString2) {
-  this(paramString1, new String[]{paramString2});
-   }
-
-   public MyFileFilter(String paramString, String[] paramArrayOfString) {
-  this.acceptAll = false;
-  if (paramString == null) {
- this.description = "Files like: " + paramArrayOfString[0];
-  } else {
- this.description = paramString;
-  }
-
-  this.extensions = (String[])paramArrayOfString.clone();
-  this.toLower(this.extensions);
-
-  for(byte b = 0; b < this.extensions.length; ++b) {
- if (this.extensions[b].equals("*")) {
-this.acceptAll = true;
- }
-  }
-
-   }
-
-   private void toLower(String[] paramArrayOfString) {
-  byte b = 0;
-
-  for(int i = paramArrayOfString.length; b < i; ++b) {
- paramArrayOfString[b] = paramArrayOfString[b].toLowerCase();
-  }
-
-   }
-
-   public String getDescription() {
-  return this.description;
-   }
-
-   public boolean accept(File paramFile) {
-  if (paramFile.isDirectory()) {
- return true;
-  } else if (this.acceptAll) {
- return true;
-  } else {
- String str = paramFile.getAbsolutePath().toLowerCase();
-
- for(byte b = 0; b < this.extensions.length; ++b) {
-String str1 = this.extensions[b];
-if (str.endsWith(str1) && str.charAt(str.length() - str1.length() 
- 1) == '.') {
-

[JPP-Devel] SVN: [6274] plug-ins/CadPlan_VertexSymbols/trunk/src/jump

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6274
  http://sourceforge.net/p/jump-pilot/code/6274
Author:   ma15569
Date: 2020-05-31 07:00:34 + (Sun, 31 May 2020)
Log Message:
---
Move files to their folder

Added Paths:
---
plug-ins/CadPlan_VertexSymbols/trunk/src/jump/HTMLTextComponent.java
plug-ins/CadPlan_VertexSymbols/trunk/src/jump/HTMLTextSegment.java
plug-ins/CadPlan_VertexSymbols/trunk/src/jump/VertexSymbolsExtension.java

Added: plug-ins/CadPlan_VertexSymbols/trunk/src/jump/HTMLTextComponent.java
===
--- plug-ins/CadPlan_VertexSymbols/trunk/src/jump/HTMLTextComponent.java
(rev 0)
+++ plug-ins/CadPlan_VertexSymbols/trunk/src/jump/HTMLTextComponent.java
2020-05-31 07:00:34 UTC (rev 6274)
@@ -0,0 +1,130 @@
+package com.cadplan.jump;
+
+import com.cadplan.jump.ui.LabelCallout;
+import com.cadplan.jump.ui.TransparencyFilter;
+import java.awt.Color;
+import java.awt.Component;
+import java.awt.Dimension;
+import java.awt.Font;
+import java.awt.Graphics;
+import java.awt.Graphics2D;
+import java.awt.Image;
+import java.awt.MediaTracker;
+import java.awt.Rectangle;
+import java.awt.Toolkit;
+import java.awt.image.BufferedImage;
+import java.awt.image.FilteredImageSource;
+import java.awt.image.ImageObserver;
+import java.awt.image.ImageProducer;
+import javax.swing.JEditorPane;
+import javax.swing.JWindow;
+
+public class HTMLTextComponent extends Component {
+   private static final long serialVersionUID = 1L;
+   boolean debug = false;
+   String text;
+   double offset;
+   float x0;
+   float y0;
+   Color backgroundColor;
+   Color foregroundColor;
+   double alpha;
+   Image timage;
+   public int imageWidth;
+   public int imageHeight;
+   int border;
+   int position;
+   boolean fillText;
+   String fontName;
+   int fontSize;
+   double scaleFactor = 4.0D;
+   MediaTracker mediaTracker = new MediaTracker(this);
+
+   public HTMLTextComponent(String text, double offset, float x0, float y0, 
Color backgroundColor, Color foregroundColor, double alpha, int border, int 
position, boolean fillText, String fontName, int fontSize) {
+  this.text = text;
+  this.offset = offset;
+  this.x0 = x0;
+  this.y0 = y0;
+  this.backgroundColor = backgroundColor;
+  this.foregroundColor = foregroundColor;
+  this.alpha = alpha;
+  this.border = border;
+  this.position = position;
+  this.fillText = fillText;
+  this.fontName = fontName;
+  this.fontSize = fontSize;
+  this.timage = this.createTextImage();
+   }
+
+   private Image createTextImage() {
+  JWindow frame = new JWindow();
+  JEditorPane editorPane = new JEditorPane();
+  editorPane.setForeground(this.foregroundColor);
+  Font font = new Font(this.fontName, 0, (int)((double)this.fontSize * 
this.scaleFactor));
+  editorPane.setFont(font);
+  editorPane.putClientProperty("JEditorPane.honorDisplayProperties", true);
+  editorPane.setBackground(Color.WHITE);
+  editorPane.setDoubleBuffered(false);
+  editorPane.setEditable(false);
+  editorPane.setContentType("text/html");
+  editorPane.setText(this.text);
+  Rectangle bounds = editorPane.getBounds();
+  if (this.debug) {
+ System.out.println("Painting text: " + this.text);
+  }
+
+  frame.setContentPane(editorPane);
+  frame.pack();
+  Dimension size = editorPane.getSize();
+  BufferedImage image = new BufferedImage(size.width, size.height, 1);
+  Graphics2D graphics = image.createGraphics();
+  editorPane.paint(graphics);
+  this.mediaTracker.addImage(image, 0);
+
+  try {
+ this.mediaTracker.waitForID(0);
+  } catch (InterruptedException var9) {
+ return null;
+  }
+
+  if (image == null) {
+ if (this.debug) {
+System.out.println("Image is null");
+ }
+
+ return null;
+  } else {
+ this.alpha = 0.0D;
+ Image timage = this.makeTransparent(image, Color.WHITE, this.alpha);
+ if (this.debug) {
+System.out.println("TImage size: " + 
timage.getWidth((ImageObserver)null) + "," + 
timage.getHeight((ImageObserver)null));
+ }
+
+ this.imageWidth = (int)((double)timage.getWidth((ImageObserver)null) 
/ this.scaleFactor);
+ this.imageHeight = 
(int)((double)timage.getHeight((ImageObserver)null) / this.scaleFactor);
+ return timage;
+  }
+   }
+
+   public void paint(Graphics g, float x, float y, double drawFactor) {
+  int width = this.imageWidth;
+  int height = this.imageHeight;
+  new LabelCallout(g, this.border, this.position, (int)this.x0, 
(int)this.y0, (int)x, (int)y, width - 1, height - 1, this.foregroundColor, 
this.backgroundColor, this.fillText);
+  Graphics2D g2 = (Graphics2D)g;
+  g2.drawImage(this.timage, (int)x, (int)y, width, height, 
(ImageObserver)null);
+   }
+
+   private Image 

[JPP-Devel] SVN: [6272] plug-ins/CadPlan_VertexSymbols/trunk/src/fileio

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6272
  http://sourceforge.net/p/jump-pilot/code/6272
Author:   ma15569
Date: 2020-05-31 06:59:29 + (Sun, 31 May 2020)
Log Message:
---
Moved files to their folder

Added Paths:
---
plug-ins/CadPlan_VertexSymbols/trunk/src/fileio/FileChooser.java
plug-ins/CadPlan_VertexSymbols/trunk/src/fileio/MyFileFilter.java
plug-ins/CadPlan_VertexSymbols/trunk/src/fileio/TextFile.java

Added: plug-ins/CadPlan_VertexSymbols/trunk/src/fileio/FileChooser.java
===
--- plug-ins/CadPlan_VertexSymbols/trunk/src/fileio/FileChooser.java
(rev 0)
+++ plug-ins/CadPlan_VertexSymbols/trunk/src/fileio/FileChooser.java
2020-05-31 06:59:29 UTC (rev 6272)
@@ -0,0 +1,75 @@
+package com.cadplan.fileio;
+
+import java.awt.Component;
+import java.io.File;
+import java.util.Properties;
+import javax.swing.JFileChooser;
+
+public class FileChooser {
+   JFileChooser chooser;
+   public String fileName;
+   public String dirName;
+
+   public FileChooser(Component paramComponent, String paramString1, String 
paramString2, String[] paramArrayOfString, String paramString3, int paramInt) {
+  Properties properties = System.getProperties();
+  File file;
+  if (paramString1 == null) {
+ file = new File(properties.getProperty("user.dir"));
+  } else {
+ file = new File(String.valueOf(paramString1) + File.separator);
+  }
+
+  this.chooser = new JFileChooser();
+  this.chooser.setDialogType(paramInt);
+  MyFileFilter myFileFilter = new MyFileFilter(paramString3, 
paramArrayOfString);
+  this.chooser.setFileFilter(myFileFilter);
+  this.chooser.setCurrentDirectory(file);
+  if (paramString2 != null) {
+ this.chooser.setSelectedFile(new File(paramString2));
+  }
+
+  int i;
+  if (paramInt == 0) {
+ i = this.chooser.showOpenDialog(paramComponent);
+  } else {
+ i = this.chooser.showSaveDialog(paramComponent);
+  }
+
+  if (i == 0) {
+ this.fileName = this.chooser.getSelectedFile().getName();
+ if (paramInt == 1) {
+this.fileName = this.addExtension(this.fileName, 
paramArrayOfString);
+ }
+
+ this.dirName = this.chooser.getCurrentDirectory().getPath();
+  } else {
+ this.fileName = null;
+  }
+
+   }
+
+   public String getFile() {
+  return this.fileName;
+   }
+
+   public String getDir() {
+  return this.dirName;
+   }
+
+   private String addExtension(String paramString, String[] 
paramArrayOfString) {
+  boolean bool = false;
+
+  for(byte b = 0; b < paramArrayOfString.length; ++b) {
+ String str = paramArrayOfString[b];
+ if (paramString.toLowerCase().endsWith("." + str)) {
+bool = true;
+ }
+  }
+
+  if (!bool) {
+ paramString = String.valueOf(paramString) + "." + 
paramArrayOfString[0];
+  }
+
+  return paramString;
+   }
+}


Property changes on: 
plug-ins/CadPlan_VertexSymbols/trunk/src/fileio/FileChooser.java
___
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: plug-ins/CadPlan_VertexSymbols/trunk/src/fileio/MyFileFilter.java
===
--- plug-ins/CadPlan_VertexSymbols/trunk/src/fileio/MyFileFilter.java   
(rev 0)
+++ plug-ins/CadPlan_VertexSymbols/trunk/src/fileio/MyFileFilter.java   
2020-05-31 06:59:29 UTC (rev 6272)
@@ -0,0 +1,65 @@
+package com.cadplan.fileio;
+
+import java.io.File;
+import javax.swing.filechooser.FileFilter;
+
+class MyFileFilter extends FileFilter {
+   String description;
+   String[] extensions;
+   boolean acceptAll;
+
+   public MyFileFilter(String paramString1, String paramString2) {
+  this(paramString1, new String[]{paramString2});
+   }
+
+   public MyFileFilter(String paramString, String[] paramArrayOfString) {
+  this.acceptAll = false;
+  if (paramString == null) {
+ this.description = "Files like: " + paramArrayOfString[0];
+  } else {
+ this.description = paramString;
+  }
+
+  this.extensions = (String[])paramArrayOfString.clone();
+  this.toLower(this.extensions);
+
+  for(byte b = 0; b < this.extensions.length; ++b) {
+ if (this.extensions[b].equals("*")) {
+this.acceptAll = true;
+ }
+  }
+
+   }
+
+   private void toLower(String[] paramArrayOfString) {
+  byte b = 0;
+
+  for(int i = paramArrayOfString.length; b < i; ++b) {
+ paramArrayOfString[b] = paramArrayOfString[b].toLowerCase();
+  }
+
+   }
+
+   public String getDescription() {
+  return this.description;
+   }
+
+   public boolean accept(File paramFile) {
+  if (paramFile.isDirectory()) {
+ return true;
+  } else if (this.acceptAll) {
+ return 

[JPP-Devel] SVN: [6270] plug-ins/CadPlan_VertexSymbols/trunk/src/designer/ GridBagDesigner.java

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6270
  http://sourceforge.net/p/jump-pilot/code/6270
Author:   ma15569
Date: 2020-05-31 06:58:15 + (Sun, 31 May 2020)
Log Message:
---


Added Paths:
---
plug-ins/CadPlan_VertexSymbols/trunk/src/designer/GridBagDesigner.java

Added: plug-ins/CadPlan_VertexSymbols/trunk/src/designer/GridBagDesigner.java
===
--- plug-ins/CadPlan_VertexSymbols/trunk/src/designer/GridBagDesigner.java  
(rev 0)
+++ plug-ins/CadPlan_VertexSymbols/trunk/src/designer/GridBagDesigner.java  
2020-05-31 06:58:15 UTC (rev 6270)
@@ -0,0 +1,94 @@
+package com.cadplan.designer;
+
+import java.awt.Component;
+import java.awt.Container;
+import java.awt.Dimension;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import javax.swing.JComponent;
+
+public class GridBagDesigner {
+   private GridBagLayout layout = new GridBagLayout();
+   private GridBagConstraints constraints = new GridBagConstraints();
+   private Container container;
+
+   public GridBagDesigner(Container paramContainer) {
+  paramContainer.setLayout(this.layout);
+  this.container = paramContainer;
+  this.setDefaults();
+   }
+
+   public void addComponent(Component paramComponent) {
+  this.layout.setConstraints(paramComponent, this.constraints);
+  this.container.add(paramComponent);
+  this.setDefaults();
+   }
+
+   public void addComponentRetain(Component paramComponent) {
+  this.layout.setConstraints(paramComponent, this.constraints);
+  this.container.add(paramComponent);
+   }
+
+   public void addComponent(JComponent paramJComponent, int width, int height) 
{
+  Dimension dimension = new Dimension(width, height);
+  paramJComponent.setMinimumSize(dimension);
+  paramJComponent.setMaximumSize(dimension);
+  paramJComponent.setPreferredSize(dimension);
+  this.layout.setConstraints(paramJComponent, this.constraints);
+  this.container.add(paramJComponent);
+  this.setDefaults();
+   }
+
+   public void addComponentRetain(JComponent paramJComponent, int width, int 
height) {
+  Dimension dimension = new Dimension(width, height);
+  paramJComponent.setMinimumSize(dimension);
+  paramJComponent.setMaximumSize(dimension);
+  paramJComponent.setPreferredSize(dimension);
+  this.layout.setConstraints(paramJComponent, this.constraints);
+  this.container.add(paramJComponent);
+   }
+
+   public void resetLayout() {
+  this.setDefaults();
+   }
+
+   public void setPosition(int column, int row) {
+  this.constraints.gridx = column;
+  this.constraints.gridy = row;
+   }
+
+   public void setSpan(int column, int row) {
+  this.constraints.gridwidth = column;
+  this.constraints.gridheight = row;
+   }
+
+   public void setWeight(double x, double y) {
+  this.constraints.weightx = x;
+  this.constraints.weighty = y;
+   }
+
+   public void setFill(int space) {
+  this.constraints.fill = space;
+   }
+
+   public void setAnchor(int position) {
+  this.constraints.anchor = position;
+   }
+
+   public void setInsets(int top, int left, int bottom, int right) {
+  this.constraints.insets = new Insets(top, left, bottom, right);
+   }
+
+   private void setDefaults() {
+  this.constraints.gridx = 0;
+  this.constraints.gridy = 0;
+  this.constraints.gridwidth = 1;
+  this.constraints.gridheight = 1;
+  this.constraints.fill = 0;
+  this.constraints.anchor = 10;
+  this.constraints.weightx = 0.0D;
+  this.constraints.weighty = 0.0D;
+  this.constraints.insets = new Insets(0, 0, 0, 0);
+   }
+}


Property changes on: 
plug-ins/CadPlan_VertexSymbols/trunk/src/designer/GridBagDesigner.java
___
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6271] plug-ins/CadPlan_VertexSymbols/trunk/src/GridBagDesigner.java

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6271
  http://sourceforge.net/p/jump-pilot/code/6271
Author:   ma15569
Date: 2020-05-31 06:58:54 + (Sun, 31 May 2020)
Log Message:
---
MOved file to its folder

Removed Paths:
-
plug-ins/CadPlan_VertexSymbols/trunk/src/GridBagDesigner.java

Deleted: plug-ins/CadPlan_VertexSymbols/trunk/src/GridBagDesigner.java
===
--- plug-ins/CadPlan_VertexSymbols/trunk/src/GridBagDesigner.java   
2020-05-31 06:58:15 UTC (rev 6270)
+++ plug-ins/CadPlan_VertexSymbols/trunk/src/GridBagDesigner.java   
2020-05-31 06:58:54 UTC (rev 6271)
@@ -1,94 +0,0 @@
-package com.cadplan.designer;
-
-import java.awt.Component;
-import java.awt.Container;
-import java.awt.Dimension;
-import java.awt.GridBagConstraints;
-import java.awt.GridBagLayout;
-import java.awt.Insets;
-import javax.swing.JComponent;
-
-public class GridBagDesigner {
-   private GridBagLayout layout = new GridBagLayout();
-   private GridBagConstraints constraints = new GridBagConstraints();
-   private Container container;
-
-   public GridBagDesigner(Container paramContainer) {
-  paramContainer.setLayout(this.layout);
-  this.container = paramContainer;
-  this.setDefaults();
-   }
-
-   public void addComponent(Component paramComponent) {
-  this.layout.setConstraints(paramComponent, this.constraints);
-  this.container.add(paramComponent);
-  this.setDefaults();
-   }
-
-   public void addComponentRetain(Component paramComponent) {
-  this.layout.setConstraints(paramComponent, this.constraints);
-  this.container.add(paramComponent);
-   }
-
-   public void addComponent(JComponent paramJComponent, int width, int height) 
{
-  Dimension dimension = new Dimension(width, height);
-  paramJComponent.setMinimumSize(dimension);
-  paramJComponent.setMaximumSize(dimension);
-  paramJComponent.setPreferredSize(dimension);
-  this.layout.setConstraints(paramJComponent, this.constraints);
-  this.container.add(paramJComponent);
-  this.setDefaults();
-   }
-
-   public void addComponentRetain(JComponent paramJComponent, int width, int 
height) {
-  Dimension dimension = new Dimension(width, height);
-  paramJComponent.setMinimumSize(dimension);
-  paramJComponent.setMaximumSize(dimension);
-  paramJComponent.setPreferredSize(dimension);
-  this.layout.setConstraints(paramJComponent, this.constraints);
-  this.container.add(paramJComponent);
-   }
-
-   public void resetLayout() {
-  this.setDefaults();
-   }
-
-   public void setPosition(int column, int row) {
-  this.constraints.gridx = column;
-  this.constraints.gridy = row;
-   }
-
-   public void setSpan(int column, int row) {
-  this.constraints.gridwidth = column;
-  this.constraints.gridheight = row;
-   }
-
-   public void setWeight(double x, double y) {
-  this.constraints.weightx = x;
-  this.constraints.weighty = y;
-   }
-
-   public void setFill(int space) {
-  this.constraints.fill = space;
-   }
-
-   public void setAnchor(int position) {
-  this.constraints.anchor = position;
-   }
-
-   public void setInsets(int top, int left, int bottom, int right) {
-  this.constraints.insets = new Insets(top, left, bottom, right);
-   }
-
-   private void setDefaults() {
-  this.constraints.gridx = 0;
-  this.constraints.gridy = 0;
-  this.constraints.gridwidth = 1;
-  this.constraints.gridheight = 1;
-  this.constraints.fill = 0;
-  this.constraints.anchor = 10;
-  this.constraints.weightx = 0.0D;
-  this.constraints.weighty = 0.0D;
-  this.constraints.insets = new Insets(0, 0, 0, 0);
-   }
-}



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6269] plug-ins/CadPlan_VertexSymbols/trunk

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6269
  http://sourceforge.net/p/jump-pilot/code/6269
Author:   ma15569
Date: 2020-05-31 06:40:03 + (Sun, 31 May 2020)
Log Message:
---
Added new souce code tree. Removed obsolete files/folder. 

Added Paths:
---
plug-ins/CadPlan_VertexSymbols/trunk/src/FileChooser.java
plug-ins/CadPlan_VertexSymbols/trunk/src/GridBagDesigner.java
plug-ins/CadPlan_VertexSymbols/trunk/src/HTMLTextComponent.java
plug-ins/CadPlan_VertexSymbols/trunk/src/HTMLTextSegment.java
plug-ins/CadPlan_VertexSymbols/trunk/src/MyFileFilter.java
plug-ins/CadPlan_VertexSymbols/trunk/src/TextFile.java
plug-ins/CadPlan_VertexSymbols/trunk/src/VertexSymbolsExtension.java
plug-ins/CadPlan_VertexSymbols/trunk/src/designer/
plug-ins/CadPlan_VertexSymbols/trunk/src/fileio/
plug-ins/CadPlan_VertexSymbols/trunk/src/icon/
plug-ins/CadPlan_VertexSymbols/trunk/src/icon/IconLoader.java
plug-ins/CadPlan_VertexSymbols/trunk/src/icon/Line.png
plug-ins/CadPlan_VertexSymbols/trunk/src/icon/Palette.png
plug-ins/CadPlan_VertexSymbols/trunk/src/icon/Vertex.png
plug-ins/CadPlan_VertexSymbols/trunk/src/icon/application_view.png
plug-ins/CadPlan_VertexSymbols/trunk/src/icon/default_icon.png
plug-ins/CadPlan_VertexSymbols/trunk/src/icon/noteicon.gif
plug-ins/CadPlan_VertexSymbols/trunk/src/icon/vsicon.gif
plug-ins/CadPlan_VertexSymbols/trunk/src/jump/
plug-ins/CadPlan_VertexSymbols/trunk/src/language/
plug-ins/CadPlan_VertexSymbols/trunk/src/language/I18NPlug.java

plug-ins/CadPlan_VertexSymbols/trunk/src/language/VertexSymbolsPlugin.properties

plug-ins/CadPlan_VertexSymbols/trunk/src/language/VertexSymbolsPlugin_de.properties

plug-ins/CadPlan_VertexSymbols/trunk/src/language/VertexSymbolsPlugin_en.properties

plug-ins/CadPlan_VertexSymbols/trunk/src/language/VertexSymbolsPlugin_fi.properties

plug-ins/CadPlan_VertexSymbols/trunk/src/language/VertexSymbolsPlugin_fr.properties

plug-ins/CadPlan_VertexSymbols/trunk/src/language/VertexSymbolsPlugin_it.properties
plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/
plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/StylerMenuPlugIn.java
plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/VertexNoteDialog.java
plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/VertexNotePlugin.java

plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/VertexSymbolsClassificationDialog.java
plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/VertexSymbolsDialog.java
plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/VertexSymbolsPlugIn.java
plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/panel/
plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/panel/ColorPanel.java
plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/panel/TextLabelPanel.java
plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/panel/TransparPanel.java

plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/panel/VertexColorThemingPanel.java

plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/panel/VertexParametersPanel.java

plug-ins/CadPlan_VertexSymbols/trunk/src/plugins/panel/VertexSymbologyPanel.java
plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/
plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/AdvancedStyle.java2xml

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/AnyShapeVertexStyle.java

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/AnyShapeVertexStyle.java2xml

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/ExternalSymbolsImplType.java

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/ExternalSymbolsImplType.java2xml

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/ExternalSymbolsRenderer.java

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/ExternalSymbolsType.java

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/ImageVertexStyle.java

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/ImageVertexStyle.java2xml

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/PolygonVertexStyle.java

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/PolygonVertexStyle.java2xml
plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/StarVertexStyle.java

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/StarVertexStyle.java2xml
plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/WKTVertexStyle.java

plug-ins/CadPlan_VertexSymbols/trunk/src/renderer/style/WKTVertexStyle.java2xml
plug-ins/CadPlan_VertexSymbols/trunk/src/ui/
plug-ins/CadPlan_VertexSymbols/trunk/src/ui/ImagePanel.java
plug-ins/CadPlan_VertexSymbols/trunk/src/ui/ImageVertexPanel.java
plug-ins/CadPlan_VertexSymbols/trunk/src/ui/LabelCallout.java
plug-ins/CadPlan_VertexSymbols/trunk/src/ui/PreviewPanel.java
plug-ins/CadPlan_VertexSymbols/trunk/src/ui/SVGRasterizer.java

[JPP-Devel] SVN: [6268] plug-ins/CadPlan_VertexSymbols/dist/ VertexSymbol-020-souce-code.zip

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6268
  http://sourceforge.net/p/jump-pilot/code/6268
Author:   ma15569
Date: 2020-05-31 06:37:23 + (Sun, 31 May 2020)
Log Message:
---
Added source code of VerteSymbols plugin ver. 020

Added Paths:
---
plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-020-souce-code.zip

Added: plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-020-souce-code.zip
===
(Binary files differ)

Index: plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-020-souce-code.zip
===
--- plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-020-souce-code.zip 
2020-05-31 06:35:57 UTC (rev 6267)
+++ plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-020-souce-code.zip 
2020-05-31 06:37:23 UTC (rev 6268)

Property changes on: 
plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-020-souce-code.zip
___
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6267] plug-ins/CadPlan_VertexSymbols/dist/ VertexSymbol-019-souce-code.zip

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6267
  http://sourceforge.net/p/jump-pilot/code/6267
Author:   ma15569
Date: 2020-05-31 06:35:57 + (Sun, 31 May 2020)
Log Message:
---
Added source code of VertexSymbols ver. 19

Added Paths:
---
plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-019-souce-code.zip

Added: plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-019-souce-code.zip
===
(Binary files differ)

Index: plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-019-souce-code.zip
===
--- plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-019-souce-code.zip 
2020-05-31 06:19:42 UTC (rev 6266)
+++ plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-019-souce-code.zip 
2020-05-31 06:35:57 UTC (rev 6267)

Property changes on: 
plug-ins/CadPlan_VertexSymbols/dist/VertexSymbol-019-souce-code.zip
___
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property


___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6266] core/trunk/ChangeLog

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6266
  http://sourceforge.net/p/jump-pilot/code/6266
Author:   ma15569
Date: 2020-05-31 06:19:42 + (Sun, 31 May 2020)
Log Message:
---
Updated ChangeLog file

Modified Paths:
--
core/trunk/ChangeLog

Modified: core/trunk/ChangeLog
===
--- core/trunk/ChangeLog2020-05-31 06:17:02 UTC (rev 6265)
+++ core/trunk/ChangeLog2020-05-31 06:19:42 UTC (rev 6266)
@@ -4,6 +4,10 @@
 # 3. be concise but convey the change in a way that ordinary users understand
 #< 80 chars 
-->#
 
+2020-05-31 Giuseppe Aruta
+  * Correct text preview panel of TextEditor in order that text is wrapped 
+  into multiple lines
+
 2020-05-28 ede
   * PLUS upgrade ojmapcoloring, added polish translation
 



___
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel


[JPP-Devel] SVN: [6265] core/trunk/src/com/vividsolutions/jump/workbench/ui/ TextEditor.java

2020-05-31 Thread jump-pilot-svn--- via Jump-pilot-devel
Revision: 6265
  http://sourceforge.net/p/jump-pilot/code/6265
Author:   ma15569
Date: 2020-05-31 06:17:02 + (Sun, 31 May 2020)
Log Message:
---
Correct preview panel of TextEditor in order that text is wrapped into multiple 
lines

Modified Paths:
--
core/trunk/src/com/vividsolutions/jump/workbench/ui/TextEditor.java

Modified: core/trunk/src/com/vividsolutions/jump/workbench/ui/TextEditor.java
===
--- core/trunk/src/com/vividsolutions/jump/workbench/ui/TextEditor.java 
2020-05-28 12:54:38 UTC (rev 6264)
+++ core/trunk/src/com/vividsolutions/jump/workbench/ui/TextEditor.java 
2020-05-31 06:17:02 UTC (rev 6265)
@@ -24,6 +24,7 @@
 import javax.swing.JList;
 import javax.swing.JPanel;
 import javax.swing.JScrollPane;
+import javax.swing.JTextArea;
 import javax.swing.JTextField;
 import javax.swing.ListSelectionModel;
 import javax.swing.SwingUtilities;
@@ -86,763 +87,772 @@
  *
  */
 public class TextEditor extends JComponent {
-/**
- * 
- */
-private static final long serialVersionUID = 1L;
-// class variables
-/**
- * Return value from showDialog().
- * 
- * @see #showDialog
- **/
-public static final int OK_OPTION = 0;
-/**
- * Return value from showDialog().
- * 
- * @see #showDialog
- **/
-public static final int CANCEL_OPTION = 1;
-/**
- * Return value from showDialog().
- * 
- * @see #showDialog
- **/
+   /**
+* 
+*/
+   private static final long serialVersionUID = 1L;
+   // class variables
+   /**
+* Return value from showDialog().
+* 
+* @see #showDialog
+**/
+   public static final int OK_OPTION = 0;
+   /**
+* Return value from showDialog().
+* 
+* @see #showDialog
+**/
+   public static final int CANCEL_OPTION = 1;
+   /**
+* Return value from showDialog().
+* 
+* @see #showDialog
+**/
 
-public static final int ERROR_OPTION = -1;
-private static final Font DEFAULT_SELECTED_FONT = new Font("Serif",
-Font.PLAIN, 12);
-private final static JLabel label = new JLabel();
-// private static final Font DEFAULT_FONT = new Font("Dialog", Font.PLAIN,
-// 10);
-private static final Font DEFAULT_FONT = new Font(
-label.getFont().getName(), Font.PLAIN, label.getFont().getSize());
-private static final int[] FONT_STYLE_CODES = { Font.PLAIN, Font.BOLD,
-Font.ITALIC, Font.BOLD | Font.ITALIC };
-private static final String[] DEFAULT_FONT_SIZE_STRINGS = { "8", "9", "10",
-"11", "12", "14", "16", "18", "20", "22", "24", "26", "28", "36",
-"48", "72", };
+   public static final int ERROR_OPTION = -1;
+   private static final Font DEFAULT_SELECTED_FONT = new Font("Serif",
+   Font.PLAIN, 12);
+   private final static JLabel label = new JLabel();
+   // private static final Font DEFAULT_FONT = new Font("Dialog", 
Font.PLAIN,
+   // 10);
+   private static final Font DEFAULT_FONT = new Font(
+   label.getFont().getName(), Font.PLAIN, 
label.getFont().getSize());
+   private static final int[] FONT_STYLE_CODES = { Font.PLAIN, Font.BOLD,
+   Font.ITALIC, Font.BOLD | Font.ITALIC };
+   private static final String[] DEFAULT_FONT_SIZE_STRINGS = { "8", "9", 
"10",
+   "11", "12", "14", "16", "18", "20", "22", "24", "26", 
"28", "36",
+   "48", "72", };
 
-// instance variables
-protected int dialogResultValue = ERROR_OPTION;
+   // instance variables
+   protected int dialogResultValue = ERROR_OPTION;
 
-private String[] fontStyleNames = null;
-private String[] fontFamilyNames = null;
-private String[] fontSizeStrings = null;
-private JTextField fontFamilyTextField = null;
-private JTextField fontStyleTextField = null;
-private JTextField fontSizeTextField = null;
-private JList fontNameList = null;
-private JList fontStyleList = null;
-private JList fontSizeList = null;
-private JPanel fontNamePanel = null;
-private JPanel fontStylePanel = null;
-private JPanel fontSizePanel = null;
-private JPanel samplePanel = null;
-private JTextField sampleText = null;
+   private String[] fontStyleNames = null;
+   private String[] fontFamilyNames = null;
+   private String[] fontSizeStrings = null;
+   private JTextField fontFamilyTextField = null;
+   private JTextField fontStyleTextField = null;
+   private JTextField fontSizeTextField = null;
+   private JList fontNameList = null;
+   private JList fontStyleList = null;
+   private JList fontSizeList = null;
+   private JPanel fontNamePanel = null;
+   private JPanel fontStylePanel = null;
+   private JPanel