public class IText extends IGeometry
| Modifier and Type | Field and Description |
|---|---|
static double |
defaultTextSize |
java.awt.Font |
font |
ITextGeo |
text |
| Constructor and Description |
|---|
IText(IServerI s,
IText text) |
IText(IServerI s,
java.lang.String str,
double fontSize,
double x,
double y,
double z) |
IText(IServerI s,
java.lang.String str,
double fontSize,
double x,
double y,
double z,
double textDirX,
double textDirY,
double textDirZ) |
IText(IServerI s,
java.lang.String str,
double fontSize,
double x,
double y,
double z,
double textDirX,
double textDirY,
double textDirZ,
double textUpDirX,
double textUpDirY,
double textUpDirZ) |
IText(IServerI s,
java.lang.String str,
double fontSize,
IVecI pos) |
IText(IServerI s,
java.lang.String str,
double fontSize,
IVecI pos,
IVecI textDir) |
IText(IServerI s,
java.lang.String str,
double fontSize,
IVecI pos,
IVecI textDir,
IVecI textUpDir) |
IText(IServerI s,
java.lang.String str,
IVecI pos,
IVecI uvec,
IVecI vvec) |
IText(IText text) |
IText(java.lang.String str,
double fontSize,
double x,
double y,
double z) |
IText(java.lang.String str,
double fontSize,
double x,
double y,
double z,
double textDirX,
double textDirY,
double textDirZ) |
IText(java.lang.String str,
double fontSize,
double x,
double y,
double z,
double textDirX,
double textDirY,
double textDirZ,
double textUpDirX,
double textUpDirY,
double textUpDirZ) |
IText(java.lang.String str,
double fontSize,
IVecI pos) |
IText(java.lang.String str,
double fontSize,
IVecI pos,
IVecI textDir) |
IText(java.lang.String str,
double fontSize,
IVecI pos,
IVecI textDir,
IVecI textUpDir) |
IText(java.lang.String str,
IVecI pos,
IVecI uvec,
IVecI vvec) |
| Modifier and Type | Method and Description |
|---|---|
IText |
add(double x,
double y,
double z)
ITransformable API
|
IText |
add(double f,
IVecI v)
scale add alias
|
IText |
add(IDoubleI x,
IDoubleI y,
IDoubleI z) |
IText |
add(IDoubleI f,
IVecI v)
scale add alias
|
IText |
add(IVecI v) |
IText |
add(IVecI v,
double f)
scale add
|
IText |
add(IVecI v,
IDoubleI f)
scale add
|
IText |
alignBottom() |
IText |
alignCenter() |
IText |
alignLeft() |
IText |
alignMiddle() |
IText |
alignRight() |
IText |
alignTop() |
IText |
attr(IAttribute at)
set attributes
|
IVec |
center()
returns center of geometry object
|
IText |
clr(java.awt.Color c) |
IText |
clr(java.awt.Color c,
double alpha) |
IText |
clr(java.awt.Color c,
float alpha) |
IText |
clr(java.awt.Color c,
int alpha) |
IText |
clr(double dgray) |
IText |
clr(double dgray,
double dalpha) |
IText |
clr(double dr,
double dg,
double db) |
IText |
clr(double dr,
double dg,
double db,
double da) |
IText |
clr(float fgray) |
IText |
clr(float fgray,
float falpha) |
IText |
clr(float fr,
float fg,
float fb) |
IText |
clr(float fr,
float fg,
float fb,
float fa) |
IText |
clr(IColor c)
to set an object color
|
IText |
clr(IColor c,
double alpha)
to set color, with alpha value overwritten
|
IText |
clr(IColor c,
float alpha)
to set color, with alpha value overwritten
|
IText |
clr(IColor c,
int alpha)
to set color, with alpha value overwritten
|
IText |
clr(int gray) |
IText |
clr(int gray,
int alpha) |
IText |
clr(int r,
int g,
int b) |
IText |
clr(int r,
int g,
int b,
int a) |
IText |
clr(IObject o)
to set the same color with the object
|
IVec |
corner(int i,
int j) |
IText |
cp()
alias of dup()
|
IText |
cp(double x,
double y,
double z)
cp() is alias of dup().add()
|
IText |
cp(IDoubleI x,
IDoubleI y,
IDoubleI z) |
IText |
cp(IVecI v) |
IGraphicObject |
createGraphic(igeo.gui.IGraphicMode m) |
IText |
div(double v) |
IText |
div(IDoubleI v) |
IText |
dup()
duplicate object
|
IText |
flip()
alias of neg
|
java.awt.Font |
font() |
IText |
font(java.awt.Font f) |
IText |
font(processing.core.PFont f) |
IText |
font(java.lang.String fontName) |
IText |
font(java.lang.String fontName,
int fontStyle) |
IText |
font(java.lang.String fontName,
int fontStyle,
int fontPixelResolution) |
IText |
hide() |
IText |
hsb(double dh,
double ds,
double db) |
IText |
hsb(double dh,
double ds,
double db,
double da) |
IText |
hsb(float h,
float s,
float b) |
IText |
hsb(float h,
float s,
float b,
float a) |
void |
initText(IServerI s) |
boolean |
isAlignBottom() |
boolean |
isAlignCenter() |
boolean |
isAlignLeft() |
boolean |
isAlignMiddle() |
boolean |
isAlignRight() |
boolean |
isAlignTop() |
IText |
layer(ILayer l)
Set layer by ILayer object
|
IText |
layer(java.lang.String layerName)
Set layer by layer name.
|
IText |
mirror(IVecI planeDir)
mirror is alias of ref
|
IText |
mirror(IVecI center,
IVecI planeDir) |
IText |
mul(double v) |
IText |
mul(IDoubleI v) |
IText |
mv(double x,
double y,
double z)
mv() is alias of add()
|
IText |
mv(IDoubleI x,
IDoubleI y,
IDoubleI z) |
IText |
mv(IVecI v) |
IText |
neg() |
IVec |
pos() |
IText |
pos(IVecI v) |
IText |
ref(IVecI planeDir)
reflect(mirror) 3 dimensionally to the other side of the plane
|
IText |
ref(IVecI center,
IVecI planeDir) |
IText |
rev()
alias of neg
|
IText |
rot(double angle) |
IText |
rot(IDoubleI angle)
rotation around z-axis and origin
|
IText |
rot(IVecI axis,
double angle) |
IText |
rot(IVecI axis,
IDoubleI angle)
rotation around axis vector
|
IText |
rot(IVecI axis,
IVecI destDir)
rotate to destination direction vector
|
IText |
rot(IVecI center,
IVecI axis,
double angle) |
IText |
rot(IVecI center,
IVecI axis,
IDoubleI angle)
rotation around axis vector and center
|
IText |
rot(IVecI center,
IVecI axis,
IVecI destPt)
rotate to destination point location
|
IText |
rot2(double angle)
rotation on xy-plane around origin; same with rot(double)
|
IText |
rot2(IDoubleI angle)
rotation on xy-plane around origin; same with rot(IDoubleI)
|
IText |
rot2(IVecI destDir)
rotation on xy-plane to destination direction vector
|
IText |
rot2(IVecI center,
double angle) |
IText |
rot2(IVecI center,
IDoubleI angle)
rotation on xy-plane around center
|
IText |
rot2(IVecI center,
IVecI destPt)
rotation on xy-plane to destination point location
|
IText |
scale(double f) |
IText |
scale(IDoubleI f)
alias of mul
|
IText |
scale(IVecI center,
double f) |
IText |
scale(IVecI center,
IDoubleI f) |
IText |
scale1d(IVecI axis,
double f)
scale only in 1 direction
|
IText |
scale1d(IVecI axis,
IDoubleI f) |
IText |
scale1d(IVecI center,
IVecI axis,
double f) |
IText |
scale1d(IVecI center,
IVecI axis,
IDoubleI f) |
IText |
setColor(java.awt.Color c) |
IText |
setColor(java.awt.Color c,
int alpha) |
IText |
setColor(double dgray) |
IText |
setColor(double dgray,
double dalpha) |
IText |
setColor(double dr,
double dg,
double db) |
IText |
setColor(double dr,
double dg,
double db,
double da) |
IText |
setColor(float fgray) |
IText |
setColor(float fgray,
float falpha) |
IText |
setColor(float fr,
float fg,
float fb) |
IText |
setColor(float fr,
float fg,
float fb,
float fa) |
IText |
setColor(int gray) |
IText |
setColor(int gray,
int alpha) |
IText |
setColor(int r,
int g,
int b) |
IText |
setColor(int r,
int g,
int b,
int a) |
IText |
setHSBColor(double h,
double s,
double b) |
IText |
setHSBColor(double h,
double s,
double b,
double a) |
IText |
setHSBColor(float h,
float s,
float b) |
IText |
setHSBColor(float h,
float s,
float b,
float a) |
IText |
shear(double sxy,
double syx,
double syz,
double szy,
double szx,
double sxz)
shear operation
|
IText |
shear(IDoubleI sxy,
IDoubleI syx,
IDoubleI syz,
IDoubleI szy,
IDoubleI szx,
IDoubleI sxz) |
IText |
shear(IVecI center,
double sxy,
double syx,
double syz,
double szy,
double szx,
double sxz) |
IText |
shear(IVecI center,
IDoubleI sxy,
IDoubleI syx,
IDoubleI syz,
IDoubleI szy,
IDoubleI szx,
IDoubleI sxz) |
IText |
shearXY(double sxy,
double syx) |
IText |
shearXY(IDoubleI sxy,
IDoubleI syx) |
IText |
shearXY(IVecI center,
double sxy,
double syx) |
IText |
shearXY(IVecI center,
IDoubleI sxy,
IDoubleI syx) |
IText |
shearYZ(double syz,
double szy) |
IText |
shearYZ(IDoubleI syz,
IDoubleI szy) |
IText |
shearYZ(IVecI center,
double syz,
double szy) |
IText |
shearYZ(IVecI center,
IDoubleI syz,
IDoubleI szy) |
IText |
shearZX(double szx,
double sxz) |
IText |
shearZX(IDoubleI szx,
IDoubleI sxz) |
IText |
shearZX(IVecI center,
double szx,
double sxz) |
IText |
shearZX(IVecI center,
IDoubleI szx,
IDoubleI sxz) |
IText |
show() |
IText |
sub(double x,
double y,
double z) |
IText |
sub(IDoubleI x,
IDoubleI y,
IDoubleI z) |
IText |
sub(IVecI v) |
java.lang.String |
text() |
IText |
text(java.lang.String txt) |
IText |
transform(IMatrix3I mat) |
IText |
transform(IMatrix4I mat) |
IText |
transform(IVecI xvec,
IVecI yvec,
IVecI zvec) |
IText |
transform(IVecI xvec,
IVecI yvec,
IVecI zvec,
IVecI translate) |
IText |
translate(double x,
double y,
double z)
translate() is alias of add()
|
IText |
translate(IDoubleI x,
IDoubleI y,
IDoubleI z) |
IText |
translate(IVecI v) |
IVec |
uvec() |
IText |
uvec(IVecI v) |
IVec |
vvec() |
IText |
vvec(IVecI v) |
IText |
weight(double w) |
IText |
weight(float w) |
addDynamics, addUserData, addUserData, alpha, alphaInt, attr, attr, awtColor, blue, blueInt, brightness, castStringHashMap, clearDynamics, clearGraphics, clr, defaultAttribute, del, deletDynamics, deleteDynamics, deleteDynamics, deleteGraphic, dynamicsNum, getAWTColor, getColor, getDynamics, getGraphic, getGraphic, getParameter, graphicsNum, gray, grayInt, green, greenInt, grey, greyInt, hue, initGraphic, initObject, isValid, isVisible, layer, name, name, red, redInt, resetGraphic, saturation, server, setColor, setColor, setColor, setColor, setColor, setColor, setParameter, setTexture, syncColor, syncGraphic, syncVisibility, syncWeight, texture, updateGraphic, userData, userData, userData, userDataNum, visible, weightpublic static final double defaultTextSize
public ITextGeo text
public java.awt.Font font
public IText(IServerI s, java.lang.String str, double fontSize, IVecI pos, IVecI textDir, IVecI textUpDir)
public IText(IServerI s, java.lang.String str, IVecI pos, IVecI uvec, IVecI vvec)
uvec - direction of text whose length is font size.vvec - direction of text height whose length is font size.public IText(IServerI s, java.lang.String str, double fontSize, double x, double y, double z, double textDirX, double textDirY, double textDirZ, double textUpDirX, double textUpDirY, double textUpDirZ)
public IText(IServerI s, java.lang.String str, double fontSize, double x, double y, double z, double textDirX, double textDirY, double textDirZ)
public IText(IServerI s, java.lang.String str, double fontSize, double x, double y, double z)
public IText(java.lang.String str,
double fontSize,
IVecI pos,
IVecI textDir,
IVecI textUpDir)
public IText(java.lang.String str,
double fontSize,
IVecI pos)
public IText(java.lang.String str,
IVecI pos,
IVecI uvec,
IVecI vvec)
uvec - direction of text whose length is font size.vvec - direction of text height whose length is font size.public IText(java.lang.String str,
double fontSize,
double x,
double y,
double z,
double textDirX,
double textDirY,
double textDirZ,
double textUpDirX,
double textUpDirY,
double textUpDirZ)
public IText(java.lang.String str,
double fontSize,
double x,
double y,
double z,
double textDirX,
double textDirY,
double textDirZ)
public IText(java.lang.String str,
double fontSize,
double x,
double y,
double z)
public IText(IText text)
public IText dup()
IObjectdup in interface ITransformabledup in class IGeometrypublic IText cp()
cp in interface ITransformablecp in class IGeometrypublic void initText(IServerI s)
public IGraphicObject createGraphic(igeo.gui.IGraphicMode m)
createGraphic in class IObjectpublic IVec corner(int i, int j)
i - 0 is left corner, 1 is right cornerj - 0 is bottom corner, 1 is top cornerpublic java.awt.Font font()
public IText font(java.awt.Font f)
public IText font(processing.core.PFont f)
public IText font(java.lang.String fontName, int fontStyle, int fontPixelResolution)
public IText font(java.lang.String fontName, int fontStyle)
public IText font(java.lang.String fontName)
public IVec pos()
public IVec uvec()
public IVec vvec()
public java.lang.String text()
public IText text(java.lang.String txt)
public IText alignLeft()
public IText alignCenter()
public IText alignRight()
public IText alignTop()
public IText alignMiddle()
public IText alignBottom()
public boolean isAlignLeft()
public boolean isAlignCenter()
public boolean isAlignRight()
public boolean isAlignTop()
public boolean isAlignMiddle()
public boolean isAlignBottom()
public IText layer(java.lang.String layerName)
public IText attr(IAttribute at)
IObjectpublic IText clr(IColor c, int alpha)
IObjectpublic IText clr(IColor c, float alpha)
IObjectpublic IText clr(IColor c, double alpha)
IObjectpublic IText clr(IObject o)
IObjectpublic IText setColor(double dr, double dg, double db)
public IText setColor(float fr, float fg, float fb, float fa)
public IText setColor(double dr, double dg, double db, double da)
public IText setHSBColor(float h, float s, float b, float a)
setHSBColor in class IGeometrypublic IText setHSBColor(double h, double s, double b, double a)
setHSBColor in class IGeometrypublic IText setHSBColor(float h, float s, float b)
setHSBColor in class IGeometrypublic IText setHSBColor(double h, double s, double b)
setHSBColor in class IGeometrypublic IText add(double x, double y, double z)
add in interface ITransformableadd in class IGeometrypublic IText add(IDoubleI x, IDoubleI y, IDoubleI z)
add in interface ITransformableadd in class IGeometrypublic IText add(IVecI v)
add in interface ITransformableadd in class IGeometrypublic IText sub(double x, double y, double z)
sub in interface ITransformablesub in class IGeometrypublic IText sub(IDoubleI x, IDoubleI y, IDoubleI z)
sub in interface ITransformablesub in class IGeometrypublic IText sub(IVecI v)
sub in interface ITransformablesub in class IGeometrypublic IText mul(IDoubleI v)
mul in interface ITransformablemul in class IGeometrypublic IText mul(double v)
mul in interface ITransformablemul in class IGeometrypublic IText div(IDoubleI v)
div in interface ITransformablediv in class IGeometrypublic IText div(double v)
div in interface ITransformablediv in class IGeometrypublic IText neg()
neg in interface ITransformableneg in class IGeometrypublic IText rev()
public IText flip()
flip in interface ITransformableflip in class IGeometrypublic IText add(IVecI v, double f)
add in interface ITransformableadd in class IGeometrypublic IText add(IVecI v, IDoubleI f)
add in interface ITransformableadd in class IGeometrypublic IText add(double f, IVecI v)
add in interface ITransformableadd in class IGeometrypublic IText add(IDoubleI f, IVecI v)
add in interface ITransformableadd in class IGeometrypublic IText rot(IDoubleI angle)
rot in interface ITransformablerot in class IGeometrypublic IText rot(double angle)
rot in interface ITransformablerot in class IGeometrypublic IText rot(IVecI axis, IDoubleI angle)
rot in interface ITransformablerot in class IGeometrypublic IText rot(IVecI axis, double angle)
rot in interface ITransformablerot in class IGeometrypublic IText rot(IVecI center, IVecI axis, IDoubleI angle)
rot in interface ITransformablerot in class IGeometrypublic IText rot(IVecI center, IVecI axis, double angle)
rot in interface ITransformablerot in class IGeometrypublic IText rot(IVecI axis, IVecI destDir)
rot in interface ITransformablerot in class IGeometrypublic IText rot(IVecI center, IVecI axis, IVecI destPt)
rot in interface ITransformablerot in class IGeometrypublic IText rot2(IDoubleI angle)
rot2 in interface ITransformablerot2 in class IGeometrypublic IText rot2(double angle)
rot2 in interface ITransformablerot2 in class IGeometrypublic IText rot2(IVecI center, IDoubleI angle)
rot2 in interface ITransformablerot2 in class IGeometrypublic IText rot2(IVecI center, double angle)
rot2 in interface ITransformablerot2 in class IGeometrypublic IText rot2(IVecI destDir)
rot2 in interface ITransformablerot2 in class IGeometrypublic IText rot2(IVecI center, IVecI destPt)
rot2 in interface ITransformablerot2 in class IGeometrypublic IText scale(IDoubleI f)
scale in interface ITransformablescale in class IGeometrypublic IText scale(double f)
scale in interface ITransformablescale in class IGeometrypublic IText scale(IVecI center, IDoubleI f)
scale in interface ITransformablescale in class IGeometrypublic IText scale(IVecI center, double f)
scale in interface ITransformablescale in class IGeometrypublic IText scale1d(IVecI axis, double f)
scale1d in interface ITransformablescale1d in class IGeometrypublic IText scale1d(IVecI axis, IDoubleI f)
scale1d in interface ITransformablescale1d in class IGeometrypublic IText scale1d(IVecI center, IVecI axis, double f)
scale1d in interface ITransformablescale1d in class IGeometrypublic IText scale1d(IVecI center, IVecI axis, IDoubleI f)
scale1d in interface ITransformablescale1d in class IGeometrypublic IText ref(IVecI planeDir)
ref in interface ITransformableref in class IGeometrypublic IText ref(IVecI center, IVecI planeDir)
ref in interface ITransformableref in class IGeometrypublic IText mirror(IVecI planeDir)
mirror in interface ITransformablemirror in class IGeometrypublic IText mirror(IVecI center, IVecI planeDir)
mirror in interface ITransformablemirror in class IGeometrypublic IText shear(double sxy, double syx, double syz, double szy, double szx, double sxz)
shear in interface ITransformableshear in class IGeometrypublic IText shear(IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
shear in interface ITransformableshear in class IGeometrypublic IText shear(IVecI center, double sxy, double syx, double syz, double szy, double szx, double sxz)
shear in interface ITransformableshear in class IGeometrypublic IText shear(IVecI center, IDoubleI sxy, IDoubleI syx, IDoubleI syz, IDoubleI szy, IDoubleI szx, IDoubleI sxz)
shear in interface ITransformableshear in class IGeometrypublic IText shearXY(double sxy, double syx)
shearXY in interface ITransformableshearXY in class IGeometrypublic IText shearXY(IDoubleI sxy, IDoubleI syx)
shearXY in interface ITransformableshearXY in class IGeometrypublic IText shearXY(IVecI center, double sxy, double syx)
shearXY in interface ITransformableshearXY in class IGeometrypublic IText shearXY(IVecI center, IDoubleI sxy, IDoubleI syx)
shearXY in interface ITransformableshearXY in class IGeometrypublic IText shearYZ(double syz, double szy)
shearYZ in interface ITransformableshearYZ in class IGeometrypublic IText shearYZ(IDoubleI syz, IDoubleI szy)
shearYZ in interface ITransformableshearYZ in class IGeometrypublic IText shearYZ(IVecI center, double syz, double szy)
shearYZ in interface ITransformableshearYZ in class IGeometrypublic IText shearYZ(IVecI center, IDoubleI syz, IDoubleI szy)
shearYZ in interface ITransformableshearYZ in class IGeometrypublic IText shearZX(double szx, double sxz)
shearZX in interface ITransformableshearZX in class IGeometrypublic IText shearZX(IDoubleI szx, IDoubleI sxz)
shearZX in interface ITransformableshearZX in class IGeometrypublic IText shearZX(IVecI center, double szx, double sxz)
shearZX in interface ITransformableshearZX in class IGeometrypublic IText shearZX(IVecI center, IDoubleI szx, IDoubleI sxz)
shearZX in interface ITransformableshearZX in class IGeometrypublic IText mv(double x, double y, double z)
mv in interface ITransformablemv in class IGeometrypublic IText mv(IDoubleI x, IDoubleI y, IDoubleI z)
mv in interface ITransformablemv in class IGeometrypublic IText mv(IVecI v)
mv in interface ITransformablemv in class IGeometrypublic IText cp(double x, double y, double z)
cp in interface ITransformablecp in class IGeometrypublic IText cp(IDoubleI x, IDoubleI y, IDoubleI z)
cp in interface ITransformablecp in class IGeometrypublic IText cp(IVecI v)
cp in interface ITransformablecp in class IGeometrypublic IText translate(double x, double y, double z)
translate in interface ITransformabletranslate in class IGeometrypublic IText translate(IDoubleI x, IDoubleI y, IDoubleI z)
translate in interface ITransformabletranslate in class IGeometrypublic IText translate(IVecI v)
translate in interface ITransformabletranslate in class IGeometrypublic IText transform(IMatrix3I mat)
transform in interface ITransformabletransform in class IGeometrypublic IText transform(IMatrix4I mat)
transform in interface ITransformabletransform in class IGeometrypublic IText transform(IVecI xvec, IVecI yvec, IVecI zvec)
transform in interface ITransformabletransform in class IGeometrypublic IText transform(IVecI xvec, IVecI yvec, IVecI zvec, IVecI translate)
transform in interface ITransformabletransform in class IGeometry