类 LayoutMap
- java.lang.Object
-
- org.meteoinfo.layout.LayoutElement
-
- org.meteoinfo.layout.LayoutMap
-
public class LayoutMap extends LayoutElement
- 作者:
- yaqiang
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classLayoutMap.GridLabelPositionEditorclassLayoutMap.LayoutMapBeanstatic classLayoutMap.LayoutMapBeanBeanInfostatic classLayoutMap.LineStyleEditor
-
构造器概要
构造器 构造器 说明 LayoutMap(MapFrame mapFrame, TileLoadListener tll)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddMapViewUpdatedListener(IMapViewUpdatedListener listener)voidfireMapViewUpdatedEvent()java.awt.ColorgetBackColor()Get background colorjava.awt.RectanglegetBounds()Get bounds rectanglejava.awt.ColorgetForeColor()Get foreground colorjava.awt.FontgetGridFont()Get grid label fontGridLabelPositiongetGridLabelPosition()Get grid label positionintgetGridLabelShift()Get grid label shiftjava.awt.ColorgetGridLineColor()Get grid line colorfloatgetGridLineSize()Get grid line sizeLineStylesgetGridLineStyle()Get grid line styledoublegetGridXDelt()Get grid x deltfloatgetGridXOrigin()Get grid x origindoublegetGridYDelt()Get grid y deltfloatgetGridYOrigin()Get grid y originintgetHeight()Get heightintgetLeft()Get leftMapFramegetMapFrame()java.awt.ColorgetNeatLineColor()Get map view neat line colorfloatgetNeatLineSize()Get map view neat line sizeintgetTickLineLength()Get grid tick line lengthintgetTop()Get topintgetWidth()Get widthbooleanisDrawDegreeSymbol()Get if draw degree symbolbooleanisDrawGridLabel()Get if draw grid labelsbooleanisDrawGridLine()Get if draw grid linebooleanisDrawGridTickLine()Get if draw grid tick linebooleanisDrawNeatLine()Get if draw map view neat linebooleanisInsideTickLine()Get if draw grid tick line insidevoidmoveUpdate()Move update methodvoidpaint(java.awt.Graphics2D g)Paint methodvoidpaintOnLayout(java.awt.Graphics2D g, PointF pageLocation, float zoom)Paint on layout methodvoidremoveMapViewUpdatedListener(IMapViewUpdatedListener listener)voidresizeUpdate()Resize update methodvoidsetBackColor(java.awt.Color color)Set background colorvoidsetBounds(java.awt.Rectangle rect)Set bounds rectanglevoidsetDrawDegreeSymbol(boolean value)Set if draw degree symbolvoidsetDrawGridLabel(boolean istrue)Set if draw grid labelsvoidsetDrawGridLine(boolean istrue)Set if draw grid linevoidsetDrawGridTickLine(boolean istrue)Set if draw grid tick linevoidsetDrawNeatLine(boolean istrue)Set if draw map view neat linevoidsetForeColor(java.awt.Color color)Set foreground colorvoidsetGridFont(java.awt.Font font)Set grid label fontvoidsetGridLabelPosition(GridLabelPosition value)Set grid label positiontvoidsetGridLabelShift(int value)Set grid label shiftvoidsetGridLineColor(java.awt.Color color)Set grid line colorvoidsetGridLineSize(float size)Set grid line sizevoidsetGridLineStyle(LineStyles style)Set grid line stylevoidsetGridXDelt(double value)Set grid x deltvoidsetGridXOrigin(float value)Set grid x originvoidsetGridYDelt(double value)Set grid y deltvoidsetGridYOrigin(float value)Set grid y originvoidsetHeight(int height)Set heightvoidsetInsideTickLine(boolean istrue)Set if draw grid tick line insidevoidsetLeft(int left)Set leftvoidsetMapFrame(MapFrame mf)voidsetNeatLineColor(java.awt.Color color)Set map view neat line colorvoidsetNeatLineSize(float size)Set map view neat line sizevoidsetTickLineLength(int value)Set grid tick line lengthvoidsetTop(int top)Set topvoidsetWidth(int width)Set widthvoidzoomToExtentLonLatEx(Extent aExtent)Zoom to exactly lon/lat extent-
从类继承的方法 org.meteoinfo.layout.LayoutElement
addLocationChangedListener, addSizeChangedListener, fireLocationChangedEvent, fireSizeChangedEvent, getBottom, getElementType, getResizeAbility, getRight, isDrawBackColor, isSelected, isVisible, pageToScreen, removeLocationChangedListener, removeSizeChangedListener, setDrawBackColor, setElementType, setResizeAbility, setSelected, setVisible
-
-
-
-
构造器详细资料
-
LayoutMap
public LayoutMap(MapFrame mapFrame, TileLoadListener tll)
Constructor- 参数:
mapFrame- MapFrametll- TileLoadListener
-
-
方法详细资料
-
addMapViewUpdatedListener
public void addMapViewUpdatedListener(IMapViewUpdatedListener listener)
-
removeMapViewUpdatedListener
public void removeMapViewUpdatedListener(IMapViewUpdatedListener listener)
-
fireMapViewUpdatedEvent
public void fireMapViewUpdatedEvent()
-
getMapFrame
public MapFrame getMapFrame()
-
setMapFrame
public void setMapFrame(MapFrame mf)
-
getLeft
public int getLeft()
Get left- 覆盖:
getLeft在类中LayoutElement- 返回:
- Left
-
setLeft
public void setLeft(int left)
Set left- 覆盖:
setLeft在类中LayoutElement- 参数:
left- Left
-
getTop
public int getTop()
Get top- 覆盖:
getTop在类中LayoutElement- 返回:
- Top
-
setTop
public void setTop(int top)
Set top- 覆盖:
setTop在类中LayoutElement- 参数:
top- Top
-
getWidth
public int getWidth()
Get width- 覆盖:
getWidth在类中LayoutElement- 返回:
- Width
-
setWidth
public void setWidth(int width)
Set width- 覆盖:
setWidth在类中LayoutElement- 参数:
width- Width
-
getHeight
public int getHeight()
Get height- 覆盖:
getHeight在类中LayoutElement- 返回:
- Height
-
setHeight
public void setHeight(int height)
Set height- 覆盖:
setHeight在类中LayoutElement- 参数:
height- Height
-
getBounds
public java.awt.Rectangle getBounds()
Get bounds rectangle- 覆盖:
getBounds在类中LayoutElement- 返回:
- The bounds rectangle
-
setBounds
public void setBounds(java.awt.Rectangle rect)
Set bounds rectangle- 参数:
rect- Bounds rectangle
-
getBackColor
public java.awt.Color getBackColor()
Get background color- 覆盖:
getBackColor在类中LayoutElement- 返回:
- Background color
-
setBackColor
public void setBackColor(java.awt.Color color)
Set background color- 覆盖:
setBackColor在类中LayoutElement- 参数:
color- Background color
-
getForeColor
public java.awt.Color getForeColor()
Get foreground color- 覆盖:
getForeColor在类中LayoutElement- 返回:
- Foreground color
-
setForeColor
public void setForeColor(java.awt.Color color)
Set foreground color- 覆盖:
setForeColor在类中LayoutElement- 参数:
color-
-
isDrawNeatLine
public boolean isDrawNeatLine()
Get if draw map view neat line- 返回:
- Boolean
-
setDrawNeatLine
public void setDrawNeatLine(boolean istrue)
Set if draw map view neat line- 参数:
istrue- Boolean
-
getNeatLineColor
public java.awt.Color getNeatLineColor()
Get map view neat line color- 返回:
- Neat line color
-
setNeatLineColor
public void setNeatLineColor(java.awt.Color color)
Set map view neat line color- 参数:
color- Neat line color
-
getNeatLineSize
public float getNeatLineSize()
Get map view neat line size- 返回:
- Neat line size
-
setNeatLineSize
public void setNeatLineSize(float size)
Set map view neat line size- 参数:
size- Neat line size
-
getGridLineColor
public java.awt.Color getGridLineColor()
Get grid line color- 返回:
- Grid line color
-
setGridLineColor
public void setGridLineColor(java.awt.Color color)
Set grid line color- 参数:
color- Grid line color
-
getGridLineSize
public float getGridLineSize()
Get grid line size- 返回:
- Grid line size
-
setGridLineSize
public void setGridLineSize(float size)
Set grid line size- 参数:
size- Grid line size
-
getGridLineStyle
public LineStyles getGridLineStyle()
Get grid line style- 返回:
- Grid line style
-
setGridLineStyle
public void setGridLineStyle(LineStyles style)
Set grid line style- 参数:
style- Grid line style
-
isDrawGridLabel
public boolean isDrawGridLabel()
Get if draw grid labels- 返回:
- If draw grid labels
-
setDrawGridLabel
public void setDrawGridLabel(boolean istrue)
Set if draw grid labels- 参数:
istrue- Boolean
-
isInsideTickLine
public boolean isInsideTickLine()
Get if draw grid tick line inside- 返回:
- Booelan
-
setInsideTickLine
public void setInsideTickLine(boolean istrue)
Set if draw grid tick line inside- 参数:
istrue- Boolean
-
getTickLineLength
public int getTickLineLength()
Get grid tick line length- 返回:
- Grid tick line length
-
setTickLineLength
public void setTickLineLength(int value)
Set grid tick line length- 参数:
value- Tick line length value
-
getGridLabelShift
public int getGridLabelShift()
Get grid label shift- 返回:
- Grid label shift
-
setGridLabelShift
public void setGridLabelShift(int value)
Set grid label shift- 参数:
value- Grid label shift
-
getGridLabelPosition
public GridLabelPosition getGridLabelPosition()
Get grid label position- 返回:
- Grid label position
-
setGridLabelPosition
public void setGridLabelPosition(GridLabelPosition value)
Set grid label positiont- 参数:
value- Grid label position
-
isDrawGridLine
public boolean isDrawGridLine()
Get if draw grid line- 返回:
- If draw grid line
-
setDrawGridLine
public void setDrawGridLine(boolean istrue)
Set if draw grid line- 参数:
istrue- If draw grid line
-
isDrawGridTickLine
public boolean isDrawGridTickLine()
Get if draw grid tick line- 返回:
- Boolean
-
setDrawGridTickLine
public void setDrawGridTickLine(boolean istrue)
Set if draw grid tick line- 参数:
istrue- Boolean
-
isDrawDegreeSymbol
public boolean isDrawDegreeSymbol()
Get if draw degree symbol- 返回:
- Boolean
-
setDrawDegreeSymbol
public void setDrawDegreeSymbol(boolean value)
Set if draw degree symbol- 参数:
value- Boolean
-
getGridFont
public java.awt.Font getGridFont()
Get grid label font- 返回:
- Grid label font
-
setGridFont
public void setGridFont(java.awt.Font font)
Set grid label font- 参数:
font- Grid label font
-
getGridXDelt
public double getGridXDelt()
Get grid x delt- 返回:
- Grid x delt
-
setGridXDelt
public void setGridXDelt(double value)
Set grid x delt- 参数:
value- The value
-
getGridYDelt
public double getGridYDelt()
Get grid y delt- 返回:
- Grid y delt
-
setGridYDelt
public void setGridYDelt(double value)
Set grid y delt- 参数:
value- Grid y delt
-
getGridXOrigin
public float getGridXOrigin()
Get grid x origin- 返回:
- Grid x origin
-
setGridXOrigin
public void setGridXOrigin(float value)
Set grid x origin- 参数:
value- Grid x origin
-
getGridYOrigin
public float getGridYOrigin()
Get grid y origin- 返回:
- Grid y origin
-
setGridYOrigin
public void setGridYOrigin(float value)
Set grid y origin- 参数:
value- Grid y origin
-
zoomToExtentLonLatEx
public void zoomToExtentLonLatEx(Extent aExtent)
Zoom to exactly lon/lat extent- 参数:
aExtent- The lon/lat extent
-
paint
public void paint(java.awt.Graphics2D g)
Paint method- 指定者:
paint在类中LayoutElement- 参数:
g- Graphics2D
-
paintOnLayout
public void paintOnLayout(java.awt.Graphics2D g, PointF pageLocation, float zoom)从类复制的说明:LayoutElementPaint on layout method- 指定者:
paintOnLayout在类中LayoutElement- 参数:
g- Grahpics2DpageLocation- Page locationzoom- Zoom
-
moveUpdate
public void moveUpdate()
从类复制的说明:LayoutElementMove update method- 指定者:
moveUpdate在类中LayoutElement
-
resizeUpdate
public void resizeUpdate()
从类复制的说明:LayoutElementResize update method- 指定者:
resizeUpdate在类中LayoutElement
-
-