| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected Color |
background |
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, rowIndex, symbolAntialias, units| 构造器 | 说明 |
|---|---|
AbstractPlot2D() |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addLegend(ChartLegend legend) |
Add a legend
|
void |
addText(ChartText text) |
Add text
|
void |
draw(Graphics2D g,
Rectangle2D area) |
Draw plot
|
double |
getAspect() |
Get aspect - scaling from data to plot units for x and y
|
Axis |
getAxis(Location loc) |
Get axis
|
Color |
getBackground() |
Get background
|
Extent |
getDrawExtent() |
Get draw extent
|
Extent |
getExtent() |
Get extent
|
Rectangle2D |
getGraphArea(Graphics2D g,
Rectangle2D area) |
Get graphic area
|
GridLine |
getGridLine() |
Get grid line
|
ChartText |
getLeftTitle() |
Get left sub title
|
ChartLegend |
getLegend() |
Get chart legend
|
ChartLegend |
getLegend(int idx) |
Get chart legend
|
List<ChartLegend> |
getLegends() |
Get legends
|
Rectangle2D |
getOuterPositionArea(Rectangle2D area) |
Get outer position area
|
PlotOrientation |
getPlotOrientation() |
Get plot orientation
|
PlotType |
getPlotType() |
Get plot type
|
Rectangle2D |
getPositionArea() |
Get position area
|
ChartText |
getRightTitle() |
Get right sub title
|
Color |
getSelectedColor() |
Get selected color
|
List<ChartText> |
getTexts() |
Get texts
|
Margin |
getTightInset(Graphics2D g,
Rectangle2D positionArea) |
Get tight inset area
|
Rectangle2D |
getTightInsetArea(Graphics2D g,
Rectangle2D positionArea) |
Get tight inset area
|
ChartText |
getTitle() |
Get title
|
ChartWindArrow |
getWindArrow() |
Get wind arrow
|
Axis |
getXAxis() |
Get bottom x axis
|
Location |
getXAxisLocation() |
Get x axis location
|
Axis |
getYAxis() |
Get left y axis
|
Location |
getYAxisLocation() |
Get y axis location
|
boolean |
isAutoAspect() |
Get is auto aspect or not
|
boolean |
isDrawNeatLine() |
Get if draw neat line
|
boolean |
isDrawRightAxis() |
get if draw right axis
|
boolean |
isDrawTopAxis() |
get if draw top axis
|
boolean |
isInsideTick() |
Get is inside tick line or not
|
boolean |
isLogX() |
Get x axis is log or not
|
boolean |
isLogY() |
Get y axis is log or not
|
boolean |
isXReverse() |
Get if x axis is reverse or not
|
boolean |
isYReverse() |
Get if y axis is reverse or not
|
double[] |
projToScreen(double projX,
double projY,
Rectangle2D area) |
Convert coordinate from map to screen
|
double |
projXLength(double len,
Rectangle2D area) |
Convert data length to screen length in x direction
|
double |
projYLength(double len,
Rectangle2D area) |
Convert data length to screen length in y direction
|
void |
removeLegend(int idx) |
Remove a legend by index
|
void |
removeLegend(ChartLegend legend) |
Remove a legend
|
double[] |
screenToProj(double screenX,
double screenY,
Rectangle2D area) |
Convert coordinate from screen to map
|
void |
setAspect(double value) |
Set aspect
|
void |
setAutoAspect(boolean value) |
Set is auto aspect or not
|
abstract void |
setAutoExtent() |
|
void |
setAxis(Axis axis,
Location loc) |
Set axis
|
void |
setAxisLabelFont(Font font) |
Set axis label font
|
void |
setAxisOn(boolean value) |
Set all axis visible or not
|
void |
setBackground(Color value) |
Set background
|
void |
setDrawExtent(Extent extent) |
Set draw extent
|
void |
setDrawExtent1(Extent extent) |
Set draw extent
|
void |
setDrawLegend(boolean value) |
Set if draw legend
|
void |
setDrawNeatLine(boolean value) |
Set if draw neat line
|
void |
setDrawRightAxis(boolean value) |
Set if draw right axis
|
void |
setDrawTopAxis(boolean value) |
Set if draw top right axis
|
void |
setExtent(Extent extent) |
Set extent
|
void |
setInsideTick(boolean isInside) |
Set axis tick line inside box or not
|
void |
setLeftTitle(String text) |
Set left sub title
|
void |
setLeftTitle(ChartText value) |
Set left sub title
|
void |
setLegend(ChartLegend value) |
Set chart legend
|
void |
setLegends(List<ChartLegend> value) |
Set legends
|
void |
setPlotOrientation(PlotOrientation value) |
Set plot orientation
|
void |
setRightTitle(String text) |
Set right sub title
|
void |
setRightTitle(ChartText value) |
Set right sub title
|
void |
setSelectedColor(Color value) |
Set selected color
|
void |
setTexts(List<ChartText> value) |
Set texts
|
void |
setTitle(String text) |
Set title
|
void |
setTitle(ChartText value) |
Set title
|
void |
setWindArrow(ChartWindArrow value) |
Set wind arrow
|
void |
setXAxis(Axis axis) |
Set x axis
|
void |
setXAxisLocation(Location value) |
Set x axis location
|
void |
setYAxis(Axis axis) |
Set y axis
|
void |
setYAxisLocation(Location value) |
Set y axis location
|
void |
updateDrawExtent() |
Update draw extent
|
abstract void |
updateLegendScheme() |
|
void |
zoomToExtentScreen(double minX,
double maxX,
double minY,
double maxY) |
Zoom to screen extent
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataset, 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, updatePostionAreaZoomprotected Color background
public ChartText getTitle()
public void setTitle(ChartText value)
value - Titlepublic void setTitle(String text)
text - Title textpublic Color getSelectedColor()
public void setSelectedColor(Color value)
value - Selected colorpublic ChartText getLeftTitle()
public void setLeftTitle(ChartText value)
value - Left sub titlepublic void setLeftTitle(String text)
text - Title textpublic ChartText getRightTitle()
public void setRightTitle(ChartText value)
value - Right sub titlepublic void setRightTitle(String text)
text - Title textpublic List<ChartLegend> getLegends()
public ChartLegend getLegend(int idx)
idx - Indexpublic ChartLegend getLegend()
public void setLegend(ChartLegend value)
value - Legendpublic void setLegends(List<ChartLegend> value)
value - Legendspublic void setDrawLegend(boolean value)
value - Booleanpublic Extent getDrawExtent()
public void setDrawExtent(Extent extent)
extent - Extentpublic void setDrawExtent1(Extent extent)
extent - Extentpublic Extent getExtent()
public void setExtent(Extent extent)
extent - Extentpublic void updateDrawExtent()
public Color getBackground()
public void setBackground(Color value)
value - Backgroundpublic PlotType getPlotType()
PlotgetPlotType 在类中 Plotpublic Axis getXAxis()
public void setXAxis(Axis axis) throws CloneNotSupportedException
axis - AxisCloneNotSupportedExceptionpublic Axis getYAxis()
public void setYAxis(Axis axis) throws CloneNotSupportedException
axis - AxisCloneNotSupportedExceptionpublic Location getXAxisLocation()
public void setXAxisLocation(Location value)
value - X axis locationpublic Location getYAxisLocation()
public void setYAxisLocation(Location value)
value - Y axis locationpublic PlotOrientation getPlotOrientation()
public void setPlotOrientation(PlotOrientation value)
value - Plot orientationpublic GridLine getGridLine()
public boolean isDrawTopAxis()
public void setDrawTopAxis(boolean value)
value - Booleanpublic boolean isDrawRightAxis()
public void setDrawRightAxis(boolean value)
value - Booleanpublic boolean isDrawNeatLine()
public void setDrawNeatLine(boolean value)
value - Booleanpublic ChartWindArrow getWindArrow()
public void setWindArrow(ChartWindArrow value)
value - Wind arrowpublic boolean isLogX()
public boolean isLogY()
public boolean isAutoAspect()
public void setAutoAspect(boolean value)
value - Booleanpublic double getAspect()
public void setAspect(double value)
value - Aspectpublic boolean isYReverse()
public boolean isXReverse()
public void addLegend(ChartLegend legend)
legend - The legendpublic void removeLegend(ChartLegend legend)
legend - The legendpublic void removeLegend(int idx)
idx - The legend indexpublic void setAxis(Axis axis, Location loc)
axis - The axisloc - Axis locationpublic void setAxisLabelFont(Font font)
font - Fontpublic void setAxisOn(boolean value)
value - Booleanpublic void setInsideTick(boolean isInside)
isInside - Inside box ot notpublic boolean isInsideTick()
public void draw(Graphics2D g, Rectangle2D area)
public Margin getTightInset(Graphics2D g, Rectangle2D positionArea)
getTightInset 在类中 Plotg - Graphics2DpositionArea - Position areapublic Rectangle2D getTightInsetArea(Graphics2D g, Rectangle2D positionArea)
g - Graphics2DpositionArea - Position areapublic Rectangle2D getPositionArea()
getPositionArea 在类中 Plotpublic Rectangle2D getOuterPositionArea(Rectangle2D area)
getOuterPositionArea 在类中 Plotarea - Whole areapublic Rectangle2D getGraphArea(Graphics2D g, Rectangle2D area)
g - Graphic2Darea - Whole areapublic double[] projToScreen(double projX,
double projY,
Rectangle2D area)
projX - Map XprojY - Map Yarea - Drawing areapublic double projXLength(double len,
Rectangle2D area)
len - data lengtharea - Drawing areapublic double projYLength(double len,
Rectangle2D area)
len - data lengtharea - Drawing areapublic double[] screenToProj(double screenX,
double screenY,
Rectangle2D area)
screenX - Screen XscreenY - Screen Yarea - Areapublic abstract void setAutoExtent()
public abstract void updateLegendScheme()
public void zoomToExtentScreen(double minX,
double maxX,
double minY,
double maxY)
minX - Minimum xmaxX - Maximum xminY - Minimum ymaxY - Maximum ypublic void addText(ChartText text)
text - Chart textCopyright © 2019. All rights reserved.