|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.gmaps.AbstractMapModel
org.zkoss.gmaps.MapModelSet
public class MapModelSet
This is the MapModel as a Set to be used with Maps component such as Gmaps.
Add or remove the contents of this model as a Set would cause the associated Maps to change accordingly.
MapModel,
MapModelList,
MapModelMap,
Serialized Form| Field Summary | |
|---|---|
protected java.util.Set |
_set
|
| Constructor Summary | |
|---|---|
MapModelSet()
Constructor. |
|
MapModelSet(java.util.Collection c)
Constructor. |
|
MapModelSet(int initialCapacity)
Constructor. |
|
MapModelSet(int initialCapacity,
float loadFactor)
Constructor. |
|
MapModelSet(java.lang.Object[] array)
Constructor. |
|
MapModelSet(java.util.Set set,
boolean live)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
void |
clear()
Clear all items of this model. |
boolean |
contains(java.lang.Object elem)
|
boolean |
containsAll(java.util.Collection c)
|
boolean |
equals(java.lang.Object o)
|
java.util.Set |
getInnerSet()
Get the inner real set. |
java.util.Collection |
getItemsIn(double swlat,
double swlng,
double nelat,
double nelng,
double cenlat,
double cenlng,
int zoom)
Returns the items in the specified bounds (south-west to north-east), center latitude, center longitude, and zoom level. |
int |
hashCode()
|
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
int |
size()
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
java.lang.String |
toString()
|
| Methods inherited from class org.zkoss.gmaps.AbstractMapModel |
|---|
addMapDataListener, fireEvent, removeMapDataListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Set _set
| Constructor Detail |
|---|
public MapModelSet(java.util.Set set,
boolean live)
set - the set for initial entry in Setlive - whether to have a 'live' MapModel on top of
the specified set.
If false, the content of the specified set is copied.
If true, this object is a 'facade' of the specified set,
i.e., when you add or remove items from this MapModelSet,
the inner "live" set would be changed accordingly.
However, it is not a good idea to modify set
if it is passed to this method with live is true,
since Maps component is not smart enough to handle it.
Instead, modify it thru this object.public MapModelSet()
public MapModelSet(java.util.Collection c)
public MapModelSet(java.lang.Object[] array)
public MapModelSet(int initialCapacity)
initialCapacity - the initial capacity for this MapModelSet.
public MapModelSet(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity for this MapModelSet.loadFactor - the loadFactor to increase capacity of this MapModelSet.| Method Detail |
|---|
public java.util.Set getInnerSet()
public java.util.Collection getItemsIn(double swlat,
double swlng,
double nelat,
double nelng,
double cenlat,
double cenlng,
int zoom)
MapModel
getItemsIn in interface MapModelswlat - south-west latitudeswlng - south-west longitudenelat - north-east latitudenelng - north-east longitudecenlat - center latitudecenlng - center longitudezoom - current zoom level
public boolean add(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Setpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.CollectionaddAll in interface java.util.Setpublic void clear()
MapModel
clear in interface java.util.Collectionclear in interface java.util.Setclear in interface MapModelpublic boolean contains(java.lang.Object elem)
contains in interface java.util.Collectioncontains in interface java.util.Setpublic boolean containsAll(java.util.Collection c)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.Setpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collectionequals in interface java.util.Setequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.SethashCode in class java.lang.Objectpublic boolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in interface java.util.Setpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Setpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collectionremove in interface java.util.Setpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.CollectionremoveAll in interface java.util.Setpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.CollectionretainAll in interface java.util.Setpublic int size()
size in interface java.util.Collectionsize in interface java.util.Setpublic java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.Setpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.CollectiontoArray in interface java.util.Set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||