类 Plot
- java.lang.Object
-
- org.meteoinfo.chart.plot.Plot
-
- 直接已知子类:
AbstractPlot2D,CategoryPlot,Plot3D,Plot3DGL
public abstract class Plot extends java.lang.Object- 作者:
- yaqiang
-
-
字段概要
字段 修饰符和类型 字段 说明 intcolumnIndexColumn index as a sub plot.static floatDEFAULT_BACKGROUND_ALPHAThe default background alpha transparency.static java.awt.PaintDEFAULT_BACKGROUND_PAINTThe default background color.static floatDEFAULT_FOREGROUND_ALPHAThe default foreground alpha transparency.static java.awt.ShapeDEFAULT_LEGEND_ITEM_BOXA default box shape for legend items.static java.awt.ShapeDEFAULT_LEGEND_ITEM_CIRCLEA default circle shape for legend items.static java.awt.PaintDEFAULT_OUTLINE_PAINTThe default outline color.static java.awt.StrokeDEFAULT_OUTLINE_STROKEThe default outline stroke.booleanisSubPlotIf is sub plot.static intMINIMUM_HEIGHT_TO_DRAWThe minimum height at which the plot should be drawn.static intMINIMUM_WIDTH_TO_DRAWThe minimum width at which the plot should be drawn.protected java.awt.geom.Rectangle2DouterPositionprotected java.awt.geom.Rectangle2Dpositionprotected java.awt.geom.Rectangle2DpositionAreaintrowIndexRow index as a sub plot.protected booleansymbolAntialiasprotected AxesUnitsunits
-
构造器概要
构造器 构造器 说明 Plot()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract voiddraw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)Draw graphicsabstract DatasetgetDataset()Get datasetjava.awt.geom.Rectangle2DgetGraphArea()Get graph areajava.awt.geom.Rectangle2DgetOuterPosition()Get outer positionjava.awt.geom.Rectangle2DgetOuterPositionArea()Get outer position areaabstract java.awt.geom.Rectangle2DgetOuterPositionArea(java.awt.geom.Rectangle2D area)Get outer position areaMargingetPlotShrink()Get plot shrinkabstract PlotTypegetPlotType()Get plot typejava.awt.geom.Rectangle2DgetPosition()Get positionjava.awt.geom.Rectangle2DgetPositionArea()Get position areajava.awt.geom.Rectangle2DgetPositionArea(double zoom)Get position areajava.awt.geom.Rectangle2DgetPositionArea(java.awt.geom.Rectangle2D area)Get position areadoublegetPositionAreaZoom()Get position area zoomMargingetTightInset()Get tight insetabstract MargingetTightInset(java.awt.Graphics2D g, java.awt.geom.Rectangle2D positionArea)Get tight insetAxesUnitsgetUnits()Get unitsbooleanisOuterPosActive()Get if Outer position activebooleanisSameShrink()Get if same shrinkbooleanisSymbolAntialias()Get symbol antialiasabstract voidsetDataset(Dataset dataset)Set datasetvoidsetGraphArea(java.awt.geom.Rectangle2D value)Set graph areavoidsetOuterPosActive(boolean value)Set outer position active or notvoidsetOuterPosition(double xmin, double ymin, double width, double height)Set outer positionvoidsetOuterPosition(java.awt.geom.Rectangle2D value)Set outer postionvoidsetOuterPosition(java.util.List<java.lang.Number> pos)Set outer positionvoidsetOuterPositionArea(java.awt.geom.Rectangle2D value)Set outer position areavoidsetPlotShrink(Margin shrink)Set plot shrinkvoidsetPosition(double xmin, double ymin, double width, double height)Set positionvoidsetPosition(java.awt.geom.Rectangle2D value)Set positionvoidsetPosition(java.util.List<java.lang.Number> pos)Set positionvoidsetPositionArea(java.awt.geom.Rectangle2D value)Set position areavoidsetPositionAreaZoom(double value)Set position area zoomvoidsetSameShrink(boolean value)Set if same shrinkvoidsetSymbolAntialias(boolean value)Set symbol antialiasvoidsetTightInset(Margin value)Set tight insetvoidsetUnits(java.lang.String value)Set unitsvoidsetUnits(AxesUnits value)Set unitsvoidupdatePosition(java.awt.geom.Rectangle2D figureArea)Update positionvoidupdatePosition(java.awt.geom.Rectangle2D figureArea, java.awt.geom.Rectangle2D outerArea)Update positionvoidupdatePositionArea()Update position areadoubleupdatePostionAreaZoom()Update position area zoom
-
-
-
字段详细资料
-
DEFAULT_OUTLINE_STROKE
public static final java.awt.Stroke DEFAULT_OUTLINE_STROKE
The default outline stroke.
-
DEFAULT_OUTLINE_PAINT
public static final java.awt.Paint DEFAULT_OUTLINE_PAINT
The default outline color.
-
DEFAULT_FOREGROUND_ALPHA
public static final float DEFAULT_FOREGROUND_ALPHA
The default foreground alpha transparency.- 另请参阅:
- 常量字段值
-
DEFAULT_BACKGROUND_ALPHA
public static final float DEFAULT_BACKGROUND_ALPHA
The default background alpha transparency.- 另请参阅:
- 常量字段值
-
DEFAULT_BACKGROUND_PAINT
public static final java.awt.Paint DEFAULT_BACKGROUND_PAINT
The default background color.
-
MINIMUM_WIDTH_TO_DRAW
public static final int MINIMUM_WIDTH_TO_DRAW
The minimum width at which the plot should be drawn.- 另请参阅:
- 常量字段值
-
MINIMUM_HEIGHT_TO_DRAW
public static final int MINIMUM_HEIGHT_TO_DRAW
The minimum height at which the plot should be drawn.- 另请参阅:
- 常量字段值
-
DEFAULT_LEGEND_ITEM_BOX
public static final java.awt.Shape DEFAULT_LEGEND_ITEM_BOX
A default box shape for legend items.
-
DEFAULT_LEGEND_ITEM_CIRCLE
public static final java.awt.Shape DEFAULT_LEGEND_ITEM_CIRCLE
A default circle shape for legend items.
-
position
protected java.awt.geom.Rectangle2D position
-
outerPosition
protected java.awt.geom.Rectangle2D outerPosition
-
isSubPlot
public boolean isSubPlot
If is sub plot.
-
columnIndex
public int columnIndex
Column index as a sub plot.
-
rowIndex
public int rowIndex
Row index as a sub plot.
-
units
protected AxesUnits units
-
symbolAntialias
protected boolean symbolAntialias
-
positionArea
protected java.awt.geom.Rectangle2D positionArea
-
-
方法详细资料
-
getUnits
public AxesUnits getUnits()
Get units- 返回:
- Units
-
setUnits
public void setUnits(AxesUnits value)
Set units- 参数:
value- Units
-
setUnits
public void setUnits(java.lang.String value)
Set units- 参数:
value- Units
-
isOuterPosActive
public boolean isOuterPosActive()
Get if Outer position active- 返回:
- Boolean
-
setOuterPosActive
public void setOuterPosActive(boolean value)
Set outer position active or not- 参数:
value- Boolean
-
isSameShrink
public boolean isSameShrink()
Get if same shrink- 返回:
- Boolean
-
setSameShrink
public void setSameShrink(boolean value)
Set if same shrink- 参数:
value- Boolean
-
getPosition
public java.awt.geom.Rectangle2D getPosition()
Get position- 返回:
- Position
-
setPosition
public void setPosition(java.awt.geom.Rectangle2D value)
Set position- 参数:
value- Position
-
setPosition
public void setPosition(double xmin, double ymin, double width, double height)Set position- 参数:
xmin- Minimum xymin- Minimum ywidth- Widthheight- Height
-
setPosition
public void setPosition(java.util.List<java.lang.Number> pos)
Set position- 参数:
pos- Position list
-
updatePosition
public void updatePosition(java.awt.geom.Rectangle2D figureArea, java.awt.geom.Rectangle2D outerArea)Update position- 参数:
figureArea- Figure areaouterArea- Outer position area
-
updatePosition
public void updatePosition(java.awt.geom.Rectangle2D figureArea)
Update position- 参数:
figureArea- Figure areaa
-
getTightInset
public Margin getTightInset()
Get tight inset- 返回:
- Tight inset
-
setTightInset
public void setTightInset(Margin value)
Set tight inset- 参数:
value- Tight inset
-
getOuterPosition
public java.awt.geom.Rectangle2D getOuterPosition()
Get outer position- 返回:
- Outer position
-
setOuterPosition
public void setOuterPosition(java.awt.geom.Rectangle2D value)
Set outer postion- 参数:
value- Outer position
-
setOuterPosition
public void setOuterPosition(double xmin, double ymin, double width, double height)Set outer position- 参数:
xmin- Minimum xymin- Minimum ywidth- Widthheight- Height
-
setOuterPosition
public void setOuterPosition(java.util.List<java.lang.Number> pos)
Set outer position- 参数:
pos- Outer position list
-
getOuterPositionArea
public java.awt.geom.Rectangle2D getOuterPositionArea()
Get outer position area- 返回:
- Outer positoin area
-
getOuterPositionArea
public abstract java.awt.geom.Rectangle2D getOuterPositionArea(java.awt.geom.Rectangle2D area)
Get outer position area- 参数:
area- Whole area- 返回:
- Outer position area
-
setOuterPositionArea
public void setOuterPositionArea(java.awt.geom.Rectangle2D value)
Set outer position area- 参数:
value- Outer position area
-
getDataset
public abstract Dataset getDataset()
Get dataset- 返回:
- Dataset
-
setDataset
public abstract void setDataset(Dataset dataset)
Set dataset- 参数:
dataset- Dataset
-
getPlotType
public abstract PlotType getPlotType()
Get plot type- 返回:
- Plot type
-
isSymbolAntialias
public boolean isSymbolAntialias()
Get symbol antialias- 返回:
- Boolean
-
setSymbolAntialias
public void setSymbolAntialias(boolean value)
Set symbol antialias- 参数:
value- Boolean
-
draw
public abstract void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)Draw graphics- 参数:
g2- Graphics2Darea- Graphics area
-
getPositionArea
public java.awt.geom.Rectangle2D getPositionArea()
Get position area- 返回:
- position area
-
getPositionArea
public java.awt.geom.Rectangle2D getPositionArea(double zoom)
Get position area- 参数:
zoom- Zoom- 返回:
- Position area
-
setPositionArea
public void setPositionArea(java.awt.geom.Rectangle2D value)
Set position area- 参数:
value- Position area
-
getGraphArea
public java.awt.geom.Rectangle2D getGraphArea()
Get graph area- 返回:
- Graph area
-
setGraphArea
public void setGraphArea(java.awt.geom.Rectangle2D value)
Set graph area- 参数:
value- Graph area
-
getPositionArea
public java.awt.geom.Rectangle2D getPositionArea(java.awt.geom.Rectangle2D area)
Get position area- 参数:
area- Figure area- 返回:
- Position area
-
getTightInset
public abstract Margin getTightInset(java.awt.Graphics2D g, java.awt.geom.Rectangle2D positionArea)
Get tight inset- 参数:
g- Graphics2DpositionArea- Position area- 返回:
- Tight inset margin
-
getPositionAreaZoom
public double getPositionAreaZoom()
Get position area zoom- 返回:
- Position area zoom
-
setPositionAreaZoom
public void setPositionAreaZoom(double value)
Set position area zoom- 参数:
value- Position area zoom
-
getPlotShrink
public Margin getPlotShrink()
Get plot shrink- 返回:
- Plot shrink
-
setPlotShrink
public void setPlotShrink(Margin shrink)
Set plot shrink- 参数:
shrink- Shrink
-
updatePostionAreaZoom
public double updatePostionAreaZoom()
Update position area zoom- 返回:
- Position area zoom
-
updatePositionArea
public void updatePositionArea()
Update position area
-
-