public class LayoutLegend extends LayoutElement
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
LayoutLegend.LayerNameEditor |
|
static class |
LayoutLegend.LayerUpdateTypeEditor |
|
class |
LayoutLegend.LayoutLegendBean |
|
static class |
LayoutLegend.LayoutLegendBeanBeanInfo |
|
static class |
LayoutLegend.LegendStyleEditor |
| 构造器 | 说明 |
|---|---|
LayoutLegend(MapLayout mapLayout,
LayoutMap layoutMap) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getColumnNumber() |
Get column number
|
Font |
getFont() |
Get font
|
String |
getLayerName() |
Get legend layer name
|
static List<String> |
getLayerNames() |
Get layer names
|
LayerUpdateTypes |
getLayerUpdateType() |
Get layer update type
|
LayoutMap |
getLayoutMap() |
Get layout map
|
MapLayer |
getLegendLayer() |
Get legend layer
|
LegendStyles |
getLegendStyle() |
Get legend style
|
Color |
getNeatLineColor() |
Get neat line color
|
float |
getNeatLineSize() |
Get neat line size
|
String |
getTitle() |
Get title
|
boolean |
isDrawChartBreaks() |
Get if draw chart breaks
|
boolean |
isDrawNeatLine() |
Get if draw neat line
|
boolean |
isDrawPieLabel() |
Get if draw pie label
|
boolean |
isForceDrawOutline() |
Get if force to draw polygon outline - for normal legend
|
void |
moveUpdate() |
Move update method
|
void |
onMapViewUpdated(MapViewUpdatedEvent e) |
|
void |
paint(Graphics2D g) |
Paint method
|
void |
paintGraphics(Graphics2D g,
PointF pageLocation,
float zoom) |
Paint graphics
|
void |
paintOnLayout(Graphics2D g,
PointF pageLocation,
float zoom) |
Paint on layout method
|
void |
resizeUpdate() |
Resize update method
|
void |
setColumnNumber(int value) |
Set column number
|
void |
setDrawChartBreaks(boolean value) |
Set if draw chart breaks
|
void |
setDrawNeatLine(boolean istrue) |
Set if draw neat line
|
void |
setDrawPieLabel(boolean value) |
Set if draw pie label
|
void |
setFont(Font font) |
Set font
|
void |
setForceDrawOutline(boolean value) |
Set if force to draw polygon outline - for normal legend
|
void |
setLayerName(String name) |
Set legend layer name
|
void |
setLayerUpdateType(LayerUpdateTypes type) |
Set layer update type
|
void |
setLegendLayer(MapLayer layer) |
Set legend layer
|
void |
setLegendStyle(LegendStyles style) |
Set legend style
|
void |
setNeatLineColor(Color color) |
Set neat line color
|
void |
setNeatLineSize(float size) |
Set neat line size
|
void |
setTitle(String title) |
Set title
|
void |
updateLegendSize() |
Update legend control size
|
addLocationChangedListener, addSizeChangedListener, fireLocationChangedEvent, fireSizeChangedEvent, getBackColor, getBottom, getBounds, getElementType, getForeColor, getHeight, getLeft, getResizeAbility, getRight, getTop, getWidth, isDrawBackColor, isSelected, isVisible, pageToScreen, removeLocationChangedListener, removeSizeChangedListener, setBackColor, setDrawBackColor, setElementType, setForeColor, setHeight, setLeft, setResizeAbility, setSelected, setTop, setVisible, setWidthpublic void onMapViewUpdated(MapViewUpdatedEvent e)
public LayoutMap getLayoutMap()
public MapLayer getLegendLayer()
public void setLegendLayer(MapLayer layer)
layer - The legend layerpublic String getLayerName()
public void setLayerName(String name)
name - Layer namepublic boolean isForceDrawOutline()
public void setForceDrawOutline(boolean value)
value - Booleanpublic LayerUpdateTypes getLayerUpdateType()
public void setLayerUpdateType(LayerUpdateTypes type)
type - Layer update typepublic LegendStyles getLegendStyle()
public void setLegendStyle(LegendStyles style)
style - Legend stylepublic String getTitle()
public void setTitle(String title)
title - The titlepublic boolean isDrawNeatLine()
public void setDrawNeatLine(boolean istrue)
istrue - If draw neat linepublic Color getNeatLineColor()
public void setNeatLineColor(Color color)
color - Neat line colorpublic float getNeatLineSize()
public void setNeatLineSize(float size)
size - Neat line sizepublic Font getFont()
public void setFont(Font font)
font - The fontpublic int getColumnNumber()
public void setColumnNumber(int value)
value - Column numberpublic boolean isDrawChartBreaks()
public void setDrawChartBreaks(boolean value)
value - Booleanpublic boolean isDrawPieLabel()
public void setDrawPieLabel(boolean value)
value - Booleanpublic void paintGraphics(Graphics2D g, PointF pageLocation, float zoom)
g - Graphics2DpageLocation - Page locationzoom - Zoompublic void updateLegendSize()
public void paint(Graphics2D g)
LayoutElementpaint 在类中 LayoutElementg - Graphics2Dpublic void paintOnLayout(Graphics2D g, PointF pageLocation, float zoom)
LayoutElementpaintOnLayout 在类中 LayoutElementg - Grahpics2DpageLocation - Page locationzoom - Zoompublic void moveUpdate()
LayoutElementmoveUpdate 在类中 LayoutElementpublic void resizeUpdate()
LayoutElementresizeUpdate 在类中 LayoutElementCopyright © 2019. All rights reserved.