formatting

This commit is contained in:
Hannes Janetzek
2013-02-04 20:14:58 +01:00
parent 303e0cb4ce
commit f2b7a9fdf8
72 changed files with 403 additions and 240 deletions

View File

@@ -21,9 +21,9 @@ import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
/**
* An ExternalRenderTheme allows for customizing the rendering style of the map via an XML file.
* An ExternalRenderTheme allows for customizing the rendering style of the map
* via an XML file.
*/
public class ExternalRenderTheme implements Theme {
private static final long serialVersionUID = 1L;
@@ -101,7 +101,8 @@ public class ExternalRenderTheme implements Theme {
mHashCodeValue = calculateHashCode();
}
private void readObject(ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException {
private void readObject(ObjectInputStream objectInputStream) throws IOException,
ClassNotFoundException {
objectInputStream.defaultReadObject();
calculateTransientValues();
}

View File

@@ -27,7 +27,7 @@ import android.graphics.Paint;
public interface IRenderCallback {
/**
* Renders an area with the given parameters.
*
*
* @param area
* ...
* @param level
@@ -37,7 +37,7 @@ public interface IRenderCallback {
/**
* Renders an area symbol with the given bitmap.
*
*
* @param symbol
* the symbol to be rendered.
*/
@@ -45,7 +45,7 @@ public interface IRenderCallback {
/**
* Renders a point of interest circle with the given parameters.
*
*
* @param radius
* the radius of the circle.
* @param fill
@@ -57,7 +57,7 @@ public interface IRenderCallback {
/**
* Renders a point of interest symbol with the given bitmap.
*
*
* @param symbol
* the symbol to be rendered.
*/
@@ -65,7 +65,7 @@ public interface IRenderCallback {
/**
* Renders a way with the given parameters.
*
*
* @param line
* ...
* @param level
@@ -75,7 +75,7 @@ public interface IRenderCallback {
/**
* Renders a way with the given symbol along the way path.
*
*
* @param symbol
* the symbol to be rendered.
* @param alignCenter
@@ -87,7 +87,7 @@ public interface IRenderCallback {
/**
* Renders a way with the given text along the way path.
*
*
* @param text
* ...
*/
@@ -95,7 +95,7 @@ public interface IRenderCallback {
/**
* Renders an area caption with the given text.
*
*
* @param text
* the text to be rendered.
*/
@@ -103,7 +103,7 @@ public interface IRenderCallback {
/**
* Renders a point of interest caption with the given text.
*
*
* @param text
* the text to be rendered.
*/

View File

@@ -202,7 +202,7 @@ public class RenderTheme {
}
if (ri == null) {
// cache miss
// cache miss
List<RenderInstruction> matches = mNodeInstructionList;
matches.clear();
for (int i = 0, n = mRulesList.size(); i < n; ++i)
@@ -276,6 +276,7 @@ public class RenderTheme {
/**
* Matches a way with the given parameters against this RenderTheme.
*
* @param renderCallback
* the callback implementation which will be executed on each
* match.
@@ -442,6 +443,7 @@ public class RenderTheme {
/**
* Scales the stroke width of this RenderTheme by the given factor.
*
* @param scaleFactor
* the factor by which the stroke width should be scaled.
*/
@@ -453,6 +455,7 @@ public class RenderTheme {
/**
* Scales the text size of this RenderTheme by the given factor.
*
* @param scaleFactor
* the factor by which the text size should be scaled.
*/

View File

@@ -89,7 +89,7 @@ public class RenderThemeHandler extends DefaultHandler {
/**
* Logs the given information about an unknown XML attribute.
*
*
* @param element
* the XML element name.
* @param name

View File

@@ -21,7 +21,8 @@ enum FontFamily {
/**
* @return the typeface object of this FontFamily.
* @see <a href="http://developer.android.com/reference/android/graphics/Typeface.html">Typeface</a>
* @see <a
* href="http://developer.android.com/reference/android/graphics/Typeface.html">Typeface</a>
*/
Typeface toTypeface() {
switch (this) {

View File

@@ -19,7 +19,8 @@ enum FontStyle {
/**
* @return the constant int value of this FontStyle.
* @see <a href="http://developer.android.com/reference/android/graphics/Typeface.html">Typeface</a>
* @see <a
* href="http://developer.android.com/reference/android/graphics/Typeface.html">Typeface</a>
*/
int toInt() {
switch (this) {

View File

@@ -47,7 +47,7 @@ public abstract class RenderInstruction {
/**
* Scales the stroke width of this RenderInstruction by the given factor.
*
*
* @param scaleFactor
* the factor by which the stroke width should be scaled.
*/
@@ -56,7 +56,7 @@ public abstract class RenderInstruction {
/**
* Scales the text size of this RenderInstruction by the given factor.
*
*
* @param scaleFactor
* the factor by which the text size should be scaled.
*/