AbstractPlot2D, CategoryPlot, Plot3Dpublic abstract class Plot extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
int |
columnIndex |
Column index as a sub plot.
|
static float |
DEFAULT_BACKGROUND_ALPHA |
The default background alpha transparency.
|
static Paint |
DEFAULT_BACKGROUND_PAINT |
The default background color.
|
static float |
DEFAULT_FOREGROUND_ALPHA |
The default foreground alpha transparency.
|
static Shape |
DEFAULT_LEGEND_ITEM_BOX |
A default box shape for legend items.
|
static Shape |
DEFAULT_LEGEND_ITEM_CIRCLE |
A default circle shape for legend items.
|
static Paint |
DEFAULT_OUTLINE_PAINT |
The default outline color.
|
static Stroke |
DEFAULT_OUTLINE_STROKE |
The default outline stroke.
|
boolean |
isSubPlot |
If is sub plot.
|
static int |
MINIMUM_HEIGHT_TO_DRAW |
The minimum height at which the plot should be drawn.
|
static int |
MINIMUM_WIDTH_TO_DRAW |
The minimum width at which the plot should be drawn.
|
protected Rectangle2D |
outerPosition |
|
protected Rectangle2D |
position |
|
int |
rowIndex |
Row index as a sub plot.
|
protected boolean |
symbolAntialias |
|
protected AxesUnits |
units |
| 构造器 | 说明 |
|---|---|
Plot() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
abstract void |
draw(Graphics2D g2,
Rectangle2D area) |
Draw graphics
|
abstract Dataset |
getDataset() |
Get dataset
|
Rectangle2D |
getGraphArea() |
Get graph area
|
Rectangle2D |
getOuterPosition() |
Get outer position
|
Rectangle2D |
getOuterPositionArea() |
Get outer position area
|
abstract Rectangle2D |
getOuterPositionArea(Rectangle2D area) |
Get outer position area
|
Margin |
getPlotShrink() |
Get plot shrink
|
abstract PlotType |
getPlotType() |
Get plot type
|
Rectangle2D |
getPosition() |
Get position
|
Rectangle2D |
getPositionArea() |
Get position area
|
Rectangle2D |
getPositionArea(double zoom) |
Get position area
|
Rectangle2D |
getPositionArea(Rectangle2D area) |
Get position area
|
double |
getPositionAreaZoom() |
Get position area zoom
|
Margin |
getTightInset() |
Get tight inset
|
abstract Margin |
getTightInset(Graphics2D g,
Rectangle2D positionArea) |
Get tight inset
|
AxesUnits |
getUnits() |
Get units
|
boolean |
isOuterPosActive() |
Get if Outer position active
|
boolean |
isSameShrink() |
Get if same shrink
|
boolean |
isSymbolAntialias() |
Get symbol antialias
|
abstract void |
setDataset(Dataset dataset) |
Set dataset
|
void |
setGraphArea(Rectangle2D value) |
Set graph area
|
void |
setOuterPosActive(boolean value) |
Set outer position active or not
|
void |
setOuterPosition(double xmin,
double ymin,
double width,
double height) |
Set outer position
|
void |
setOuterPosition(Rectangle2D value) |
Set outer postion
|
void |
setOuterPosition(List<Number> pos) |
Set outer position
|
void |
setOuterPositionArea(Rectangle2D value) |
Set outer position area
|
void |
setPlotShrink(Margin shrink) |
Set plot shrink
|
void |
setPosition(double xmin,
double ymin,
double width,
double height) |
Set position
|
void |
setPosition(Rectangle2D value) |
Set position
|
void |
setPosition(List<Number> pos) |
Set position
|
void |
setPositionArea(Rectangle2D value) |
Set position area
|
void |
setPositionAreaZoom(double value) |
Set position area zoom
|
void |
setSameShrink(boolean value) |
Set if same shrink
|
void |
setSymbolAntialias(boolean value) |
Set symbol antialias
|
void |
setTightInset(Margin value) |
Set tight inset
|
void |
setUnits(String value) |
Set units
|
void |
setUnits(AxesUnits value) |
Set units
|
void |
updatePosition(Rectangle2D figureArea) |
Update position
|
void |
updatePosition(Rectangle2D figureArea,
Rectangle2D outerArea) |
Update position
|
void |
updatePositionArea() |
Update position area
|
double |
updatePostionAreaZoom() |
Update position area zoom
|
public static final Stroke DEFAULT_OUTLINE_STROKE
public static final Paint DEFAULT_OUTLINE_PAINT
public static final float DEFAULT_FOREGROUND_ALPHA
public static final float DEFAULT_BACKGROUND_ALPHA
public static final Paint DEFAULT_BACKGROUND_PAINT
public static final int MINIMUM_WIDTH_TO_DRAW
public static final int MINIMUM_HEIGHT_TO_DRAW
public static final Shape DEFAULT_LEGEND_ITEM_BOX
public static final Shape DEFAULT_LEGEND_ITEM_CIRCLE
protected Rectangle2D position
protected Rectangle2D outerPosition
public boolean isSubPlot
public int columnIndex
public int rowIndex
protected AxesUnits units
protected boolean symbolAntialias
public AxesUnits getUnits()
public void setUnits(AxesUnits value)
value - Unitspublic void setUnits(String value)
value - Unitspublic boolean isOuterPosActive()
public void setOuterPosActive(boolean value)
value - Booleanpublic boolean isSameShrink()
public void setSameShrink(boolean value)
value - Booleanpublic Rectangle2D getPosition()
public void setPosition(Rectangle2D value)
value - Positionpublic void setPosition(double xmin,
double ymin,
double width,
double height)
xmin - Minimum xymin - Minimum ywidth - Widthheight - Heightpublic void updatePosition(Rectangle2D figureArea, Rectangle2D outerArea)
figureArea - Figure areaouterArea - Outer position areapublic void updatePosition(Rectangle2D figureArea)
figureArea - Figure areaapublic Margin getTightInset()
public void setTightInset(Margin value)
value - Tight insetpublic Rectangle2D getOuterPosition()
public void setOuterPosition(Rectangle2D value)
value - Outer positionpublic void setOuterPosition(double xmin,
double ymin,
double width,
double height)
xmin - Minimum xymin - Minimum ywidth - Widthheight - Heightpublic void setOuterPosition(List<Number> pos)
pos - Outer position listpublic Rectangle2D getOuterPositionArea()
public abstract Rectangle2D getOuterPositionArea(Rectangle2D area)
area - Whole areapublic void setOuterPositionArea(Rectangle2D value)
value - Outer position areapublic abstract Dataset getDataset()
public abstract void setDataset(Dataset dataset)
dataset - Datasetpublic abstract PlotType getPlotType()
public boolean isSymbolAntialias()
public void setSymbolAntialias(boolean value)
value - Booleanpublic abstract void draw(Graphics2D g2, Rectangle2D area)
g2 - Graphics2Darea - Graphics areapublic Rectangle2D getPositionArea()
public Rectangle2D getPositionArea(double zoom)
zoom - Zoompublic void setPositionArea(Rectangle2D value)
value - Position areapublic Rectangle2D getGraphArea()
public void setGraphArea(Rectangle2D value)
value - Graph areapublic Rectangle2D getPositionArea(Rectangle2D area)
area - Figure areapublic abstract Margin getTightInset(Graphics2D g, Rectangle2D positionArea)
g - Graphics2DpositionArea - Position areapublic double getPositionAreaZoom()
public void setPositionAreaZoom(double value)
value - Position area zoompublic Margin getPlotShrink()
public void setPlotShrink(Margin shrink)
shrink - Shrinkpublic double updatePostionAreaZoom()
public void updatePositionArea()
Copyright © 2019. All rights reserved.