|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectigeo.IObject
igeo.IGeometry
igeo.ICurve
igeo.ITensionLineOnCurve
public class ITensionLineOnCurve
Class of IDynamicObject to simulate tension force between two particles.
Field Summary | |
---|---|
ITensionOnCurve |
tension
|
Fields inherited from class igeo.ICurve |
---|
curve |
Fields inherited from class igeo.IObject |
---|
attribute, dynamics, graphics, parameter, server, userData |
Fields inherited from interface igeo.ITensionI |
---|
defaultTension |
Constructor Summary | |
---|---|
ITensionLineOnCurve(IParticleOnCurveI p1,
IParticleOnCurveI p2)
|
|
ITensionLineOnCurve(IParticleOnCurveI p1,
IParticleOnCurveI p2,
double tension)
|
Method Summary | |
---|---|
ITensionLineOnCurve |
attr(IAttribute at)
set attributes |
ITensionLineOnCurve |
clr(java.awt.Color c)
|
ITensionLineOnCurve |
clr(java.awt.Color c,
double alpha)
|
ITensionLineOnCurve |
clr(java.awt.Color c,
float alpha)
|
ITensionLineOnCurve |
clr(java.awt.Color c,
int alpha)
|
ITensionLineOnCurve |
clr(double dgray)
|
ITensionLineOnCurve |
clr(double dgray,
double dalpha)
|
ITensionLineOnCurve |
clr(double dr,
double dg,
double db)
|
ITensionLineOnCurve |
clr(double dr,
double dg,
double db,
double da)
|
ITensionLineOnCurve |
clr(float fgray)
|
ITensionLineOnCurve |
clr(float fgray,
float falpha)
|
ITensionLineOnCurve |
clr(float fr,
float fg,
float fb)
|
ITensionLineOnCurve |
clr(float fr,
float fg,
float fb,
float fa)
|
ITensionLineOnCurve |
clr(IColor c)
|
ITensionLineOnCurve |
clr(IColor c,
double alpha)
to set color, with alpha value overwritten |
ITensionLineOnCurve |
clr(IColor c,
float alpha)
to set color, with alpha value overwritten |
ITensionLineOnCurve |
clr(IColor c,
int alpha)
to set color, with alpha value overwritten |
ITensionLineOnCurve |
clr(int gray)
|
ITensionLineOnCurve |
clr(int gray,
int alpha)
|
ITensionLineOnCurve |
clr(int r,
int g,
int b)
|
ITensionLineOnCurve |
clr(int r,
int g,
int b,
int a)
|
boolean |
constant()
if constantTension is true, amount of force is always constant and it's equals to tension. |
ITensionLineOnCurve |
constant(boolean cnst)
if constantTension is true, amount of force is always constant and it's equals to tension. |
ITensionLineOnCurve |
hide()
|
ITensionLineOnCurve |
hsb(double h,
double s,
double b)
|
ITensionLineOnCurve |
hsb(double h,
double s,
double b,
double a)
|
ITensionLineOnCurve |
hsb(float h,
float s,
float b)
|
ITensionLineOnCurve |
hsb(float h,
float s,
float b,
float a)
|
void |
initTensionLine(IParticleOnCurveI p1,
IParticleOnCurveI p2)
|
ITensionLineOnCurve |
layer(ILayer l)
Set layer by ILayer object |
ITensionLineOnCurve |
layer(java.lang.String l)
Set layer by layer name. |
double |
maxTension()
if maxTension is set to be positive number, it limits the force (distance * tension) is cut off at maxTension. |
ITensionLineOnCurve |
maxTension(double maxTension)
if maxTension is set to be positive number, it limits the force (distance * tension) is cut off at maxTension if constant is set, maxTension is ignored. |
ITensionLineOnCurve |
name(java.lang.String nm)
IObject methods |
IParticleI |
particle(int i)
alias of pt(int) |
IParticleI |
particle1()
alias of pt1() |
IParticleI |
particle2()
alias of pt2() |
IVec |
pos(int i)
position of particle(i) |
IVec |
pos1()
position of particle1 |
IVec |
pos2()
position of particle1 |
IParticleI |
pt(int i)
getting end point. |
IParticleI |
pt1()
getting end point1. |
IParticleI |
pt2()
getting end point2. |
ITensionLineOnCurve |
setColor(java.awt.Color c)
|
ITensionLineOnCurve |
setColor(java.awt.Color c,
double alpha)
|
ITensionLineOnCurve |
setColor(java.awt.Color c,
float alpha)
|
ITensionLineOnCurve |
setColor(java.awt.Color c,
int alpha)
|
ITensionLineOnCurve |
setColor(double dgray)
|
ITensionLineOnCurve |
setColor(double dgray,
double dalpha)
|
ITensionLineOnCurve |
setColor(double dr,
double dg,
double db)
|
ITensionLineOnCurve |
setColor(double dr,
double dg,
double db,
double da)
|
ITensionLineOnCurve |
setColor(float fgray)
|
ITensionLineOnCurve |
setColor(float fgray,
float falpha)
|
ITensionLineOnCurve |
setColor(float fr,
float fg,
float fb)
|
ITensionLineOnCurve |
setColor(float fr,
float fg,
float fb,
float fa)
|
ITensionLineOnCurve |
setColor(IColor c)
|
ITensionLineOnCurve |
setColor(IColor c,
double alpha)
|
ITensionLineOnCurve |
setColor(IColor c,
float alpha)
|
ITensionLineOnCurve |
setColor(IColor c,
int alpha)
|
ITensionLineOnCurve |
setColor(int gray)
|
ITensionLineOnCurve |
setColor(int gray,
int alpha)
|
ITensionLineOnCurve |
setColor(int r,
int g,
int b)
|
ITensionLineOnCurve |
setColor(int r,
int g,
int b,
int a)
|
ITensionLineOnCurve |
setHSBColor(double h,
double s,
double b)
|
ITensionLineOnCurve |
setHSBColor(double h,
double s,
double b,
double a)
|
ITensionLineOnCurve |
setHSBColor(float h,
float s,
float b)
|
ITensionLineOnCurve |
setHSBColor(float h,
float s,
float b,
float a)
|
ITensionLineOnCurve |
show()
|
double |
tension()
tension is a coefficient to convert distance of two points to amount of force. |
ITensionLineOnCurve |
tension(double tensionIntensity)
tension is a coefficient to convert distance of two points to amount of force. |
ITensionLineOnCurve |
weight(double w)
|
ITensionLineOnCurve |
weight(float w)
|
Methods inherited from class igeo.IObject |
---|
addDynamics, addUserData, addUserData, alpha, alphaInt, attr, attr, awtColor, blue, blueInt, castStringHashMap, clearDynamics, clearGraphics, clr, defaultAttribute, del, deletDynamics, deleteDynamics, deleteDynamics, deleteGraphic, dynamicsNum, getAWTColor, getColor, getDynamics, getGraphic, getGraphic, getParameter, graphicsNum, gray, grayInt, green, greenInt, greyInt, initGraphic, initObject, isVisible, layer, name, red, redInt, resetGraphic, server, setParameter, syncColor, syncGraphic, syncVisibility, syncWeight, updateGraphic, userData, userData, userData, userDataNum, visible, weight |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public ITensionOnCurve tension
Constructor Detail |
---|
public ITensionLineOnCurve(IParticleOnCurveI p1, IParticleOnCurveI p2)
public ITensionLineOnCurve(IParticleOnCurveI p1, IParticleOnCurveI p2, double tension)
Method Detail |
---|
public void initTensionLine(IParticleOnCurveI p1, IParticleOnCurveI p2)
public double tension()
ITensionI
tension
in interface ITensionI
public ITensionLineOnCurve tension(double tensionIntensity)
ITensionI
tension
in interface ITensionI
public boolean constant()
ITensionI
constant
in interface ITensionI
public ITensionLineOnCurve constant(boolean cnst)
ITensionI
constant
in interface ITensionI
public double maxTension()
maxTension
in interface ITensionI
public ITensionLineOnCurve maxTension(double maxTension)
maxTension
in interface ITensionI
public IParticleI pt(int i)
pt
in interface ITensionI
public IParticleI particle(int i)
particle
in interface ITensionI
public IVec pos(int i)
pos
in interface ITensionI
public IParticleI pt1()
pt1
in interface ITensionI
public IParticleI particle1()
particle1
in interface ITensionI
public IVec pos1()
pos1
in interface ITensionI
public IParticleI pt2()
pt2
in interface ITensionI
public IParticleI particle2()
particle2
in interface ITensionI
public IVec pos2()
pos2
in interface ITensionI
public ITensionLineOnCurve name(java.lang.String nm)
name
in class ICurve
public ITensionLineOnCurve layer(ILayer l)
IGeometry
layer
in class ICurve
public ITensionLineOnCurve layer(java.lang.String l)
IGeometry
layer
in class ICurve
public ITensionLineOnCurve attr(IAttribute at)
IObject
attr
in class ICurve
public ITensionLineOnCurve hide()
hide
in class ICurve
public ITensionLineOnCurve show()
show
in class ICurve
public ITensionLineOnCurve clr(IColor c)
clr
in class ICurve
public ITensionLineOnCurve clr(IColor c, int alpha)
IObject
clr
in class ICurve
public ITensionLineOnCurve clr(IColor c, float alpha)
IObject
clr
in class ICurve
public ITensionLineOnCurve clr(IColor c, double alpha)
IObject
clr
in class ICurve
public ITensionLineOnCurve clr(java.awt.Color c)
clr
in class ICurve
public ITensionLineOnCurve clr(java.awt.Color c, int alpha)
clr
in class ICurve
public ITensionLineOnCurve clr(java.awt.Color c, float alpha)
clr
in class ICurve
public ITensionLineOnCurve clr(java.awt.Color c, double alpha)
clr
in class ICurve
public ITensionLineOnCurve clr(int gray)
clr
in class ICurve
public ITensionLineOnCurve clr(float fgray)
clr
in class ICurve
public ITensionLineOnCurve clr(double dgray)
clr
in class ICurve
public ITensionLineOnCurve clr(int gray, int alpha)
clr
in class ICurve
public ITensionLineOnCurve clr(float fgray, float falpha)
clr
in class ICurve
public ITensionLineOnCurve clr(double dgray, double dalpha)
clr
in class ICurve
public ITensionLineOnCurve clr(int r, int g, int b)
clr
in class ICurve
public ITensionLineOnCurve clr(float fr, float fg, float fb)
clr
in class ICurve
public ITensionLineOnCurve clr(double dr, double dg, double db)
clr
in class ICurve
public ITensionLineOnCurve clr(int r, int g, int b, int a)
clr
in class ICurve
public ITensionLineOnCurve clr(float fr, float fg, float fb, float fa)
clr
in class ICurve
public ITensionLineOnCurve clr(double dr, double dg, double db, double da)
clr
in class ICurve
public ITensionLineOnCurve hsb(float h, float s, float b, float a)
hsb
in class ICurve
public ITensionLineOnCurve hsb(double h, double s, double b, double a)
hsb
in class ICurve
public ITensionLineOnCurve hsb(float h, float s, float b)
hsb
in class ICurve
public ITensionLineOnCurve hsb(double h, double s, double b)
hsb
in class ICurve
public ITensionLineOnCurve setColor(IColor c)
setColor
in class ICurve
public ITensionLineOnCurve setColor(IColor c, int alpha)
setColor
in class ICurve
public ITensionLineOnCurve setColor(IColor c, float alpha)
setColor
in class ICurve
public ITensionLineOnCurve setColor(IColor c, double alpha)
setColor
in class ICurve
public ITensionLineOnCurve setColor(java.awt.Color c)
setColor
in class ICurve
public ITensionLineOnCurve setColor(java.awt.Color c, int alpha)
setColor
in class ICurve
public ITensionLineOnCurve setColor(java.awt.Color c, float alpha)
setColor
in class ICurve
public ITensionLineOnCurve setColor(java.awt.Color c, double alpha)
setColor
in class ICurve
public ITensionLineOnCurve setColor(int gray)
setColor
in class ICurve
public ITensionLineOnCurve setColor(float fgray)
setColor
in class ICurve
public ITensionLineOnCurve setColor(double dgray)
setColor
in class ICurve
public ITensionLineOnCurve setColor(int gray, int alpha)
setColor
in class ICurve
public ITensionLineOnCurve setColor(float fgray, float falpha)
setColor
in class ICurve
public ITensionLineOnCurve setColor(double dgray, double dalpha)
setColor
in class ICurve
public ITensionLineOnCurve setColor(int r, int g, int b)
setColor
in class ICurve
public ITensionLineOnCurve setColor(float fr, float fg, float fb)
setColor
in class ICurve
public ITensionLineOnCurve setColor(double dr, double dg, double db)
setColor
in class ICurve
public ITensionLineOnCurve setColor(int r, int g, int b, int a)
setColor
in class ICurve
public ITensionLineOnCurve setColor(float fr, float fg, float fb, float fa)
setColor
in class ICurve
public ITensionLineOnCurve setColor(double dr, double dg, double db, double da)
setColor
in class ICurve
public ITensionLineOnCurve setHSBColor(float h, float s, float b, float a)
setHSBColor
in class ICurve
public ITensionLineOnCurve setHSBColor(double h, double s, double b, double a)
setHSBColor
in class ICurve
public ITensionLineOnCurve setHSBColor(float h, float s, float b)
setHSBColor
in class ICurve
public ITensionLineOnCurve setHSBColor(double h, double s, double b)
setHSBColor
in class ICurve
public ITensionLineOnCurve weight(double w)
weight
in class ICurve
public ITensionLineOnCurve weight(float w)
weight
in class ICurve
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |