public abstract class IField extends IAgent implements IFieldI
| Modifier and Type | Field and Description |
|---|---|
java.util.ArrayList<java.lang.Class<? extends IParticleI>> |
targetClasses |
alive, duration, interactOverridden, localDynamics, parent, targets, time| Constructor and Description |
|---|
IField() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
applyField(IParticleI particle) |
IField |
clr(java.awt.Color c) |
IField |
clr(java.awt.Color c,
double alpha) |
IField |
clr(java.awt.Color c,
float alpha) |
IField |
clr(java.awt.Color c,
int alpha) |
IField |
clr(double dgray) |
IField |
clr(double dgray,
double dalpha) |
IField |
clr(double dr,
double dg,
double db) |
IField |
clr(double dr,
double dg,
double db,
double da) |
IField |
clr(float fgray) |
IField |
clr(float fgray,
float falpha) |
IField |
clr(float fr,
float fg,
float fb) |
IField |
clr(float fr,
float fg,
float fb,
float fa) |
IField |
clr(IColor c)
to set an object color
|
IField |
clr(IColor c,
double alpha)
to set color, with alpha value overwritten
|
IField |
clr(IColor c,
float alpha)
to set color, with alpha value overwritten
|
IField |
clr(IColor c,
int alpha)
to set color, with alpha value overwritten
|
IField |
clr(int gray) |
IField |
clr(int gray,
int alpha) |
IField |
clr(int r,
int g,
int b) |
IField |
clr(int r,
int g,
int b,
int a) |
IField |
clr(IObject o)
to set the same color with the object
|
IVal |
get(IVecI pos,
IVecI vel)
default field vector ignoreing velocity
|
IField |
hide() |
IField |
hsb(double h,
double s,
double b) |
IField |
hsb(double h,
double s,
double b,
double a) |
IField |
hsb(float h,
float s,
float b) |
IField |
hsb(float h,
float s,
float b,
float a) |
void |
interact(java.util.ArrayList<IDynamics> agents)
behavior definition of interaction with other dynamic objects.
|
boolean |
isTarget(java.lang.Object obj)
alias
|
boolean |
isTargetClass(java.lang.Object obj) |
IField |
layer(ILayer l)
Set layer by ILayer object
|
IField |
name(java.lang.String nm)
methods of IObject
|
IField |
setColor(java.awt.Color c) |
IField |
setColor(java.awt.Color c,
int alpha) |
IField |
setColor(double dgray) |
IField |
setColor(double dgray,
double dalpha) |
IField |
setColor(double dr,
double dg,
double db) |
IField |
setColor(double dr,
double dg,
double db,
double da) |
IField |
setColor(float fgray) |
IField |
setColor(float fgray,
float falpha) |
IField |
setColor(float fr,
float fg,
float fb) |
IField |
setColor(float fr,
float fg,
float fb,
float fa) |
IField |
setColor(int gray) |
IField |
setColor(int gray,
int alpha) |
IField |
setColor(int r,
int g,
int b) |
IField |
setColor(int r,
int g,
int b,
int a) |
IField |
setHSBColor(double h,
double s,
double b) |
IField |
setHSBColor(double h,
double s,
double b,
double a) |
IField |
setHSBColor(float h,
float s,
float b) |
IField |
setHSBColor(float h,
float s,
float b,
float a) |
IField |
show() |
IField |
target(java.lang.Class<? extends IParticleI>... targets)
alias
|
IField |
target(java.lang.Class<? extends IParticleI> targetClass)
alias
|
IField |
targetClass(java.lang.Class<? extends IParticleI>... targets)
make the field applicable only to the specified target classes
|
IField |
targetClass(java.lang.Class<? extends IParticleI> targetClass)
make the field applicable only to the specified target class
|
IField |
weight(double w) |
IField |
weight(float w) |
addDynamics, alive, del, del, deletDynamics, deleteDynamics, deleteDynamics, duration, duration, dynamicsNum, getDynamics, initAgent, interact, localDynamics, parent, parent, postinteract, postupdate, preinteract, preupdate, removeTarget, removeTarget, setColor, setColor, setColor, setColor, target, target, targetNum, targets, time, time, update, updateGraphic, updateTargetaddUserData, addUserData, alpha, alphaInt, attr, attr, attr, awtColor, blue, blueInt, brightness, castStringHashMap, clearDynamics, clearGraphics, clr, cp, createGraphic, defaultAttribute, deleteGraphic, dup, getAWTColor, getColor, getGraphic, getGraphic, getParameter, graphicsNum, gray, grayInt, green, greenInt, grey, greyInt, hue, initGraphic, initObject, isValid, isVisible, layer, layer, name, red, redInt, resetGraphic, saturation, server, setColor, setColor, setParameter, setTexture, syncColor, syncGraphic, syncVisibility, syncWeight, texture, userData, userData, userData, userDataNum, visible, weightclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbidirectional, constantIntensity, decay, del, gauss, gaussian, gaussianDecay, get, intensity, intensity, linear, linearDecay, noDecay, threshold, thresholdpublic java.util.ArrayList<java.lang.Class<? extends IParticleI>> targetClasses
public IField targetClass(java.lang.Class<? extends IParticleI> targetClass)
public IField target(java.lang.Class<? extends IParticleI> targetClass)
public IField targetClass(java.lang.Class<? extends IParticleI>... targets)
public IField target(java.lang.Class<? extends IParticleI>... targets)
public boolean isTargetClass(java.lang.Object obj)
public boolean isTarget(java.lang.Object obj)
public void interact(java.util.ArrayList<IDynamics> agents)
IDynamicspublic abstract void applyField(IParticleI particle)
public IField layer(ILayer l)
IObjectpublic IField clr(IColor c, int alpha)
IObjectpublic IField clr(IColor c, float alpha)
IObjectpublic IField clr(IColor c, double alpha)
IObjectpublic IField clr(IObject o)
IObjectpublic IField setColor(double dr, double dg, double db)
public IField setColor(float fr, float fg, float fb, float fa)
public IField setColor(double dr, double dg, double db, double da)
public IField setHSBColor(float h, float s, float b, float a)
setHSBColor in class IAgentpublic IField setHSBColor(double h, double s, double b, double a)
setHSBColor in class IAgentpublic IField setHSBColor(float h, float s, float b)
setHSBColor in class IAgentpublic IField setHSBColor(double h, double s, double b)
setHSBColor in class IAgent