Skip to content

Commit

Permalink
fix javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
zak905 committed Nov 7, 2021
1 parent 5ef6c6e commit 9286925
Show file tree
Hide file tree
Showing 81 changed files with 2,072 additions and 464 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/gwidgets/api/leaflet/Attribution.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@

/**
* The attribution control allows you to display attribution data in a small text box on a map. It is put on the map by default unless you set its attributionControl option to false, and it fetches attribution texts from layers with getAttribution method automatically.
*
*
* @author <a href="mailto:[email protected]">Zakaria Amine</a>
* @version $Id: $Id
*/
@JsType(isNative = true)
public class Attribution extends Control{
Expand Down Expand Up @@ -60,4 +61,4 @@ private Attribution() {
@JsMethod
public native L removeAttribution(String text);

}
}
7 changes: 4 additions & 3 deletions src/main/java/com/gwidgets/api/leaflet/Bounds.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@

/**
* Represents a rectangular area in pixel coordinates.
*
*
* @author <a href="mailto:[email protected]">Zakaria Amine</a>
* @version $Id: $Id
*/
@JsType(isNative = true)
public class Bounds {
Expand Down Expand Up @@ -60,8 +61,8 @@ private Bounds() {
/**
* Returns true if the rectangle contains the given point.
*
* @param the point
* @return true/false
* @param point a {@link com.gwidgets.api.leaflet.Point} object
*/
@JsMethod
public native Boolean contains(Point point);
Expand Down Expand Up @@ -91,4 +92,4 @@ private Bounds() {
@JsMethod
public native Point getSize();

}
}
10 changes: 6 additions & 4 deletions src/main/java/com/gwidgets/api/leaflet/CRS.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@

/**
* Defines coordinate reference systems for projecting geographical points into pixel (screen) coordinates and back (and to coordinates in other units for WMS services).
*
* @author <a href="mailto:[email protected]">Zakaria Amine</a>
* @version $Id: $Id
*/
@JsType(isNative = true)
public abstract class CRS {
Expand Down Expand Up @@ -111,8 +113,8 @@ public abstract class CRS {
/**
* Returns the distance between two geographical coordinates.
*
* @param latlng1
* @param latlng2
* @param latlng1 a {@link com.gwidgets.api.leaflet.LatLng} object
* @param latlng2 a {@link com.gwidgets.api.leaflet.LatLng} object
* @return the distance
*/
@JsMethod
Expand All @@ -121,10 +123,10 @@ public abstract class CRS {
/**
* Returns a LatLng where lat and lng has been wrapped according to the CRS's wrapLat and wrapLng properties, if they are outside the CRS's bounds.
*
* @param latlng
* @param latlng a {@link com.gwidgets.api.leaflet.LatLng} object
* @return the LatLng
*/
@JsMethod
public native double wrapLatLng(LatLng latlng);

}
}
6 changes: 3 additions & 3 deletions src/main/java/com/gwidgets/api/leaflet/Canvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

/**
* Used to create Canvas-based tile layers where tiles get drawn on the browser side.
*
* @author <a href="mailto:[email protected]">Zakaria Amine</a>
*
* @version $Id: $Id
*/
@JsType(isNative = true)
public class Canvas extends Renderer {
Expand All @@ -17,4 +17,4 @@ private Canvas() {
}


}
}
8 changes: 7 additions & 1 deletion src/main/java/com/gwidgets/api/leaflet/Circle.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@

/**
* A class for drawing circle overlays on a map. Extends Path. Use addLayer method of the Map class to add it to the map.
*
* @author zakaria
* @version $Id: $Id
*/
@JsType(isNative = true)
public class Circle extends CircleMarker {




/**
* <p>Constructor for Circle.</p>
*/
protected Circle() {
super();

Expand All @@ -20,4 +26,4 @@ protected Circle() {



}
}
Loading

0 comments on commit 9286925

Please sign in to comment.