|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.data.Geometry com.supermap.data.GeoLegend
public class GeoLegend
该类继承自 Geometry
抽象类。需要关联地图名和工作空间进行使用,当设置标题,图例项是否可见等内容时,需要调用 load()
方法,设置才起作用。 可以使用 getInnerGeometry()
方法来控制图例项的显示内容和位置。
构造方法摘要 | |
---|---|
GeoLegend(GeoLegend geoLegend)
根据给定的 GeoLegend 对象构造一个与其完全相同的新对象。 |
|
GeoLegend(java.lang.String mapName,
Workspace workspace)
根据指定的参数来构造一个 GeoLegend 的新对象。 |
|
GeoLegend(java.lang.String mapName,
Workspace workspace,
java.lang.String title)
根据指定的参数来构造一个 GeoLegend 的新对象。 |
方法摘要 | |
---|---|
GeoLegend |
clone()
返回当前 GeoLegend 对象的一个拷贝。 |
void |
dispose()
释放该对象所占用的资源。 |
boolean |
fromXML(java.lang.String xml)
此类不支持该接口。 |
GeoStyle |
getBackGroundStyle()
返回背景的风格。 |
double |
getBottomMargin()
返回边框向下扩充的距离。 |
Point2D |
getCenter()
返回二维矩形几何对象的中心点。 |
int |
getColumnCount()
返回图例项的列数。 |
double |
getHeight()
返回地图图例对象的高度。 |
GeoCompound |
getInnerGeometry()
返回图例包含的复合几何对象( GeoCompound )。 |
java.lang.String[] |
getItemNames()
返回图例项的名称的数组。 |
java.lang.String[] |
getItems()
已过时。 已过时。使用 getItemNames() 替代。
返回图例项的名称的数组。 |
TextStyle |
getItemTextStyle()
返回图例项说明的文本风格。 |
double |
getLeftMargin()
返回边框向左扩充的距离。 |
java.lang.String |
getMapName()
返回地图几何对象所关联的地图名称,此对象所属的工作空间中须含有此地图名称,否则地图无法正常显示。 |
double |
getRightMargin()
返回边框向右扩充的距离。 |
GeoStyle |
getStyle()
此类不支持该接口。 |
int |
getSubItemStyle()
返回图例子项风格。 |
TextStyle |
getSubItemTextStyle()
返回图例子项(如专题图)说明的文本风格。 |
java.lang.String |
getTitle()
返回图例标题。 |
TextStyle |
getTitleStyle()
返回图例标题风格。 |
double |
getTopMargin()
返回边框向上扩充的距离。 |
double |
getWidth()
返回地图图例对象的宽度。 |
Workspace |
getWorkspace()
返回关联的工作空间,默认是返回到该图例对象所属的工作空间对象。 |
boolean |
isEmpty()
此类不支持该接口。 |
boolean |
isItemVisible(java.lang.String itemName)
返回图例项是否可见。 |
void |
load(boolean isAddToScreenLayer)
加载设置的内容。 |
Geometry |
mirror(Point2D startPoint,
Point2D endPoint)
此类不支持该接口。 |
void |
setBackGroundStyle(GeoStyle geoStyle)
设置背景的风格 |
void |
setBottomMargin(double value)
设置边框向下扩充的距离。 |
void |
setCenter(Point2D point2D)
设置二维矩形几何对象的中心点。 |
void |
setColumnCount(int value)
设置图例项的列数。 |
void |
setEmpty()
此类不支持该接口。 |
void |
setHeight(double value)
设置地图图例对象的高度。 |
void |
setItemTextStyle(TextStyle textStyle)
设置图例项说明的文本风格。 |
void |
setItemVisible(java.lang.String itemName,
boolean value)
设置图例项是否可见。 |
void |
setLeftMargin(double value)
设置边框向左扩充的距离。 |
void |
setMapName(java.lang.String string)
设置地图几何对象所关联的地图名称,此对象所属的工作空间中须含有此地图名称,否则地图无法正常显示。 |
void |
setRightMargin(double value)
设置边框向右扩充的距离。 |
void |
setStyle(GeoStyle value)
此类不支持该接口。 |
void |
setSubItemStyle(int nGeoStyle)
设置图例子项风格。 |
void |
setSubItemTextStyle(TextStyle textStyle)
设置图例子项(如专题图)说明的文本风格。 |
void |
setTitle(java.lang.String string)
设置图例标题。 |
void |
setTitleStyle(TextStyle textStyle)
设置图例标题风格。 |
void |
setTopMargin(double value)
设置边框向上扩充的距离。 |
void |
setWidth(double value)
设置地图图例对象的宽度。 |
java.lang.String |
toXML()
此类不支持该接口。 |
从类 com.supermap.data.Geometry 继承的方法 |
---|
addCustomGeometryCreatedListener, getBounds, getID, getInnerPoint, getType, getVariantID, hitTest, offset, removeCustomGeometryCreatedListener, resize, rotate, setID |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
构造方法详细信息 |
---|
public GeoLegend(GeoLegend geoLegend)
geoLegend
- 给定的 GeoLegend 对象public GeoLegend(java.lang.String mapName, Workspace workspace)
mapName
- 关联地图的名称。workspace
- 关联的工作空间。public GeoLegend(java.lang.String mapName, Workspace workspace, java.lang.String title)
mapName
- 关联地图的名称。workspace
- 关联的工作空间。title
- 图例的标题。方法详细信息 |
---|
public java.lang.String getMapName()
public void setMapName(java.lang.String string)
string
- 地图几何对象所关联的地图名称public java.lang.String getTitle()
public void setTitle(java.lang.String string)
string
- 图例标题public TextStyle getTitleStyle()
public void setTitleStyle(TextStyle textStyle)
textStyle
- 图例标题风格public TextStyle getItemTextStyle()
public void setItemTextStyle(TextStyle textStyle)
textStyle
- 图例项说明的文本风格。public TextStyle getSubItemTextStyle()
public void setSubItemTextStyle(TextStyle textStyle)
textStyle
- 图例子项(如专题图)说明的文本风格。public GeoStyle getBackGroundStyle()
public void setBackGroundStyle(GeoStyle geoStyle)
geoStyle
- 背景的风格public double getLeftMargin()
public void setLeftMargin(double value)
value
- 边框向左扩充的距离。public double getRightMargin()
public void setRightMargin(double value)
value
- 边框向右扩充的距离。public double getTopMargin()
public void setTopMargin(double value)
value
- 边框向上扩充的距离。public double getBottomMargin()
public void setBottomMargin(double value)
value
- 边框向下扩充的距离。public int getColumnCount()
public void setColumnCount(int value)
value
- 图例项的列数。public java.lang.String[] getItemNames()
@Deprecated public java.lang.String[] getItems()
getItemNames()
替代。
返回图例项的名称的数组。
public Workspace getWorkspace()
public GeoCompound getInnerGeometry()
GeoCompound
)。
GeoCompound
)。public Point2D getCenter()
public void setCenter(Point2D point2D)
point2D
- 二维矩形几何对象的中心点。public double getWidth()
public void setWidth(double value)
value
- 地图图例对象的宽度。public double getHeight()
public void setHeight(double value)
value
- 地图图例对象的高度。public boolean isItemVisible(java.lang.String itemName)
itemName
- 指定的图例项名称。
public void setItemVisible(java.lang.String itemName, boolean value)
itemName
- 指定的图例项名称。value
- 图例项是否可见。public void load(boolean isAddToScreenLayer)
isAddToScreenLayer
- 是否添加到屏幕图层。加载到屏幕图层的图例,将不随布局和地图的缩放而变化,这样在进行布局浏览时,可以获得较好的显示效果;但在进行布局打印时,不建议用户将图例加载到屏幕图层,直接加载到布局即可。public void dispose()
Geometry
中的 dispose
public GeoLegend clone()
java.lang.Object
中的 clone
public int getSubItemStyle()
public void setSubItemStyle(int nGeoStyle)
nGeoStyle
- 图例子项风格。public boolean fromXML(java.lang.String xml)
Geometry
中的 fromXML
xml
- XML 格式的字符串。
Geometry.offset(double, double)
public java.lang.String toXML()
Geometry
中的 toXML
Geometry.offset(double, double)
public void setEmpty()
Geometry
中的 setEmpty
public boolean isEmpty()
Geometry
中的 isEmpty
Geometry.offset(double, double)
public GeoStyle getStyle()
Geometry
中的 getStyle
public void setStyle(GeoStyle value)
Geometry
中的 setStyle
value
- 用来设置几何对象风格的 GeoStyle
对象。Geometry.offset(double, double)
public Geometry mirror(Point2D startPoint, Point2D endPoint)
Geometry
中的 mirror
startPoint
- 线段的起点。endPoint
- 线段的终点。
Geometry.offset(double,double)
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |