CloneableChartText3Dpublic class ChartText extends Shape
| 构造器 | 说明 |
|---|---|
ChartText() |
Constructor
|
ChartText(String text) |
Constructor
|
ChartText(String text,
Font font) |
Constructor
|
ChartText(List<String> text) |
Constructor
|
ChartText(List<String> text,
Font font) |
Constructor
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addText(String value) |
Add text in new line
|
Object |
clone() |
Clone
|
void |
draw(Graphics2D g,
float x,
float y) |
Draw text
|
float |
getAngle() |
Get angle
|
Color |
getBackground() |
Get background color
|
Color |
getColor() |
Get title color
|
CoordinateType |
getCoordinates() |
Get coordinates
|
Dimension |
getDimension(Graphics2D g) |
Get text dimension
|
Font |
getFont() |
Get font
|
float |
getGap() |
Get gap
|
int |
getLineNum() |
Get text line number
|
int |
getLineSpace() |
Get line space
|
Color |
getNeatlineColor() |
Get neatline color
|
float |
getNeatlineSize() |
Get neatline size
|
ShapeTypes |
getShapeType() |
Get shape type
|
String |
getText() |
Get text
|
List<String> |
getTexts() |
Get texts
|
Dimension |
getTrueDimension(Graphics2D g) |
Get text dimension with angle
|
double |
getX() |
Get x
|
XAlign |
getXAlign() |
Get x align
|
double |
getY() |
Get y
|
YAlign |
getYAlign() |
Get y align
|
boolean |
isDrawNeatline() |
Get draw neatline or not
|
boolean |
isFill() |
Get if is fill background
|
boolean |
isUseExternalFont() |
Get if use external font - only for LaTeX string
|
void |
setAngle(float value) |
Set angle
|
void |
setBackground(Color value) |
Set background color
|
void |
setColor(Color value) |
Set title color
|
void |
setCoordinates(String value) |
Set coordinates
|
void |
setCoordinates(CoordinateType value) |
Set coordinates
|
void |
setDrawNeatline(boolean value) |
Set draw neatline or not
|
void |
setFill(boolean value) |
Set fill background or not
|
void |
setFont(Font value) |
Set font
|
void |
setGap(float value) |
Set gap
|
void |
setLineSpace(int value) |
Set line space
|
void |
setNeatlineColor(Color value) |
Set neatline color
|
void |
setNeatlineSize(float value) |
Set neatline size
|
void |
setPoint(double x,
double y) |
Set point
|
void |
setText(String value) |
Set text
|
void |
setTexts(List<String> value) |
Set texts
|
void |
setUseExternalFont(boolean value) |
Set if use external font - only for LaTeX string
|
void |
setX(double value) |
Set x
|
void |
setXAlign(String value) |
Set x align
|
void |
setXAlign(XAlign value) |
Set x align
|
void |
setY(double value) |
Set y
|
void |
setYAlign(String value) |
Set y align
|
void |
setYAlign(YAlign value) |
Set y align
|
org.locationtech.jts.geom.Geometry |
toGeometry(org.locationtech.jts.geom.GeometryFactory factory) |
To geometry method
|
String |
toString() |
To string
|
addVertice, buffer, cloneValue, contains, convexHull, coveredBy, covers, crosses, difference, disjoint, equals, geometry2Shape, getExtent, getLegendIndex, getPoints, getValue, intersection, intersects, isEditing, isSelected, isVisible, move, moveVertice, overlaps, reform, removeVerice, reverse, setEditing, setExtent, setLegendIndex, setPoints, setSelected, setValue, setVisible, split, symDifference, toGeometry, touches, union, withinpublic ChartText()
public ChartText(String text)
text - Textpublic String getText()
public void setText(String value)
value - Textpublic Font getFont()
public void setFont(Font value)
value - Fontpublic Color getColor()
public void setColor(Color value)
value - Title colorpublic double getX()
public void setX(double value)
value - Xpublic double getY()
public void setY(double value)
value - Ypublic int getLineSpace()
public void setLineSpace(int value)
value - Line spacepublic CoordinateType getCoordinates()
public void setCoordinates(CoordinateType value)
value - Coordinatespublic void setCoordinates(String value)
value - Coordinatespublic Color getBackground()
public void setBackground(Color value)
value - Background colorpublic boolean isFill()
public void setFill(boolean value)
value - Booleanpublic boolean isDrawNeatline()
public void setDrawNeatline(boolean value)
value - Booleanpublic Color getNeatlineColor()
public void setNeatlineColor(Color value)
value - Neatline colorpublic float getNeatlineSize()
public void setNeatlineSize(float value)
value - Neatline sizepublic float getGap()
public void setGap(float value)
value - Gappublic float getAngle()
public void setAngle(float value)
value - Anglepublic XAlign getXAlign()
public void setXAlign(XAlign value)
value - X alignpublic void setXAlign(String value)
value - X align stringpublic YAlign getYAlign()
public void setYAlign(YAlign value)
value - Y alignpublic void setYAlign(String value)
value - Y align stringpublic boolean isUseExternalFont()
public void setUseExternalFont(boolean value)
value - Booleanpublic void addText(String value)
value - The text stringpublic ShapeTypes getShapeType()
ShapegetShapeType 在类中 Shapepublic int getLineNum()
public Dimension getTrueDimension(Graphics2D g)
g - Graphics2Dpublic Dimension getDimension(Graphics2D g)
g - Graphics2Dpublic org.locationtech.jts.geom.Geometry toGeometry(org.locationtech.jts.geom.GeometryFactory factory)
toGeometry 在类中 Shapefactory - GeometryFactorypublic void setPoint(double x,
double y)
x - Xy - Ypublic void draw(Graphics2D g, float x, float y)
g - Graphics2Dx - Xy - YCopyright © 2019. All rights reserved.