类 LayoutScaleBar
- java.lang.Object
-
- org.meteoinfo.layout.LayoutElement
-
- org.meteoinfo.layout.LayoutScaleBar
-
public class LayoutScaleBar extends LayoutElement
- 作者:
- Yaqiang Wang
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 classLayoutScaleBar.LayoutScaleBarBeanstatic classLayoutScaleBar.LayoutScaleBarBeanBeanInfostatic classLayoutScaleBar.ScaleBarTypeEditor
-
构造器概要
构造器 构造器 说明 LayoutScaleBar(LayoutMap layoutMap)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetBreakNumber()Get break numberjava.awt.FontgetFont()Get fontLayoutMapgetLayoutMap()Get layout mapjava.awt.ColorgetNeatLineColor()Get neat line colorfloatgetNeatLineSize()Get neat line sizeScaleBarTypegetScaleBarType()Get scale bar typebooleanisDrawNeatLine()Get if draw neat linebooleanisDrawScaleText()Get if draw scale textvoidmoveUpdate()Move update methodvoidpaint(java.awt.Graphics2D g)Paint methodvoidpaintGraphics(java.awt.Graphics2D g, PointF pageLocation, float zoom)Paint graphicsvoidpaintOnLayout(java.awt.Graphics2D g, PointF pageLocation, float zoom)Paint on layout methodvoidresizeUpdate()Resize update methodvoidsetBreakNumber(int num)Set break numbervoidsetDrawNeatLine(boolean istrue)Set if draw neat linevoidsetDrawScaleText(boolean istrue)Set if draw scale textvoidsetFont(java.awt.Font font)Set fontvoidsetNeatLineColor(java.awt.Color color)Set neat line colorvoidsetNeatLineSize(float size)Set neat line sizevoidsetScaleBarType(ScaleBarType type)Set scale bar type-
从类继承的方法 org.meteoinfo.layout.LayoutElement
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, setWidth
-
-
-
-
构造器详细资料
-
LayoutScaleBar
public LayoutScaleBar(LayoutMap layoutMap)
Constructor- 参数:
layoutMap- The layout map
-
-
方法详细资料
-
getLayoutMap
public LayoutMap getLayoutMap()
Get layout map- 返回:
- The layout map
-
getScaleBarType
public ScaleBarType getScaleBarType()
Get scale bar type- 返回:
- Scale bar type
-
setScaleBarType
public void setScaleBarType(ScaleBarType type)
Set scale bar type- 参数:
type- Scale bar type
-
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
-
getFont
public java.awt.Font getFont()
Get font- 返回:
- The font
-
setFont
public void setFont(java.awt.Font font)
Set font- 参数:
font- The font
-
getBreakNumber
public int getBreakNumber()
Get break number- 返回:
- The break number
-
setBreakNumber
public void setBreakNumber(int num)
Set break number- 参数:
num- Break number
-
isDrawScaleText
public boolean isDrawScaleText()
Get if draw scale text- 返回:
- If draw scale text
-
setDrawScaleText
public void setDrawScaleText(boolean istrue)
Set if draw scale text- 参数:
istrue- If draw scale text
-
paint
public void paint(java.awt.Graphics2D g)
从类复制的说明:LayoutElementPaint 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
-
paintGraphics
public void paintGraphics(java.awt.Graphics2D g, PointF pageLocation, float zoom)Paint graphics- 参数:
g- GraphicspageLocation- Page locationzoom- Zoom
-
moveUpdate
public void moveUpdate()
从类复制的说明:LayoutElementMove update method- 指定者:
moveUpdate在类中LayoutElement
-
resizeUpdate
public void resizeUpdate()
从类复制的说明:LayoutElementResize update method- 指定者:
resizeUpdate在类中LayoutElement
-
-