类 Graphic
- java.lang.Object
-
- org.meteoinfo.shape.Graphic
-
- 直接已知子类:
ChartGraphic,GraphicCollection
public class Graphic extends java.lang.ObjectGraphic class- 作者:
- Yaqiang Wang
-
-
构造器概要
构造器 构造器 说明 Graphic()ConstructorGraphic(Shape shape, ColorBreak legend)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidaddLegend(org.w3c.dom.Document doc, org.w3c.dom.Element parent, ColorBreak aLegend, ShapeTypes shapeType)Add legend to XML documentprotected voidaddShape(org.w3c.dom.Document doc, org.w3c.dom.Element parent, Shape aShape)Add shape to XML documentvoidexportToXML(org.w3c.dom.Document doc, org.w3c.dom.Element parent)Export to XML documentExtentgetExtent()Get extentGraphicgetGraphicN(int idx)Get Graphic by indexjava.util.List<Graphic>getGraphics()Get graphic listColorBreakgetLegend()Get legendintgetNumGraphics()Get graphics numberResizeAbilitygetResizeAbility()Get resize abilityShapegetShape()Get shapevoidimportFromXML(org.w3c.dom.Element graphicNode)Import from xml nodebooleanisCollection()Get if is GraphicCollectionbooleanisSingleLegend()Get is single legend or notprotected ColorBreakloadLegend(org.w3c.dom.Node legendNode, ShapeTypes shapeType)protected ShapeloadShape(org.w3c.dom.Node shapeNode)voidsetExtent(Extent value)Set extentvoidsetLegend(ColorBreak legend)voidsetShape(Shape aShape)Set shapevoidverticeAddUpdate(int vIdx, PointD point)Vertice edited updatevoidverticeMoveUpdate(int vIdx, double newX, double newY)Vertice edited updatevoidverticeRemoveUpdate(int vIdx)Vertice edited update
-
-
-
构造器详细资料
-
Graphic
public Graphic()
Constructor
-
Graphic
public Graphic(Shape shape, ColorBreak legend)
Constructor- 参数:
shape- a shapelegend- a legend
-
-
方法详细资料
-
getShape
public Shape getShape()
Get shape- 返回:
- Shape
-
setShape
public void setShape(Shape aShape)
Set shape- 参数:
aShape- a shape
-
getLegend
public ColorBreak getLegend()
Get legend- 返回:
- Legend
-
setLegend
public void setLegend(ColorBreak legend)
-
getResizeAbility
public ResizeAbility getResizeAbility()
Get resize ability- 返回:
- Resize ability
-
getExtent
public Extent getExtent()
Get extent- 返回:
- The extent
-
setExtent
public void setExtent(Extent value)
Set extent- 参数:
value- The extent
-
isSingleLegend
public boolean isSingleLegend()
Get is single legend or not- 返回:
- Boolean
-
isCollection
public boolean isCollection()
Get if is GraphicCollection- 返回:
- Boolean
-
getNumGraphics
public int getNumGraphics()
Get graphics number- 返回:
- 1
-
getGraphicN
public Graphic getGraphicN(int idx)
Get Graphic by index- 参数:
idx- Index- 返回:
- Graphic
-
getGraphics
public java.util.List<Graphic> getGraphics()
Get graphic list- 返回:
- Graphic list
-
verticeMoveUpdate
public void verticeMoveUpdate(int vIdx, double newX, double newY)Vertice edited update- 参数:
vIdx- Vertice indexnewX- New XnewY- New Y
-
verticeAddUpdate
public void verticeAddUpdate(int vIdx, PointD point)Vertice edited update- 参数:
vIdx- Vertice indexpoint- The add vertice
-
verticeRemoveUpdate
public void verticeRemoveUpdate(int vIdx)
Vertice edited update- 参数:
vIdx- Vertice index
-
exportToXML
public void exportToXML(org.w3c.dom.Document doc, org.w3c.dom.Element parent)Export to XML document- 参数:
doc- XML documentparent- Parent XML element
-
addShape
protected void addShape(org.w3c.dom.Document doc, org.w3c.dom.Element parent, Shape aShape)Add shape to XML document- 参数:
doc- XML documentparent- Parent XML elementaShape- The shape
-
addLegend
protected void addLegend(org.w3c.dom.Document doc, org.w3c.dom.Element parent, ColorBreak aLegend, ShapeTypes shapeType)Add legend to XML document- 参数:
doc- XML documentparent- Parent XML elementaLegend- The legendshapeType- The shape type
-
importFromXML
public void importFromXML(org.w3c.dom.Element graphicNode)
Import from xml node- 参数:
graphicNode- Graphic xml node
-
loadShape
protected Shape loadShape(org.w3c.dom.Node shapeNode)
-
loadLegend
protected ColorBreak loadLegend(org.w3c.dom.Node legendNode, ShapeTypes shapeType)
-
-