ChartGraphic, GraphicCollectionpublic class Graphic extends Object
| 构造器 | 说明 |
|---|---|
Graphic() |
Constructor
|
Graphic(Shape shape,
ColorBreak legend) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
protected void |
addLegend(Document doc,
Element parent,
ColorBreak aLegend,
ShapeTypes shapeType) |
Add legend to XML document
|
protected void |
addShape(Document doc,
Element parent,
Shape aShape) |
Add shape to XML document
|
void |
exportToXML(Document doc,
Element parent) |
Export to XML document
|
Extent |
getExtent() |
Get extent
|
Graphic |
getGraphicN(int idx) |
Get Graphic by index
|
List<Graphic> |
getGraphics() |
Get graphic list
|
ColorBreak |
getLegend() |
Get legend
|
int |
getNumGraphics() |
Get graphics number
|
ResizeAbility |
getResizeAbility() |
Get resize ability
|
Shape |
getShape() |
Get shape
|
void |
importFromXML(Element graphicNode) |
Import from xml node
|
boolean |
isCollection() |
Get if is GraphicCollection
|
boolean |
isSingleLegend() |
Get is single legend or not
|
protected ColorBreak |
loadLegend(Node legendNode,
ShapeTypes shapeType) |
|
protected Shape |
loadShape(Node shapeNode) |
|
void |
setExtent(Extent value) |
Set extent
|
void |
setLegend(ColorBreak legend) |
|
void |
setShape(Shape aShape) |
Set shape
|
void |
verticeAddUpdate(int vIdx,
PointD point) |
Vertice edited update
|
void |
verticeMoveUpdate(int vIdx,
double newX,
double newY) |
Vertice edited update
|
void |
verticeRemoveUpdate(int vIdx) |
Vertice edited update
|
public Graphic()
public Graphic(Shape shape, ColorBreak legend)
shape - a shapelegend - a legendpublic Shape getShape()
public void setShape(Shape aShape)
aShape - a shapepublic ColorBreak getLegend()
public void setLegend(ColorBreak legend)
public ResizeAbility getResizeAbility()
public Extent getExtent()
public void setExtent(Extent value)
value - The extentpublic boolean isSingleLegend()
public boolean isCollection()
public int getNumGraphics()
public Graphic getGraphicN(int idx)
idx - Indexpublic void verticeMoveUpdate(int vIdx,
double newX,
double newY)
vIdx - Vertice indexnewX - New XnewY - New Ypublic void verticeAddUpdate(int vIdx,
PointD point)
vIdx - Vertice indexpoint - The add verticepublic void verticeRemoveUpdate(int vIdx)
vIdx - Vertice indexpublic void exportToXML(Document doc, Element parent)
doc - XML documentparent - Parent XML elementprotected void addShape(Document doc, Element parent, Shape aShape)
doc - XML documentparent - Parent XML elementaShape - The shapeprotected void addLegend(Document doc, Element parent, ColorBreak aLegend, ShapeTypes shapeType)
doc - XML documentparent - Parent XML elementaLegend - The legendshapeType - The shape typepublic void importFromXML(Element graphicNode)
graphicNode - Graphic xml nodeprotected ColorBreak loadLegend(Node legendNode, ShapeTypes shapeType)
Copyright © 2019. All rights reserved.