|
||||||||
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.IStickLine
public class IStickLine
Line representation of stick dynamics
Field Summary | |
---|---|
IStick |
stickDynamics
|
java.util.ArrayList<IObject> |
targets
target objects to be updated by dynamic object |
Fields inherited from class igeo.ICurve |
---|
curve |
Fields inherited from class igeo.IObject |
---|
attribute, dynamics, graphics, parameter, server, userData |
Constructor Summary | |
---|---|
IStickLine(IParticleI p1,
IParticleI p2)
|
|
IStickLine(IVecI p1,
IVecI p2)
|
Method Summary | |
---|---|
IStickLine |
attr(IAttribute at)
set attributes |
IStickLine |
clr(java.awt.Color c)
|
IStickLine |
clr(java.awt.Color c,
double alpha)
|
IStickLine |
clr(java.awt.Color c,
float alpha)
|
IStickLine |
clr(java.awt.Color c,
int alpha)
|
IStickLine |
clr(double dgray)
|
IStickLine |
clr(double dgray,
double dalpha)
|
IStickLine |
clr(double dr,
double dg,
double db)
|
IStickLine |
clr(double dr,
double dg,
double db,
double da)
|
IStickLine |
clr(float fgray)
|
IStickLine |
clr(float fgray,
float falpha)
|
IStickLine |
clr(float fr,
float fg,
float fb)
|
IStickLine |
clr(float fr,
float fg,
float fb,
float fa)
|
IStickLine |
clr(IColor c)
|
IStickLine |
clr(IColor c,
double alpha)
to set color, with alpha value overwritten |
IStickLine |
clr(IColor c,
float alpha)
to set color, with alpha value overwritten |
IStickLine |
clr(IColor c,
int alpha)
to set color, with alpha value overwritten |
IStickLine |
clr(int gray)
|
IStickLine |
clr(int gray,
int alpha)
|
IStickLine |
clr(int r,
int g,
int b)
|
IStickLine |
clr(int r,
int g,
int b,
int a)
|
IStickLine |
hide()
|
IStickLine |
hsb(double h,
double s,
double b)
|
IStickLine |
hsb(double h,
double s,
double b,
double a)
|
IStickLine |
hsb(float h,
float s,
float b)
|
IStickLine |
hsb(float h,
float s,
float b,
float a)
|
void |
initStickLine(IParticleI p1,
IParticleI p2)
|
void |
interact(java.util.ArrayList<IDynamics> dynamics)
behavior definition of interaction with other dynamic objects. |
IStickLine |
layer(ILayer l)
Set layer by ILayer object |
IStickLine |
layer(java.lang.String l)
Set layer by layer name. |
java.util.ArrayList<IDynamics> |
localDynamics()
IDynamicsBase doesn't implement local dynamics feature |
IStickLine |
name(java.lang.String nm)
IObject methods |
IStickLine |
parent()
for IDynamics |
IStickLine |
parent(IObject par)
setting parent object |
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 particle2 |
void |
postinteract(java.util.ArrayList<IDynamics> dynamics)
executed after interact(ArrayList |
void |
postupdate()
executed after update(). |
void |
preinteract(java.util.ArrayList<IDynamics> dynamics)
executed before interact(ArrayList |
void |
preupdate()
executed before update(). |
IParticleI |
pt(int i)
getting end point. |
IParticleI |
pt1()
getting end point1. |
IParticleI |
pt2()
getting end point2. |
IStickLine |
removeTarget(int i)
remove target object. |
IStickLine |
removeTarget(IObject obj)
remove target object. |
IStickLine |
setColor(java.awt.Color c)
|
IStickLine |
setColor(java.awt.Color c,
double alpha)
|
IStickLine |
setColor(java.awt.Color c,
float alpha)
|
IStickLine |
setColor(java.awt.Color c,
int alpha)
|
IStickLine |
setColor(double dgray)
|
IStickLine |
setColor(double dgray,
double dalpha)
|
IStickLine |
setColor(double dr,
double dg,
double db)
|
IStickLine |
setColor(double dr,
double dg,
double db,
double da)
|
IStickLine |
setColor(float fgray)
|
IStickLine |
setColor(float fgray,
float falpha)
|
IStickLine |
setColor(float fr,
float fg,
float fb)
|
IStickLine |
setColor(float fr,
float fg,
float fb,
float fa)
|
IStickLine |
setColor(IColor c)
|
IStickLine |
setColor(IColor c,
double alpha)
|
IStickLine |
setColor(IColor c,
float alpha)
|
IStickLine |
setColor(IColor c,
int alpha)
|
IStickLine |
setColor(int gray)
|
IStickLine |
setColor(int gray,
int alpha)
|
IStickLine |
setColor(int r,
int g,
int b)
|
IStickLine |
setColor(int r,
int g,
int b,
int a)
|
IStickLine |
setHSBColor(double h,
double s,
double b)
|
IStickLine |
setHSBColor(double h,
double s,
double b,
double a)
|
IStickLine |
setHSBColor(float h,
float s,
float b)
|
IStickLine |
setHSBColor(float h,
float s,
float b,
float a)
|
IStickLine |
show()
|
IObject |
target(int i)
get target object. |
IStickLine |
target(IObject targetObj)
add terget object to be updated by this dynamic object. |
int |
targetNum()
get total target number. |
java.util.ArrayList<IObject> |
targets()
get all target objects. |
void |
update()
behavior definition of updating dynamics in each time frame |
void |
updateTarget()
update all terget objects (should be called when the dynamic object is updated). |
IStickLine |
weight(double w)
|
IStickLine |
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 IStick stickDynamics
public java.util.ArrayList<IObject> targets
Constructor Detail |
---|
public IStickLine(IParticleI p1, IParticleI p2)
public IStickLine(IVecI p1, IVecI p2)
Method Detail |
---|
public void initStickLine(IParticleI p1, IParticleI p2)
public IParticleI pt(int i)
public IParticleI particle(int i)
public IVec pos(int i)
public IParticleI pt1()
public IParticleI particle1()
public IVec pos1()
public IParticleI pt2()
public IParticleI particle2()
public IVec pos2()
public IStickLine parent()
parent
in interface ISubobject
public IStickLine parent(IObject par)
ISubobject
parent
in interface ISubobject
public java.util.ArrayList<IDynamics> localDynamics()
localDynamics
in interface IDynamics
public IStickLine target(IObject targetObj)
IDynamics
target
in interface IDynamics
public int targetNum()
targetNum
in interface IDynamics
public IObject target(int i)
target
in interface IDynamics
public java.util.ArrayList<IObject> targets()
targets
in interface IDynamics
public IStickLine removeTarget(int i)
removeTarget
in interface IDynamics
public IStickLine removeTarget(IObject obj)
removeTarget
in interface IDynamics
public void updateTarget()
updateTarget
in interface IDynamics
public void interact(java.util.ArrayList<IDynamics> dynamics)
interact
in interface IDynamics
public void update()
update
in interface IDynamics
public void preinteract(java.util.ArrayList<IDynamics> dynamics)
IDynamics
preinteract
in interface IDynamics
public void postinteract(java.util.ArrayList<IDynamics> dynamics)
IDynamics
postinteract
in interface IDynamics
public void preupdate()
IDynamics
preupdate
in interface IDynamics
public void postupdate()
IDynamics
postupdate
in interface IDynamics
public IStickLine name(java.lang.String nm)
name
in class ICurve
public IStickLine layer(ILayer l)
IGeometry
layer
in class ICurve
public IStickLine layer(java.lang.String l)
IGeometry
layer
in class ICurve
public IStickLine attr(IAttribute at)
IObject
attr
in class ICurve
public IStickLine hide()
hide
in class ICurve
public IStickLine show()
show
in class ICurve
public IStickLine clr(IColor c)
clr
in class ICurve
public IStickLine clr(IColor c, int alpha)
IObject
clr
in class ICurve
public IStickLine clr(IColor c, float alpha)
IObject
clr
in class ICurve
public IStickLine clr(IColor c, double alpha)
IObject
clr
in class ICurve
public IStickLine clr(java.awt.Color c)
clr
in class ICurve
public IStickLine clr(java.awt.Color c, int alpha)
clr
in class ICurve
public IStickLine clr(java.awt.Color c, float alpha)
clr
in class ICurve
public IStickLine clr(java.awt.Color c, double alpha)
clr
in class ICurve
public IStickLine clr(int gray)
clr
in class ICurve
public IStickLine clr(float fgray)
clr
in class ICurve
public IStickLine clr(double dgray)
clr
in class ICurve
public IStickLine clr(int gray, int alpha)
clr
in class ICurve
public IStickLine clr(float fgray, float falpha)
clr
in class ICurve
public IStickLine clr(double dgray, double dalpha)
clr
in class ICurve
public IStickLine clr(int r, int g, int b)
clr
in class ICurve
public IStickLine clr(float fr, float fg, float fb)
clr
in class ICurve
public IStickLine clr(double dr, double dg, double db)
clr
in class ICurve
public IStickLine clr(int r, int g, int b, int a)
clr
in class ICurve
public IStickLine clr(float fr, float fg, float fb, float fa)
clr
in class ICurve
public IStickLine clr(double dr, double dg, double db, double da)
clr
in class ICurve
public IStickLine hsb(float h, float s, float b, float a)
hsb
in class ICurve
public IStickLine hsb(double h, double s, double b, double a)
hsb
in class ICurve
public IStickLine hsb(float h, float s, float b)
hsb
in class ICurve
public IStickLine hsb(double h, double s, double b)
hsb
in class ICurve
public IStickLine setColor(IColor c)
setColor
in class ICurve
public IStickLine setColor(IColor c, int alpha)
setColor
in class ICurve
public IStickLine setColor(IColor c, float alpha)
setColor
in class ICurve
public IStickLine setColor(IColor c, double alpha)
setColor
in class ICurve
public IStickLine setColor(java.awt.Color c)
setColor
in class ICurve
public IStickLine setColor(java.awt.Color c, int alpha)
setColor
in class ICurve
public IStickLine setColor(java.awt.Color c, float alpha)
setColor
in class ICurve
public IStickLine setColor(java.awt.Color c, double alpha)
setColor
in class ICurve
public IStickLine setColor(int gray)
setColor
in class ICurve
public IStickLine setColor(float fgray)
setColor
in class ICurve
public IStickLine setColor(double dgray)
setColor
in class ICurve
public IStickLine setColor(int gray, int alpha)
setColor
in class ICurve
public IStickLine setColor(float fgray, float falpha)
setColor
in class ICurve
public IStickLine setColor(double dgray, double dalpha)
setColor
in class ICurve
public IStickLine setColor(int r, int g, int b)
setColor
in class ICurve
public IStickLine setColor(float fr, float fg, float fb)
setColor
in class ICurve
public IStickLine setColor(double dr, double dg, double db)
setColor
in class ICurve
public IStickLine setColor(int r, int g, int b, int a)
setColor
in class ICurve
public IStickLine setColor(float fr, float fg, float fb, float fa)
setColor
in class ICurve
public IStickLine setColor(double dr, double dg, double db, double da)
setColor
in class ICurve
public IStickLine setHSBColor(float h, float s, float b, float a)
setHSBColor
in class ICurve
public IStickLine setHSBColor(double h, double s, double b, double a)
setHSBColor
in class ICurve
public IStickLine setHSBColor(float h, float s, float b)
setHSBColor
in class ICurve
public IStickLine setHSBColor(double h, double s, double b)
setHSBColor
in class ICurve
public IStickLine weight(double w)
weight
in class ICurve
public IStickLine weight(float w)
weight
in class ICurve
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |