类 ChartNorthArrow
- java.lang.Object
-
- org.meteoinfo.chart.ChartElement
-
- org.meteoinfo.chart.ChartNorthArrow
-
public class ChartNorthArrow extends ChartElement
- 作者:
- Yaqiang Wang
-
-
字段概要
-
从类继承的字段 org.meteoinfo.chart.ChartElement
_backColor, _foreColor, height, width, x, y
-
-
构造器概要
构造器 构造器 说明 ChartNorthArrow(MapPlot mapPlot)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddraw(java.awt.Graphics2D g, float x, float y)Draw textfloatgetAngle()Get anglefloatgetLineWidth()Get line widhtMapPlotgetMapPlot()Get map plotjava.awt.ColorgetNeatLineColor()Get neat line colorfloatgetNeatLineSize()Get neat line sizebooleanisDrawNeatLine()Get if draw neat linevoidmoveUpdate()Move update methodvoidpaintGraphics(java.awt.Graphics2D g, PointF pageLocation, float zoom)Paint graphicsvoidresizeUpdate()Resize update methodvoidsetAngle(float angle)Set anglevoidsetDrawNeatLine(boolean istrue)Set if draw neat linevoidsetLineWidth(float value)Set line widthvoidsetNeatLineColor(java.awt.Color color)Set neat line colorvoidsetNeatLineSize(float size)Set neat line size-
从类继承的方法 org.meteoinfo.chart.ChartElement
addLocationChangedListener, addSizeChangedListener, fireLocationChangedEvent, fireSizeChangedEvent, getBackground, getBottom, getBounds, getForeground, getHeight, getResizeAbility, getRight, getWidth, getX, getY, isDrawBackColor, isSelected, isVisible, pageToScreen, removeLocationChangedListener, removeSizeChangedListener, setBackground, setDrawBackColor, setForeground, setHeight, setResizeAbility, setSelected, setVisible, setWidth, setX, setY
-
-
-
-
构造器详细资料
-
ChartNorthArrow
public ChartNorthArrow(MapPlot mapPlot)
Constructor- 参数:
mapPlot- The map plot
-
-
方法详细资料
-
getMapPlot
public MapPlot getMapPlot()
Get map plot- 返回:
- The map plot
-
getLineWidth
public float getLineWidth()
Get line widht- 返回:
- Line width
-
setLineWidth
public void setLineWidth(float value)
Set line width- 参数:
value- Line width
-
isDrawNeatLine
public boolean isDrawNeatLine()
Get if draw neat line- 返回:
- If draw neat line
-
setDrawNeatLine
public void setDrawNeatLine(boolean istrue)
Set if draw neat line- 参数:
istrue- If draw neat line
-
getNeatLineColor
public java.awt.Color getNeatLineColor()
Get neat line color- 返回:
- Neat line color
-
setNeatLineColor
public void setNeatLineColor(java.awt.Color color)
Set neat line color- 参数:
color- Neat line color
-
getNeatLineSize
public float getNeatLineSize()
Get neat line size- 返回:
- Neat line size
-
setNeatLineSize
public void setNeatLineSize(float size)
Set neat line size- 参数:
size- Neat line size
-
getAngle
public float getAngle()
Get angle- 返回:
- Angle
-
setAngle
public void setAngle(float angle)
Set angle- 参数:
angle- The angle
-
draw
public void draw(java.awt.Graphics2D g, float x, float y)Draw text- 参数:
g- Graphics2Dx- Xy- Y
-
paintGraphics
public void paintGraphics(java.awt.Graphics2D g, PointF pageLocation, float zoom)Paint graphics- 参数:
g- GraphicspageLocation- Page locationzoom- Zoom
-
moveUpdate
public void moveUpdate()
从类复制的说明:ChartElementMove update method- 指定者:
moveUpdate在类中ChartElement
-
resizeUpdate
public void resizeUpdate()
从类复制的说明:ChartElementResize update method- 指定者:
resizeUpdate在类中ChartElement
-
-