类 GraphicCollection
- java.lang.Object
-
- org.meteoinfo.shape.Graphic
-
- org.meteoinfo.shape.GraphicCollection
-
- 所有已实现的接口:
java.util.Iterator
- 直接已知子类:
GraphicCollection3D
public class GraphicCollection extends Graphic implements java.util.Iterator
- 作者:
- Yaqiang Wang
-
-
构造器概要
构造器 构造器 说明 GraphicCollection()Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidadd(int index, Graphic aGraphic)Inset a graphicbooleanadd(Graphic aGraphic)Add a graphicvoidaddAll(java.util.List<Graphic> gs)Add allvoidaddLabel(Graphic aLP)Add label pointvoidaddLabels()Add labelsvoidaddLabelsContourDynamic(Extent sExtent)Add labels of contour layer dynamiclyvoidclear()Clear graphicsGraphicCollectionclip(java.util.List<PolygonShape> clipPolys)Clipbooleancontains(Graphic g)Contains or notGraphicget(int idx)Get a graphic by indexfloatgetArrowZoom()Get arrow zoomExtentgetExtent()Get extentGraphicgetGraphicN(int idx)Get Graphic by indexjava.util.List<Graphic>getGraphics()Get graphic listjava.util.List<Graphic>getLabelPoints()Get label pointsLabelSetgetLabelSet()Get label setColorBreakgetLegend()Get legendColorBreakgetLegendBreak()Get legend breakLegendSchemegetLegendScheme()Get legend schemeintgetNumGraphics()Get graphics numberjava.util.List<Shape>getShapes()Get shapesShapeTypesgetShapeType()Get shape typebooleanhasNext()intindexOf(Graphic g)Index ofbooleanis3D()Get is 3D or notbooleanisCollection()Get if is GraphicCollectionbooleanisEmpty()Get is empty or notbooleanisSingleLegend()Get is single legend or notvoidjoin(Graphic graphic)Join this graphics with other graphicsjava.lang.Objectnext()Graphicremove(int index)Remove a graphic by indexbooleanremove(Graphic aGraphic)Remove a graphicvoidremoveAll(java.util.List<Graphic> gs)Remove allGraphicCollectionselectGraphics(Extent aExtent)Select graphics by an extentvoidsetExtent(Extent value)Set extentvoidsetGraphics(java.util.List<Graphic> value)Set graphic listvoidsetLabelPoints(java.util.List<Graphic> lps)Set label pointsvoidsetLabelSet(LabelSet ls)Set label setvoidsetLegendBreak(ColorBreak value)Set legend breakvoidsetLegendScheme(LegendScheme value)Set legend schemevoidsetSingleLegend(boolean value)Set is single legend or notintsize()Get graphic list sizevoidupdateExtent()Update extent-
从类继承的方法 org.meteoinfo.shape.Graphic
addLegend, addShape, exportToXML, getResizeAbility, getShape, importFromXML, loadLegend, loadShape, setLegend, setShape, verticeAddUpdate, verticeMoveUpdate, verticeRemoveUpdate
-
-
-
-
方法详细资料
-
getGraphics
public java.util.List<Graphic> getGraphics()
Get graphic list- 覆盖:
getGraphics在类中Graphic- 返回:
- Graphic list
-
setGraphics
public void setGraphics(java.util.List<Graphic> value)
Set graphic list- 参数:
value- Graphic list
-
setExtent
public void setExtent(Extent value)
Set extent
-
isSingleLegend
public boolean isSingleLegend()
Get is single legend or not- 覆盖:
isSingleLegend在类中Graphic- 返回:
- Boolean
-
setSingleLegend
public void setSingleLegend(boolean value)
Set is single legend or not- 参数:
value- Boolean
-
getLabelSet
public LabelSet getLabelSet()
Get label set- 返回:
- Label set
-
setLabelSet
public void setLabelSet(LabelSet ls)
Set label set- 参数:
ls- Label set
-
getLabelPoints
public java.util.List<Graphic> getLabelPoints()
Get label points- 返回:
- The lable points
-
setLabelPoints
public void setLabelPoints(java.util.List<Graphic> lps)
Set label points- 参数:
lps- The lable points
-
getLegendScheme
public LegendScheme getLegendScheme()
Get legend scheme- 返回:
- Legend scheme
-
setLegendScheme
public void setLegendScheme(LegendScheme value)
Set legend scheme- 参数:
value- Legend scheme
-
getLegendBreak
public ColorBreak getLegendBreak()
Get legend break- 返回:
- Legend break
-
setLegendBreak
public void setLegendBreak(ColorBreak value)
Set legend break- 参数:
value- Legend break
-
is3D
public boolean is3D()
Get is 3D or not- 返回:
- Boolean
-
isCollection
public boolean isCollection()
Get if is GraphicCollection- 覆盖:
isCollection在类中Graphic- 返回:
- Boolean
-
updateExtent
public void updateExtent()
Update extent
-
add
public boolean add(Graphic aGraphic)
Add a graphic- 参数:
aGraphic- The graphic- 返回:
- Boolean
-
add
public void add(int index, Graphic aGraphic)Inset a graphic- 参数:
index- IndexaGraphic- The graphic
-
get
public Graphic get(int idx)
Get a graphic by index- 参数:
idx- Index- 返回:
- Graphic
-
indexOf
public int indexOf(Graphic g)
Index of- 参数:
g- Graphic- 返回:
- Index
-
contains
public boolean contains(Graphic g)
Contains or not- 参数:
g- Graphic- 返回:
- Boolean
-
size
public int size()
Get graphic list size- 返回:
- Gaphic list size
-
isEmpty
public boolean isEmpty()
Get is empty or not- 返回:
- Boolean
-
getNumGraphics
public int getNumGraphics()
Get graphics number- 覆盖:
getNumGraphics在类中Graphic- 返回:
- 1
-
getGraphicN
public Graphic getGraphicN(int idx)
Get Graphic by index- 覆盖:
getGraphicN在类中Graphic- 参数:
idx- Index- 返回:
- Graphic
-
remove
public boolean remove(Graphic aGraphic)
Remove a graphic- 参数:
aGraphic- The graphic- 返回:
- Boolean
-
remove
public Graphic remove(int index)
Remove a graphic by index- 参数:
index- The index- 返回:
- The removed graphic
-
clear
public void clear()
Clear graphics
-
addAll
public void addAll(java.util.List<Graphic> gs)
Add all- 参数:
gs- Graphic list
-
join
public void join(Graphic graphic)
Join this graphics with other graphics- 参数:
graphic- Other graphics
-
removeAll
public void removeAll(java.util.List<Graphic> gs)
Remove all- 参数:
gs- Graphic list
-
getLegend
public ColorBreak getLegend()
Get legend
-
selectGraphics
public GraphicCollection selectGraphics(Extent aExtent)
Select graphics by an extent- 参数:
aExtent- The extent- 返回:
- Selected graphics
-
hasNext
public boolean hasNext()
- 指定者:
hasNext在接口中java.util.Iterator
-
next
public java.lang.Object next()
- 指定者:
next在接口中java.util.Iterator
-
addLabels
public void addLabels()
Add labels
-
getShapes
public java.util.List<Shape> getShapes()
Get shapes- 返回:
- Shapes
-
getShapeType
public ShapeTypes getShapeType()
Get shape type- 返回:
- Shape type
-
addLabel
public void addLabel(Graphic aLP)
Add label point- 参数:
aLP- Label point
-
addLabelsContourDynamic
public void addLabelsContourDynamic(Extent sExtent)
Add labels of contour layer dynamicly- 参数:
sExtent- View extent of MapView
-
getArrowZoom
public float getArrowZoom()
Get arrow zoom- 返回:
- Arrow zoom
-
clip
public GraphicCollection clip(java.util.List<PolygonShape> clipPolys)
Clip- 参数:
clipPolys- Clipping polygons- 返回:
- Clipped graphics
-
-