类 AbstractPlot2D
- java.lang.Object
-
- org.meteoinfo.chart.plot.Plot
-
- org.meteoinfo.chart.plot.AbstractPlot2D
-
-
字段概要
字段 修饰符和类型 字段 说明 protected java.awt.Colorbackgroundprotected booleanclip-
从类继承的字段 org.meteoinfo.chart.plot.Plot
columnIndex, DEFAULT_BACKGROUND_ALPHA, DEFAULT_BACKGROUND_PAINT, DEFAULT_FOREGROUND_ALPHA, DEFAULT_LEGEND_ITEM_BOX, DEFAULT_LEGEND_ITEM_CIRCLE, DEFAULT_OUTLINE_PAINT, DEFAULT_OUTLINE_STROKE, isSubPlot, MINIMUM_HEIGHT_TO_DRAW, MINIMUM_WIDTH_TO_DRAW, outerPosition, position, positionArea, rowIndex, symbolAntialias, units
-
-
构造器概要
构造器 构造器 说明 AbstractPlot2D()Constructor
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 voidaddLegend(ChartLegend legend)Add a legendvoidaddText(ChartText text)Add textvoiddraw(java.awt.Graphics2D g, java.awt.geom.Rectangle2D area)Draw plotdoublegetAspect()Get aspect - scaling from data to plot units for x and yAxisgetAxis(Location loc)Get axisjava.awt.ColorgetBackground()Get backgroundExtentgetDrawExtent()Get draw extentExtentgetExtent()Get extentjava.awt.geom.Rectangle2DgetGraphArea(java.awt.Graphics2D g, java.awt.geom.Rectangle2D area)Get graphic areaGridLinegetGridLine()Get grid lineChartTextgetLeftTitle()Get left sub titleChartLegendgetLegend()Get chart legendChartLegendgetLegend(int idx)Get chart legendjava.util.List<ChartLegend>getLegends()Get legendsjava.awt.geom.Rectangle2DgetOuterPositionArea(java.awt.geom.Rectangle2D area)Get outer position areaPlotOrientationgetPlotOrientation()Get plot orientationPlotTypegetPlotType()Get plot typejava.awt.geom.Rectangle2DgetPositionArea()Get position areaChartTextgetRightTitle()Get right sub titlejava.awt.ColorgetSelectedColor()Get selected colorjava.util.List<ChartText>getTexts()Get textsMargingetTightInset(java.awt.Graphics2D g, java.awt.geom.Rectangle2D positionArea)Get tight inset areajava.awt.geom.Rectangle2DgetTightInsetArea(java.awt.Graphics2D g, java.awt.geom.Rectangle2D positionArea)Get tight inset areaChartTextgetTitle()Get titleChartWindArrowgetWindArrow()Get wind arrowAxisgetXAxis()Get bottom x axisLocationgetXAxisLocation()Get x axis locationAxisgetYAxis()Get left y axisLocationgetYAxisLocation()Get y axis locationbooleanisAutoAspect()Get is auto aspect or notbooleanisClip()Get is clip axes or notbooleanisDrawNeatLine()Get if draw neat linebooleanisDrawRightAxis()get if draw right axisbooleanisDrawTopAxis()get if draw top axisbooleanisInsideTick()Get is inside tick line or notbooleanisLogX()Get x axis is log or notbooleanisLogY()Get y axis is log or notbooleanisXReverse()Get if x axis is reverse or notbooleanisYReverse()Get if y axis is reverse or notdouble[]projToScreen(double projX, double projY, java.awt.geom.Rectangle2D area)Convert coordinate from map to screendoubleprojXLength(double len, java.awt.geom.Rectangle2D area)Convert data length to screen length in x directiondoubleprojYLength(double len, java.awt.geom.Rectangle2D area)Convert data length to screen length in y directionvoidremoveLegend(int idx)Remove a legend by indexvoidremoveLegend(ChartLegend legend)Remove a legenddouble[]screenToProj(double screenX, double screenY, java.awt.geom.Rectangle2D area)Convert coordinate from screen to mapvoidsetAspect(double value)Set aspectvoidsetAutoAspect(boolean value)Set is auto aspect or notabstract voidsetAutoExtent()voidsetAxis(Axis axis, Location loc)Set axisvoidsetAxisLabelFont(java.awt.Font font)Set axis label fontvoidsetAxisOn(boolean value)Set all axis visible or notvoidsetBackground(java.awt.Color value)Set backgroundvoidsetClip(boolean value)Set is clip axes or notvoidsetDrawExtent(Extent extent)Set draw extentvoidsetDrawExtent1(Extent extent)Set draw extentvoidsetDrawLegend(boolean value)Set if draw legendvoidsetDrawNeatLine(boolean value)Set if draw neat linevoidsetDrawRightAxis(boolean value)Set if draw right axisvoidsetDrawTopAxis(boolean value)Set if draw top right axisvoidsetExtent(Extent extent)Set extentvoidsetInsideTick(boolean isInside)Set axis tick line inside box or notvoidsetLeftTitle(java.lang.String text)Set left sub titlevoidsetLeftTitle(ChartText value)Set left sub titlevoidsetLegend(ChartLegend value)Set chart legendvoidsetLegends(java.util.List<ChartLegend> value)Set legendsvoidsetPlotOrientation(PlotOrientation value)Set plot orientationvoidsetRightTitle(java.lang.String text)Set right sub titlevoidsetRightTitle(ChartText value)Set right sub titlevoidsetSelectedColor(java.awt.Color value)Set selected colorvoidsetTexts(java.util.List<ChartText> value)Set textsvoidsetTitle(java.lang.String text)Set titlevoidsetTitle(ChartText value)Set titlevoidsetWindArrow(ChartWindArrow value)Set wind arrowvoidsetXAxis(Axis axis)Set x axisvoidsetXAxisLocation(Location value)Set x axis locationvoidsetYAxis(Axis axis)Set y axisvoidsetYAxisLocation(Location value)Set y axis locationvoidupdateDrawExtent()Update draw extentabstract voidupdateLegendScheme()voidzoomToExtentScreen(double minX, double maxX, double minY, double maxY)Zoom to screen extent-
从类继承的方法 org.meteoinfo.chart.plot.Plot
getDataset, getGraphArea, getOuterPosition, getOuterPositionArea, getPlotShrink, getPosition, getPositionArea, getPositionArea, getPositionAreaZoom, getTightInset, getUnits, isOuterPosActive, isSameShrink, isSymbolAntialias, setDataset, setGraphArea, setOuterPosActive, setOuterPosition, setOuterPosition, setOuterPosition, setOuterPositionArea, setPlotShrink, setPosition, setPosition, setPosition, setPositionArea, setPositionAreaZoom, setSameShrink, setSymbolAntialias, setTightInset, setUnits, setUnits, updatePosition, updatePosition, updatePositionArea, updatePostionAreaZoom
-
-
-
-
方法详细资料
-
getTitle
public ChartText getTitle()
Get title- 返回:
- Title
-
setTitle
public void setTitle(ChartText value)
Set title- 参数:
value- Title
-
setTitle
public void setTitle(java.lang.String text)
Set title- 参数:
text- Title text
-
getSelectedColor
public java.awt.Color getSelectedColor()
Get selected color- 返回:
- Selected color
-
setSelectedColor
public void setSelectedColor(java.awt.Color value)
Set selected color- 参数:
value- Selected color
-
getLeftTitle
public ChartText getLeftTitle()
Get left sub title- 返回:
- Left sub title
-
setLeftTitle
public void setLeftTitle(ChartText value)
Set left sub title- 参数:
value- Left sub title
-
setLeftTitle
public void setLeftTitle(java.lang.String text)
Set left sub title- 参数:
text- Title text
-
getRightTitle
public ChartText getRightTitle()
Get right sub title- 返回:
- Right sub title
-
setRightTitle
public void setRightTitle(ChartText value)
Set right sub title- 参数:
value- Right sub title
-
setRightTitle
public void setRightTitle(java.lang.String text)
Set right sub title- 参数:
text- Title text
-
getLegends
public java.util.List<ChartLegend> getLegends()
Get legends- 返回:
- Legends
-
getLegend
public ChartLegend getLegend(int idx)
Get chart legend- 参数:
idx- Index- 返回:
- Chart legend
-
getLegend
public ChartLegend getLegend()
Get chart legend- 返回:
- Chart legend
-
setLegend
public void setLegend(ChartLegend value)
Set chart legend- 参数:
value- Legend
-
setLegends
public void setLegends(java.util.List<ChartLegend> value)
Set legends- 参数:
value- Legends
-
setDrawLegend
public void setDrawLegend(boolean value)
Set if draw legend- 参数:
value- Boolean
-
getDrawExtent
public Extent getDrawExtent()
Get draw extent- 返回:
- Draw extent
-
setDrawExtent
public void setDrawExtent(Extent extent)
Set draw extent- 参数:
extent- Extent
-
setDrawExtent1
public void setDrawExtent1(Extent extent)
Set draw extent- 参数:
extent- Extent
-
getExtent
public Extent getExtent()
Get extent- 返回:
- Extent
-
setExtent
public void setExtent(Extent extent)
Set extent- 参数:
extent- Extent
-
updateDrawExtent
public void updateDrawExtent()
Update draw extent
-
getBackground
public java.awt.Color getBackground()
Get background- 返回:
- Background
-
setBackground
public void setBackground(java.awt.Color value)
Set background- 参数:
value- Background
-
getPlotType
public PlotType getPlotType()
从类复制的说明:PlotGet plot type- 指定者:
getPlotType在类中Plot- 返回:
- Plot type
-
getXAxis
public Axis getXAxis()
Get bottom x axis- 返回:
- Bottom x aixs
-
setXAxis
public void setXAxis(Axis axis) throws java.lang.CloneNotSupportedException
Set x axis- 参数:
axis- Axis- 抛出:
java.lang.CloneNotSupportedException
-
getYAxis
public Axis getYAxis()
Get left y axis- 返回:
- Left y axis
-
setYAxis
public void setYAxis(Axis axis) throws java.lang.CloneNotSupportedException
Set y axis- 参数:
axis- Axis- 抛出:
java.lang.CloneNotSupportedException
-
getXAxisLocation
public Location getXAxisLocation()
Get x axis location- 返回:
- X axis location
-
setXAxisLocation
public void setXAxisLocation(Location value)
Set x axis location- 参数:
value- X axis location
-
getYAxisLocation
public Location getYAxisLocation()
Get y axis location- 返回:
- Y axis location
-
setYAxisLocation
public void setYAxisLocation(Location value)
Set y axis location- 参数:
value- Y axis location
-
getPlotOrientation
public PlotOrientation getPlotOrientation()
Get plot orientation- 返回:
- Plot orientation
-
setPlotOrientation
public void setPlotOrientation(PlotOrientation value)
Set plot orientation- 参数:
value- Plot orientation
-
getGridLine
public GridLine getGridLine()
Get grid line- 返回:
- Grid line
-
isDrawTopAxis
public boolean isDrawTopAxis()
get if draw top axis- 返回:
- Boolean
-
setDrawTopAxis
public void setDrawTopAxis(boolean value)
Set if draw top right axis- 参数:
value- Boolean
-
isDrawRightAxis
public boolean isDrawRightAxis()
get if draw right axis- 返回:
- Boolean
-
setDrawRightAxis
public void setDrawRightAxis(boolean value)
Set if draw right axis- 参数:
value- Boolean
-
isDrawNeatLine
public boolean isDrawNeatLine()
Get if draw neat line- 返回:
- Boolean
-
setDrawNeatLine
public void setDrawNeatLine(boolean value)
Set if draw neat line- 参数:
value- Boolean
-
getTexts
public java.util.List<ChartText> getTexts()
Get texts- 返回:
- Texts
-
setTexts
public void setTexts(java.util.List<ChartText> value)
Set texts- 参数:
value- texts
-
getWindArrow
public ChartWindArrow getWindArrow()
Get wind arrow- 返回:
- Wind arrow
-
setWindArrow
public void setWindArrow(ChartWindArrow value)
Set wind arrow- 参数:
value- Wind arrow
-
isLogX
public boolean isLogX()
Get x axis is log or not- 返回:
- Boolean
-
isLogY
public boolean isLogY()
Get y axis is log or not- 返回:
- Boolean
-
isAutoAspect
public boolean isAutoAspect()
Get is auto aspect or not- 返回:
- Boolean
-
setAutoAspect
public void setAutoAspect(boolean value)
Set is auto aspect or not- 参数:
value- Boolean
-
getAspect
public double getAspect()
Get aspect - scaling from data to plot units for x and y- 返回:
- Aspect
-
setAspect
public void setAspect(double value)
Set aspect- 参数:
value- Aspect
-
isYReverse
public boolean isYReverse()
Get if y axis is reverse or not- 返回:
- Boolean
-
isXReverse
public boolean isXReverse()
Get if x axis is reverse or not- 返回:
- Boolean
-
isClip
public boolean isClip()
Get is clip axes or not- 返回:
- Boolean
-
setClip
public void setClip(boolean value)
Set is clip axes or not- 参数:
value- Boolean
-
addLegend
public void addLegend(ChartLegend legend)
Add a legend- 参数:
legend- The legend
-
removeLegend
public void removeLegend(ChartLegend legend)
Remove a legend- 参数:
legend- The legend
-
removeLegend
public void removeLegend(int idx)
Remove a legend by index- 参数:
idx- The legend index
-
setAxis
public void setAxis(Axis axis, Location loc)
Set axis- 参数:
axis- The axisloc- Axis location
-
setAxisLabelFont
public void setAxisLabelFont(java.awt.Font font)
Set axis label font- 参数:
font- Font
-
setAxisOn
public void setAxisOn(boolean value)
Set all axis visible or not- 参数:
value- Boolean
-
setInsideTick
public void setInsideTick(boolean isInside)
Set axis tick line inside box or not- 参数:
isInside- Inside box ot not
-
isInsideTick
public boolean isInsideTick()
Get is inside tick line or not- 返回:
- Is inside or not
-
draw
public void draw(java.awt.Graphics2D g, java.awt.geom.Rectangle2D area)Draw plot
-
getTightInset
public Margin getTightInset(java.awt.Graphics2D g, java.awt.geom.Rectangle2D positionArea)
Get tight inset area- 指定者:
getTightInset在类中Plot- 参数:
g- Graphics2DpositionArea- Position area- 返回:
- Tight inset area
-
getTightInsetArea
public java.awt.geom.Rectangle2D getTightInsetArea(java.awt.Graphics2D g, java.awt.geom.Rectangle2D positionArea)Get tight inset area- 参数:
g- Graphics2DpositionArea- Position area- 返回:
- Tight inset area
-
getPositionArea
public java.awt.geom.Rectangle2D getPositionArea()
Get position area- 覆盖:
getPositionArea在类中Plot- 返回:
- Position area
-
getOuterPositionArea
public java.awt.geom.Rectangle2D getOuterPositionArea(java.awt.geom.Rectangle2D area)
Get outer position area- 指定者:
getOuterPositionArea在类中Plot- 参数:
area- Whole area- 返回:
- Position area
-
getGraphArea
public java.awt.geom.Rectangle2D getGraphArea(java.awt.Graphics2D g, java.awt.geom.Rectangle2D area)Get graphic area- 参数:
g- Graphic2Darea- Whole area- 返回:
- Graphic area
-
projToScreen
public double[] projToScreen(double projX, double projY, java.awt.geom.Rectangle2D area)Convert coordinate from map to screen- 参数:
projX- Map XprojY- Map Yarea- Drawing area- 返回:
- Screen X/Y array
-
projXLength
public double projXLength(double len, java.awt.geom.Rectangle2D area)Convert data length to screen length in x direction- 参数:
len- data lengtharea- Drawing area- 返回:
- Screen length
-
projYLength
public double projYLength(double len, java.awt.geom.Rectangle2D area)Convert data length to screen length in y direction- 参数:
len- data lengtharea- Drawing area- 返回:
- Screen length
-
screenToProj
public double[] screenToProj(double screenX, double screenY, java.awt.geom.Rectangle2D area)Convert coordinate from screen to map- 参数:
screenX- Screen XscreenY- Screen Yarea- Area- 返回:
- Projected X/Y
-
setAutoExtent
public abstract void setAutoExtent()
-
updateLegendScheme
public abstract void updateLegendScheme()
-
zoomToExtentScreen
public void zoomToExtentScreen(double minX, double maxX, double minY, double maxY)Zoom to screen extent- 参数:
minX- Minimum xmaxX- Maximum xminY- Minimum ymaxY- Maximum y
-
addText
public void addText(ChartText text)
Add text- 参数:
text- Chart text
-
-