Skip to content

Commit

Permalink
Version 7988
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudroques committed Dec 10, 2013
1 parent 82d650b commit cace203
Show file tree
Hide file tree
Showing 1,515 changed files with 74,056 additions and 26,689 deletions.
4 changes: 0 additions & 4 deletions src/com/ctreber/acearth/plugins/markers/Marker.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
import java.util.ArrayList;
import java.util.List;

import com.ctreber.acearth.gui.PixelCanvas;
Expand Down
2 changes: 0 additions & 2 deletions src/com/ctreber/acearth/plugins/markers/PluginMarkers.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package com.ctreber.acearth.plugins.markers;

import java.io.IOException;
import java.util.Iterator;
import java.util.List;

import com.ctreber.acearth.ACearth;
import com.ctreber.acearth.plugins.Plugin;

/**
Expand Down
5 changes: 4 additions & 1 deletion src/com/ctreber/acearth/projection/Projection.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.ctreber.acearth.projection;

import com.ctreber.acearth.util.*;
import com.ctreber.acearth.util.Coordinate;
import com.ctreber.acearth.util.Point2D;
import com.ctreber.acearth.util.Point3D;
import com.ctreber.acearth.util.Toolkit;

/**
* <p>A projection for a globe on a flat surface (must be subclassed).
Expand Down
5 changes: 3 additions & 2 deletions src/com/ctreber/acearth/renderer/Renderer.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package com.ctreber.acearth.renderer;

import java.awt.*;
import java.util.*;
import java.awt.Color;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import com.ctreber.acearth.shader.Shader;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.ctreber.acearth.renderer;

import com.ctreber.acearth.scanbit.ScanBit;
import com.ctreber.acearth.scanbit.BitGeneratorMap;
import com.ctreber.acearth.scanbit.ScanBit;

/**
* <p>Renders a row of ScanBits to pixel types.</p>
Expand Down
9 changes: 7 additions & 2 deletions src/com/ctreber/acearth/scanbit/BitGeneratorMap.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
package com.ctreber.acearth.scanbit;

import java.util.*;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;

import com.ctreber.acearth.projection.Projection;
import com.ctreber.acearth.util.*;
import com.ctreber.acearth.util.EdgeCrossing;
import com.ctreber.acearth.util.Point2D;
import com.ctreber.acearth.util.Point3D;
import com.ctreber.acearth.util.Polygon;
import com.ctreber.aclib.sort.CTSort;
import com.ctreber.aclib.sort.QuickSort;

Expand Down
4 changes: 3 additions & 1 deletion src/com/ctreber/acearth/scanbit/BitGeneratorMapDefault.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import java.util.Comparator;

import com.ctreber.acearth.projection.Projection;
import com.ctreber.acearth.util.*;
import com.ctreber.acearth.util.EdgeCrossing;
import com.ctreber.acearth.util.Point2D;
import com.ctreber.acearth.util.Point3D;

/**
* <p>Map scanner for mercator and cylindrical projections.
Expand Down
4 changes: 3 additions & 1 deletion src/com/ctreber/acearth/scanbit/BitGeneratorMapOrtho.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import java.util.Comparator;

import com.ctreber.acearth.projection.Projection;
import com.ctreber.acearth.util.*;
import com.ctreber.acearth.util.EdgeCrossing;
import com.ctreber.acearth.util.Point2D;
import com.ctreber.acearth.util.Point3D;

/**
* <p>Map scanner for orthographic projection.
Expand Down
4 changes: 3 additions & 1 deletion src/com/ctreber/acearth/scandot/DotGeneratorLines.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.ctreber.acearth.scandot;

import com.ctreber.acearth.projection.Projection;
import com.ctreber.acearth.util.*;
import com.ctreber.acearth.util.Coordinate;
import com.ctreber.acearth.util.Point2D;
import com.ctreber.acearth.util.Point3D;

/**
* <p>Generate latitude and longitude grid as dots.
Expand Down
2 changes: 1 addition & 1 deletion src/com/ctreber/acearth/shader/Shader.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ctreber.acearth.shader;

import java.awt.*;
import java.awt.Color;

import com.ctreber.acearth.projection.Projection;
import com.ctreber.acearth.scanbit.BitGeneratorMap;
Expand Down
2 changes: 1 addition & 1 deletion src/com/ctreber/acearth/shader/ShaderDefault.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ctreber.acearth.shader;

import java.awt.*;
import java.awt.Color;

/**
* <p>Shader for projections which display the whole surface.</p>
Expand Down
2 changes: 1 addition & 1 deletion src/com/ctreber/acearth/shader/ShaderFlat.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ctreber.acearth.shader;

import java.awt.*;
import java.awt.Color;

/**
* <p>Flat shader (does not care for Projection).</p>
Expand Down
2 changes: 1 addition & 1 deletion src/com/ctreber/acearth/shader/ShaderOrtho.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.ctreber.acearth.shader;

import java.awt.*;
import java.awt.Color;

/**
* <p>Shader for the orthographic projection.</p>
Expand Down
4 changes: 3 additions & 1 deletion src/com/ctreber/acearth/util/SunPositionCalculator.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.ctreber.acearth.util;

import java.util.*;
import java.util.Calendar;
import java.util.Date;
import java.util.TimeZone;

/**
* <p>Calculates the position of the point on Earth which is directly
Expand Down
40 changes: 40 additions & 0 deletions src/doc-files/umls.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!--
========================================================================
PlantUML : a free UML diagram generator
========================================================================
(C) Copyright 2009-2013, Arnaud Roques
Project Info: http://plantuml.sourceforge.net
This file is part of PlantUML.
PlantUML is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
PlantUML distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.
You should have received a copy of the GNU General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
USA.
[Java is a trademark or registered trademark of Sun Microsystems, Inc.
in the United States and other countries.]
Original Author: Arnaud Roques
-->

@startuml img1.png
title foo2
component PlantUML
@enduml


</body>
4 changes: 2 additions & 2 deletions src/jcckit/data/DataContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
package jcckit.data;

import java.text.*;
import java.util.*;
import java.text.MessageFormat;
import java.util.Vector;

/**
* Abstract superclass of all data containers. A data container holds an
Expand Down
4 changes: 2 additions & 2 deletions src/jcckit/data/DataPlot.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
*/
package jcckit.data;

