Add standard docs text to abstract base classes

This commit is contained in:
Peter Robins
2014-06-14 07:20:33 -04:00
parent f1fe1a5ade
commit 75be215497
17 changed files with 44 additions and 16 deletions

View File

@@ -10,7 +10,8 @@ goog.require('ol.Object');
/** /**
* @classdesc * @classdesc
* Abstract parent class for controls. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* A control is a visible widget with a DOM element in a fixed position on the * A control is a visible widget with a DOM element in a fixed position on the
* screen. They can involve user input (buttons), or be informational only; * screen. They can involve user input (buttons), or be informational only;
* the position is determined using CSS. By default these are part of the map * the position is determined using CSS. By default these are part of the map

View File

@@ -6,7 +6,9 @@ goog.require('goog.functions');
/** /**
* @classdesc * @classdesc
* Abstract base class for feature formats. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* Base class for feature formats.
* {ol.format.Feature} subclasses provide the ability to decode and encode * {ol.format.Feature} subclasses provide the ability to decode and encode
* {@link ol.Feature} objects from a variety of commonly used geospatial * {@link ol.Feature} objects from a variety of commonly used geospatial
* file formats. See the documentation for each format for more details. * file formats. See the documentation for each format for more details.

View File

@@ -10,7 +10,9 @@ goog.require('ol.format.FormatType');
/** /**
* @classdesc * @classdesc
* Abstract base class for JSON feature formats. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* Base class for JSON feature formats.
* *
* @constructor * @constructor
* @extends {ol.format.Feature} * @extends {ol.format.Feature}

View File

@@ -8,7 +8,9 @@ goog.require('ol.format.FormatType');
/** /**
* @classdesc * @classdesc
* Abstract base class for text feature formats. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* Base class for text feature formats.
* *
* @constructor * @constructor
* @extends {ol.format.Feature} * @extends {ol.format.Feature}

View File

@@ -11,7 +11,9 @@ goog.require('ol.xml');
/** /**
* @classdesc * @classdesc
* Abstract base class for XML feature formats. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* Base class for XML feature formats.
* *
* @constructor * @constructor
* @extends {ol.format.Feature} * @extends {ol.format.Feature}

View File

@@ -45,7 +45,9 @@ ol.geom.GeometryLayout = {
/** /**
* @classdesc * @classdesc
* Abstract base class for vector geometries. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* Base class for vector geometries.
* *
* @constructor * @constructor
* @extends {ol.Observable} * @extends {ol.Observable}

View File

@@ -11,7 +11,8 @@ goog.require('ol.geom.flat.transform');
/** /**
* @classdesc * @classdesc
* Abstract base class for geometry objects * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* *
* @constructor * @constructor
* @extends {ol.geom.Geometry} * @extends {ol.geom.Geometry}

View File

@@ -13,6 +13,8 @@ goog.require('ol.easing');
/** /**
* @classdesc * @classdesc
* Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* User actions that change the state of the map. Some are similar to controls, * User actions that change the state of the map. Some are similar to controls,
* but are not associated with a DOM element. * but are not associated with a DOM element.
* For example, {@link ol.interaction.KeyboardZoom} is functionally the same as * For example, {@link ol.interaction.KeyboardZoom} is functionally the same as

View File

@@ -13,7 +13,8 @@ goog.require('ol.interaction.Interaction');
/** /**
* @classdesc * @classdesc
* Abstract base class for pointer interactions. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* *
* @constructor * @constructor
* @extends {ol.interaction.Interaction} * @extends {ol.interaction.Interaction}

View File

@@ -11,7 +11,9 @@ goog.require('ol.source.Source');
/** /**
* @classdesc * @classdesc
* Abstract base class. A visual representation of raster or vector map data. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* A visual representation of raster or vector map data.
* Layers group together those properties that pertain to how the data is to be * Layers group together those properties that pertain to how the data is to be
* displayed, irrespective of the source of that data. * displayed, irrespective of the source of that data.
* *

View File

@@ -42,7 +42,8 @@ ol.layer.LayerState;
/** /**
* @classdesc * @classdesc
* Abstract base class for all layers. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* *
* @constructor * @constructor
* @extends {ol.Object} * @extends {ol.Object}

View File

@@ -105,7 +105,9 @@ ol.ObjectAccessor.prototype.transform = function(from, to) {
/** /**
* @classdesc * @classdesc
* Abstract base class from which all non-trivial classes inherit. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* All non-trivial classes inherit from this.
* *
* It provides standardised get/set methods, and implements a form of * It provides standardised get/set methods, and implements a form of
* Key Value Observing. Setting a value triggers a change event, and 2 objects * Key Value Observing. Setting a value triggers a change event, and 2 objects

View File

@@ -8,7 +8,8 @@ goog.require('goog.events.EventType');
/** /**
* @classdesc * @classdesc
* Abstract base class. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* An event target providing convenient methods for listener registration * An event target providing convenient methods for listener registration
* and unregistration. A generic `change` event is always available through * and unregistration. A generic `change` event is always available through
* {@link ol.Observable#dispatchChangeEvent}. * {@link ol.Observable#dispatchChangeEvent}.

View File

@@ -23,7 +23,9 @@ ol.source.ImageOptions;
/** /**
* @classdesc * @classdesc
* Abstract base class for sources providing a single image. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* Base class for sources providing a single image.
* *
* @constructor * @constructor
* @extends {ol.source.Source} * @extends {ol.source.Source}

View File

@@ -34,7 +34,9 @@ ol.source.SourceOptions;
/** /**
* @classdesc * @classdesc
* Abstract base class for {@link ol.layer.Layer} sources. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* Base class for {@link ol.layer.Layer} sources.
* *
* @constructor * @constructor
* @extends {ol.Observable} * @extends {ol.Observable}

View File

@@ -25,7 +25,9 @@ ol.source.TileOptions;
/** /**
* @classdesc * @classdesc
* Abstract base class for sources providing images divided into a tile grid. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* Base class for sources providing images divided into a tile grid.
* *
* @constructor * @constructor
* @extends {ol.source.Source} * @extends {ol.source.Source}

View File

@@ -19,7 +19,8 @@ ol.ViewHint = {
/** /**
* @classdesc * @classdesc
* Abstract base class for views. * Abstract base class; normally only used for creating subclasses and not
* instantiated in apps.
* Maps can be viewed from different perspectives: 2D or 3D, or at different * Maps can be viewed from different perspectives: 2D or 3D, or at different
* angles. To enable this, properties determining projection, position, angle or * angles. To enable this, properties determining projection, position, angle or
* rotation cannot be part of the map itself, but of the particular view of that * rotation cannot be part of the map itself, but of the particular view of that