org.opensourcephysics.cabrillo.tracker
Class AnalyticParticle

java.lang.Object
  extended by org.opensourcephysics.cabrillo.tracker.TTrack
      extended by org.opensourcephysics.cabrillo.tracker.PointMass
          extended by org.opensourcephysics.cabrillo.tracker.ParticleModel
              extended by org.opensourcephysics.cabrillo.tracker.AnalyticParticle
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, Drawable, Interactive, Measurable, Trackable

public class AnalyticParticle
extends ParticleModel

AnalyticParticle models a particle using time functions.

Author:
W. Christian, D. Brown

Nested Class Summary
 
Nested classes/interfaces inherited from class org.opensourcephysics.cabrillo.tracker.TTrack
TTrack.StepArray
 
Field Summary
 
Fields inherited from class org.opensourcephysics.cabrillo.tracker.ParticleModel
dt, functionEditor, functionPanel, inspector, inspectorH, inspectorX, inspectorY, isInspectorVisible, lastValidFrame, refreshing, showInspector, t0, time, trace, traceButtonChoices, traceButtonText, tracePt, tracePtsPerStep, traceStroke, traceX, traceY
 
Fields inherited from class org.opensourcephysics.cabrillo.tracker.PointMass
accelerationMenu, aDeriv, aFootprint, aFootprints, aMap, aTailsToOriginItem, aTailsToPositionItem, aVisibleItem, aVisibleOnAll, aVisMap, colorIndex, colors, dataDescriptions, derivData, labelsVisibleItem, mass, massField, massLabel, mSeparator, names, namesIndex, params, validData, vDeriv, velocityMenu, vFootprint, vFootprints, vMap, vTailsToOriginItem, vTailsToPositionItem, vVisibleItem, vVisibleOnAll, vVisMap, xData, xVisibleOnAll, xVisMap, yData
 
Fields inherited from class org.opensourcephysics.cabrillo.tracker.TTrack
angleField, angleLabel, angleSeparator, autoAdvance, autoAdvanceItem, colorItem, data, dataColumnsItem, dataProp, dataValid, defaultColor, defaultFootprint, deleteItem, description, descriptionItem, enabled, footprint, footprintListener, footprintMenu, footprints, labelFont, locked, lockedItem, magField, magLabel, magSeparator, markByDefault, markByDefaultItem, menu, name, nameAction, nameDialog, nameField, nameItem, panels, point, properties, stepField, stepLabel, steps, stepSeparator, support, tField, tLabel, toolbarPointComponents, toolbarTrackComponents, trackerPanel, trailLength, trailVisible, trailVisibleItem, tSeparator, viewable, visible, visibleItem, worldBounds, xField, xLabel, xSeparator, xSpinner, yField, yLabel, ySeparator, ySpinner
 
Constructor Summary
AnalyticParticle()
           
 
Method Summary
static XML.ObjectLoader getLoader()
          Returns an ObjectLoader to save and load data for this class.
protected  java.awt.geom.Point2D getNextTracePosition()
          Gets the next trace position.
protected  void initializeFunctionPanel()
          Creates and initializes an AnalyticFunctionPanel.
protected  void refreshInspector()
          Refreshes the inspector GUI.
protected  void refreshStrings()
          Refreshes strings based on the current locale.
 
Methods inherited from class org.opensourcephysics.cabrillo.tracker.ParticleModel
cleanup, draw, getFunctionEditor, getInitEditor, getInitialValues, getInspector, getMenu, getParamEditor, getToolbarPointComponents, getToolbarTrackComponents, isDependent, isStepComplete, propertyChange, refreshSteps, setLocked, setMass, setName
 
Methods inherited from class org.opensourcephysics.cabrillo.tracker.PointMass
createStep, deleteStep, erase, erase, findInteractive, getAcceleration, getAccelerationFootprint, getAccelerationFootprints, getAccelerations, getDataDescription, getFootprint, getFootprintLength, getFootprints, getMass, getNextVisibleStep, getPreviousVisibleStep, getRotationData, getStep, getVelocities, getVelocity, getVelocityFootprint, getVelocityFootprints, getWorldAcceleration, getWorldPosition, getWorldVelocity, isAcceleration, isAVisible, isLabelsVisible, isPosition, isPositionVisible, isStepVisible, isVelocity, isVVisible, refreshData, remark, remark, setAccelerationFootprint, setAccelerationFootprints, setAVisible, setAVisibleOnAll, setColor, setFootprint, setLabelsVisible, setPositionVisible, setPositionVisibleOnAll, setVelocityFootprint, setVelocityFootprints, setVVisible, setVVisibleOnAll, toString, updateDerivatives, updateNumberFields
 
Methods inherited from class org.opensourcephysics.cabrillo.tracker.TTrack
addFootprint, addPropertyChangeListener, addPropertyChangeListener, delete, firePropertyChange, getColor, getData, getDataName, getDescription, getFootprint, getFootprints, getName, getProperty, getPropertyNames, getStep, getSteps, getTrailLength, getWorldBounds, getX, getXMax, getXMax, getXMin, getXMin, getY, getYMax, getYMax, getYMin, getYMin, isAutoAdvance, isEmpty, isEnabled, isLocked, isMarkByDefault, isMeasured, isTrailVisible, isViewable, isVisible, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, setAutoAdvance, setDescription, setEnabled, setFootprint, setFootprints, setFootprints, setMarkByDefault, setProperty, setTrackerPanel, setTrailLength, setTrailVisible, setViewable, setVisible, setX, setXY, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnalyticParticle

public AnalyticParticle()
Method Detail

initializeFunctionPanel

protected void initializeFunctionPanel()
Creates and initializes an AnalyticFunctionPanel.

Overrides:
initializeFunctionPanel in class ParticleModel

refreshInspector

protected void refreshInspector()
Description copied from class: ParticleModel
Refreshes the inspector GUI.

Overrides:
refreshInspector in class ParticleModel

getNextTracePosition

protected java.awt.geom.Point2D getNextTracePosition()
Gets the next trace position. Subclasses override to get positions based on model.


refreshStrings

protected void refreshStrings()
Refreshes strings based on the current locale.

Overrides:
refreshStrings in class ParticleModel

getLoader

public static XML.ObjectLoader getLoader()
Returns an ObjectLoader to save and load data for this class.

Returns:
the object loader