import jcckit.util.ConfigParameters;

import java.util.StringTokenizer;

import jcckit.util.ConfigParameters;

/**
* A plot is a {@link DataContainer} of {@link DataCurve DataCurves}.
*
Expand Down
4 changes: 2 additions & 2 deletions src/jcckit/graphic/BasicGraphicAttributes.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
*/
package jcckit.graphic;

import jcckit.util.ConfigParameters;

import java.awt.Color;

import jcckit.util.ConfigParameters;

/**
* The basic attributes of any {@link BasicGraphicalElement}. This is an
* extension of {@link ShapeAttributes} implementing {@link TextAttributes}.
Expand Down
4 changes: 2 additions & 2 deletions src/jcckit/graphic/FontStyle.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
*/
package jcckit.graphic;

import java.util.Hashtable;

import jcckit.util.ConfigParameters;
import jcckit.util.FactoryException;

import java.util.Hashtable;

/**
* Font style constants.
* This class is based on the typesafe enumeration pattern.
Expand Down
4 changes: 2 additions & 2 deletions src/jcckit/graphic/ShapeAttributes.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
*/
package jcckit.graphic;

import jcckit.util.ConfigParameters;

import java.awt.Color;

import jcckit.util.ConfigParameters;

/**
* Basic attributes for shapes.
*
Expand Down
1 change: 1 addition & 0 deletions src/jcckit/plot/BarFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package jcckit.plot;

import jcckit.graphic.ClippingShape;
import jcckit.graphic.GraphPoint;
import jcckit.graphic.GraphicAttributes;
import jcckit.graphic.GraphicalElement;
Expand Down
4 changes: 2 additions & 2 deletions src/jcckit/plot/CartesianCoordinateSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
import jcckit.data.DataPoint;
import jcckit.graphic.ClippingRectangle;
import jcckit.graphic.ClippingShape;
import jcckit.graphic.GraphPoint;
import jcckit.graphic.GraphicAttributes;
import jcckit.graphic.GraphicalComposite;
import jcckit.graphic.GraphicalElement;
import jcckit.graphic.GraphicAttributes;
import jcckit.graphic.GraphPoint;
import jcckit.graphic.LineAttributes;
import jcckit.graphic.Polygon;
import jcckit.graphic.Text;
Expand Down
2 changes: 1 addition & 1 deletion src/jcckit/plot/CircleSymbolFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
*/
package jcckit.plot;

