org.concord.collisions.engine
Class JMaxwellDaemon
java.lang.Object
|
+--org.concord.collisions.engine.JWorldElement
|
+--org.concord.collisions.engine.JDaemon
|
+--org.concord.collisions.engine.JMaxwellDaemon
- All Implemented Interfaces:
- CCDraggable, CCMassive, java.util.EventListener, java.beans.PropertyChangeListener, java.io.Serializable
- public class JMaxwellDaemon
- extends JDaemon
Displacement daemon element in the world
- Author:
- Ingrid Moncada, Dmitry Markman
- See Also:
JDaemon
, Serialized Form
Fields inherited from class org.concord.collisions.engine.JWorldElement |
acx, acy, areaListener, areaTables, collSensitive, controllable, DEFAULT_MAX_CONSTRAINT, DEFAULT_MIN_CONSTRAINT, doProjection, draggable, elementListeners, flashing, iconHeight, iconWidth, index, iviewer, mass, name, pressedState, propertyListeners, qtIcon, qtMovie, rectsForListener, scaleIcon, showAcceleration, showVelocity, showVelocityNumber, suggestedCollisionTime, swingIcon, vel_scale, vx, vy, wasLastStepCollision |
Method Summary |
static JMaxwellDaemon |
createMaxwellDaemon(float x,
float y,
float w,
float h)
|
void |
doDrag(CCCoordinateTuner tuner,
int x,
int y)
|
JWorldElement |
getNuclearElement()
|
protected JWall |
getWall()
|
float |
getXTemperature()
|
float |
getYTemperature()
|
boolean |
isMoveable()
|
boolean |
isPointInside(float px,
float py)
Returns if a specific world coordinates point
is inside the element or not |
boolean |
manageCollision(JWorldElement element)
This method is called by JPartWorld when the booster collides with an element |
void |
paint(java.awt.Graphics g,
java.awt.Graphics sg)
|
void |
setGeometry(float x,
float y,
float w,
float h)
set geometry's parameters |
void |
setGeometry(java.lang.Object object)
|
void |
setWorldModel(JPartWorld world)
|
Methods inherited from class org.concord.collisions.engine.JDaemon |
activate, addActivationStep, addActivationStep, addActivationStep, addDaemonListener, applyForce, checkingCollisionsSensitive, clearConditionExpression, clearFilter, closeEverything, deactivate, endDrag, evaluateExpression, getActivationStepTime, getActivationStepTime, getActiveCollision, getActiveColor, getCMPointX, getCMPointY, getCollisionHistory, getColor, getConditionExpression, getDraggableOwner, getDragMode, getEffectiveCollisionsRadius, getHeight, getInactiveColor, getWidth, getX, getXPotentialEnergy, getY, getYPotentialEnergy, hasCollided, hasCollidedWith, hasCollidedWithAt, initElement, isActive, isActiveCollision, isAlive, isAutomaticStart, isElemInDaemon, isLooping, isPointInsideCenter, isTimed, manageNoCollision, paint, paintIcon, paintSelection, panelInfoSupport, rememberCurrPosAsInit, rememberCurrVelAsInit, removeActivationStep, removeActivationStep, removeActivationStep, removeAllActivationSteps, removeDaemonListener, reset, resetCollisionsSensitive, setActivationStepTime, setActiveColor, setAutomaticStart, setCMPointX, setCMPointY, setColorFilter, setConditionExpression, setDragMode, setEffectiveCollisionsRadius, setFilter, setGeometry, setIcon, setInactiveColor, setInfoDrawer, setLooping, shift, shiftV, start, startDrag, step |
Methods inherited from class org.concord.collisions.engine.JWorldElement |
addAreaListener, addAreaListener, addAreaListener, addAreaListener, addAreaToListen, addAreaToListen, addAreaToListen, addAreaToListen, addElementListener, addElemMouseListener, addNeighborX, addNeighborY, addPropertyChangeListener, assignIndNumber, clearConstraints, clearForces, clearIcon, createDefaultCalculator, findDraggable, getAccelerationKoeff, getCollidedParticle, getDoProjection, getDownConstraint, getFlashingColor, getFullEnergy, getFullXEnergy, getFullYEnergy, getGravityX, getGravityY, getIcon, getIconHeight, getIconWidth, getIndex, getIndNumber, getLeftConstraint, getMass, getName, getNthForce, getNumbAppliedForces, getOwner, getPositionChanger, getPotentialEnergy, getQTIcon, getQTMovie, getRightConstraint, getShowAcceleration, getShowVelocity, getTemperature, getUpConstraint, getVelScale, getVx, getVy, getWorldModel, getX, getXacceleration, getXNeighbors, getY, getYacceleration, getYNeighbors, isCollisionSensitive, isConstraintsWasSet, isControllable, isDraggable, isEnabled, isFlashing, isPointInside, isPressedState, isSelected, isVisible, notifyAreaListener, notifyElementListeners, notifyMouseListeners, notifyPropertyListeners, paintSelection, propertyChange, rememberCurrAllAsInit, rememberCurrPropAsInit, rememberCurrPropAsInit, removeAreaListener, removeAreaToListen, removeAreaToListen, removeElementListener, removeElemMouseListener, removeForce, removeForce, removePositionChanger, removePropertyChangeListener, reverseVx, reverseVy, select, setAnimIcon, setCollidedParticle, setCollisionSensitive, setColor, setColor, setConstraints, setControllable, setDoProjection, setDraggable, setEnabled, setFlashing, setForceCalculator, setIcon, setIcon, setIcon, setIconSize, setIndex, setMass, setName, setOwner, setPositionChanger, setPressedState, setProperty, setQTIcon, setQTIcon, setQTMovie, setShowAcceleration, setShowVelocity, setVisible, setVx, setVy, setXConstraints, setYConstraints, unselect, wasCollision |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wall
protected JWall wall
JMaxwellDaemon
public JMaxwellDaemon()
createMaxwellDaemon
public static JMaxwellDaemon createMaxwellDaemon(float x,
float y,
float w,
float h)
isMoveable
public boolean isMoveable()
- Overrides:
isMoveable
in class JWorldElement
setGeometry
public void setGeometry(java.lang.Object object)
throws java.lang.Exception
- Overrides:
setGeometry
in class JWorldElement
setGeometry
public void setGeometry(float x,
float y,
float w,
float h)
throws java.lang.Exception
- Description copied from class:
JDaemon
- set geometry's parameters
- Overrides:
setGeometry
in class JDaemon
- Following copied from class:
org.concord.collisions.engine.JDaemon
- Parameters:
x
- daemon's x coordinatey
- daemon's y coordinatew
- daemon's width (minimum 1)h
- daemon's height (minimum 1)
paint
public void paint(java.awt.Graphics g,
java.awt.Graphics sg)
- Overrides:
paint
in class JWorldElement
getXTemperature
public float getXTemperature()
- Overrides:
getXTemperature
in class JWorldElement
getYTemperature
public float getYTemperature()
- Overrides:
getYTemperature
in class JWorldElement
manageCollision
public boolean manageCollision(JWorldElement element)
- This method is called by JPartWorld when the booster collides with an element
- Overrides:
manageCollision
in class JDaemon
- Parameters:
element
- element the booster collided with
getWall
protected JWall getWall()
getNuclearElement
public JWorldElement getNuclearElement()
- Overrides:
getNuclearElement
in class JDaemon
isPointInside
public boolean isPointInside(float px,
float py)
- Description copied from class:
JDaemon
- Returns if a specific world coordinates point
is inside the element or not
- Overrides:
isPointInside
in class JDaemon
- Following copied from class:
org.concord.collisions.engine.JDaemon
- Parameters:
px
- world x coordinate of the pointpy
- world y coordinate of the point- See Also:
JWorldElement.isPointInside(java.awt.Point)
setWorldModel
public void setWorldModel(JPartWorld world)
- Overrides:
setWorldModel
in class JWorldElement
doDrag
public void doDrag(CCCoordinateTuner tuner,
int x,
int y)
- Overrides:
doDrag
in class JDaemon