import jcckit.graphic.GraphPoint;
import jcckit.graphic.GraphicAttributes;
import jcckit.graphic.GraphicalElement;
import jcckit.graphic.GraphPoint;
import jcckit.graphic.Oval;
import jcckit.util.ConfigParameters;

Expand Down
2 changes: 1 addition & 1 deletion src/jcckit/plot/CoordinateSystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
package jcckit.plot;

import jcckit.graphic.GraphicalElement;
import jcckit.graphic.ClippingShape;
import jcckit.graphic.GraphicalElement;
import jcckit.transformation.Transformation;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/jcckit/plot/Curve.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
package jcckit.plot;

import jcckit.graphic.GraphicalElement;
import jcckit.graphic.GraphPoint;
import jcckit.graphic.GraphicalElement;

/**
* A curve is defined by a sequence of points in device-independent
Expand Down
10 changes: 5 additions & 5 deletions src/jcckit/plot/Legend.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
*/
package jcckit.plot;

import java.util.Properties;

import jcckit.graphic.BasicGraphicAttributes;
import jcckit.graphic.GraphicalElement;
import jcckit.graphic.GraphicalComposite;
import jcckit.graphic.GraphicAttributes;
import jcckit.graphic.GraphPoint;
import jcckit.graphic.GraphicAttributes;
import jcckit.graphic.GraphicalComposite;
import jcckit.graphic.GraphicalElement;
import jcckit.graphic.Polygon;
import jcckit.graphic.Rectangle;
import jcckit.graphic.ShapeAttributes;
Expand All @@ -34,8 +36,6 @@
import jcckit.util.Factory;
import jcckit.util.PropertiesBasedConfigData;

import java.util.Properties;


/**
* Helper class for creating the legend of a {@link Plot}.
Expand Down
2 changes: 1 addition & 1 deletion src/jcckit/plot/SquareSymbolFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
*/
package jcckit.plot;

import jcckit.graphic.GraphPoint;
import jcckit.graphic.GraphicAttributes;
import jcckit.graphic.GraphicalElement;
import jcckit.graphic.GraphPoint;
import jcckit.graphic.Rectangle;
import jcckit.util.ConfigParameters;

Expand Down
2 changes: 1 addition & 1 deletion src/jcckit/plot/SymbolFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
*/
package jcckit.plot;

import jcckit.graphic.GraphicalElement;
import jcckit.graphic.GraphPoint;
import jcckit.graphic.GraphicalElement;

/**
* Interface of a symbol factory. A symbol is a {@link GraphicalElement}
Expand Down
2 changes: 1 addition & 1 deletion src/jcckit/renderer/Transformation.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import java.awt.Graphics2D;

import jcckit.graphic.Anchor;
import jcckit.graphic.GraphPoint;
import jcckit.graphic.ClippingRectangle;
import jcckit.graphic.GraphPoint;

/**
* Transformation between device-independent coordinates
Expand Down
5 changes: 3 additions & 2 deletions src/jcckit/util/ConfigParameters.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.StringTokenizer;

import net.sourceforge.plantuml.graphic.HtmlColor;
import net.sourceforge.plantuml.graphic.HtmlColorUtils;
import net.sourceforge.plantuml.ugraphic.ColorMapperIdentity;

/**
Expand Down Expand Up @@ -300,8 +301,8 @@ private Color parseColor(String value, String key) {
}

private Color decodeInternal(String value) {
if (HtmlColor.isValid(value)) {
return new ColorMapperIdentity().getMappedColor(HtmlColor.getColorIfValid(value));
if (HtmlColorUtils.getColorIfValid(value)!=null) {
return new ColorMapperIdentity().getMappedColor(HtmlColorUtils.getColorIfValid(value));
}
return Color.decode(value);
}
Expand Down
2 changes: 1 addition & 1 deletion src/jcckit/util/Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
package jcckit.util;

import java.lang.reflect.*;
import java.lang.reflect.Constructor;

/**
* General purpose factory method based on {@link ConfigParameters}
Expand Down
2 changes: 1 addition & 1 deletion src/jcckit/util/FactoryException.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
package jcckit.util;

import java.lang.reflect.*;
import java.lang.reflect.InvocationTargetException;

/**
* Exception thrown in the case of an error during creation of a new
Expand Down
Loading

0 comments on commit cace203

Please sign in to comment.