carmetal.objects
Class JLocusTrackObject

java.lang.Object
  extended by carmetal.objects.ConstructionObject
      extended by carmetal.objects.TrackObject
          extended by carmetal.objects.JLocusTrackObject
All Implemented Interfaces:
HeavyObject, PointonObject, carmetal.rene.lister.Element, carmetal.rene.util.sort.SortObject, Cloneable

public class JLocusTrackObject
extends TrackObject
implements HeavyObject


Field Summary
 
Fields inherited from class carmetal.objects.TrackObject
da, Discrete, DMin, DontProject, DX, DY, Filled, Fixed, O, P, PF, PM, PMax, PN, PO, StartFix, StepSize, Type, V, VO, X, Y
 
Fields inherited from class carmetal.objects.ConstructionObject
Back, Bold, Break, BreakHide, Cn, ColorIndex, ColorType, Conditionals, Count, DescriptionState, DisplaysText, DL, Flag, FormulaState, gotNCount, HasZ, Hidden, HideBreak, inConstruction, Indicated, INVISIBLE, IsDrawn, JobTarget, Keep, KeepClose, LabelSelected, Large, MainParameter, Name, NCount, NeedsRecompute, NORMAL, Obtuse, Parameter, RekFlag, RekValidating, Scratch, Selectable, Selected, ShowIndicatedName, ShowName, ShowValue, SizeState, Solid, SpecialColor, SpecialParameter, StrongSelected, SuperHidden, Target, Text, THICK, THIN, Tracked, Translation, TX1, TX2, TY1, TY2, Unit, Valid, Value, VRek, XcOffset, YcOffset
 
Constructor Summary
JLocusTrackObject(carmetal.construction.Construction c, ConstructionObject p, ConstructionObject[] po, int pn, ConstructionObject o, PointObject pm)
           
 
Method Summary
 void addCoordinates(Vector v, ConstructionObject p)
           
 void compute()
           
 void compute(carmetal.rene.zirkel.ZirkelCanvas zc)
           
 ConstructionObject copy(double x, double y)
          This clones the object for macro construction.
 void docomputeArea()
           
 void docomputeCircle()
           
 void docomputeExpression()
           
 void docomputeFunction()
           
 void docomputeLine()
           
 void docomputeQuadric()
          Compute the locus of a point on conic The idea is to consider the first point A of the conic (first of five points) then imagine a unit circle centered on A, imagine a point B on this circle, then compute intersections between line (AB) and the conic.
 void docomputeRay()
           
 void docomputeSegments()
           
 void docomputeTrack()
           
 boolean equals(ConstructionObject o)
           
static double fline(double x)
           
 boolean isSpecial()
           
 boolean needsToRecompute()
           
 void paint(carmetal.rene.zirkel.graphics.MyGraphics g, carmetal.rene.zirkel.ZirkelCanvas zc)
           
 void recursiveSearchDependencies(ConstructionObject o, ConstructionObject avoid)
           
 void refresh()
           
 void searchDependencies(carmetal.construction.Construction c)
           
 void searchDependencies(carmetal.construction.Construction c, ConstructionObject o, ConstructionObject avoid)
           
 void setSpecial(boolean f)
           
 
Methods inherited from class carmetal.objects.TrackObject
addCoordinates, addCoordinates, addSecondary, canDisplayName, canInteresectWith, depending, docompute, getDisplayValue, getDistance, getDMin, getLength, getN, getSum, getSum, getTag, getType, hasUnit, isDiscrete, isFilled, isFixed, maybeTransparent, mod, nearto, onlynearto, printArgs, printType, project, project, repulse, setDefaults, setDiscrete, setDMin, setFilled, setFixed, setTargetDefaults, setType, translate, updateDA, updateText, validate
 
Methods inherited from class carmetal.objects.ConstructionObject
addConditional, addDepInExpressions, canFix, canKeepClose, changedBy, checkConditionals, clearCircleDep, clearConditional, clearConditionals, clearParameter, compare, contains, copyProperties, dependsOn, depset, depset, depset, discardMV, displays, drawCenteredLabel, drawLabel, drawLabel, drawPointLabel, edit, equals, equalsTo, fixed, getAlias, getCDPDisplayValue, getCDPSizeDisplay, getColor, getColorIndex, getColorIndex, getColorType, getColorType, getConditional, getConditionalColor, getConstruction, getDepArray, getDescription, getDisplaySize, getDisplayText, getE, getElementColor, getElementString, getElementString, getEquation, getEX, getEXpos, getExpression, getEY, getEYpos, getIncrement, getLines, getMax, getMin, getName, getNCount, getObtuse, getPointObject, getPrompt, getR, getSpecialColor, getStringLength, getText, getTranslation, getUnit, getValue, getVector, getX, getY, getZ, haveConditional, haveConditionals, helpDisplayNumber, helpDisplayValue, indicated, isBack, isBack, isBold, isBreak, isBreakHide, isDragable, isDriverObject, isFilledForSelect, isFlag, isGotNCount, isHidden, isHidden, isHideBreak, isInConstruction, isInside, isJobTarget, isKeep, isKeepClose, isLarge, isMainParameter, isOwnedByControl, isParameter, isPartial, isRekFlag, isSelectable, isSlider, isSolid, isSolid, isSpecialParameter, isStrongSelected, isSuperHidden, isSuperHidden, isTarget, labelSelected, laterBind, laterTranslate, locallyLike, move, mustHide, nearto, replaceExpressions, round, round, round, roundDisplay, save, secondaryParams, selected, setAlias, setBack, setBold, setBreak, setBreakHide, setcOffset, setColor, setColor, setColorType, setConstruction, setDisplaySize, setDragable, setExpression, setFixed, setFixed, setFixed, setFlag, setFont, setGotNCount, setHidden, setHideBreak, setInConstruction, setIncrement, setIndicated, setIndicated, setInside, setJobTarget, setKeep, setKeepClose, setKeepClose, setLabelSelected, setLarge, setLines, setMainParameter, setName, setName, setNameCheck, setNameWithNumber, setNCount, setObtuse, setOffset, setOwnedByControl, setParameter, setPartial, setPrompt, setRekFlag, setSelectable, setSelected, setShowName, setShowValue, setSlider, setSlider, setSolid, setSpecialColor, setSpecialParameter, setStrongSelected, setSuperHidden, setTarget, setText, setText, setTracked, setTranslation, setUnit, showName, showName, showValue, showValue, snap, testConditional, text1, text2, text3, text4, textAny, textcontains, toggleHidden, tracked, translateConditionals, translateExpressions, translateOffset, updateCircleDep, valid, visible, xcOffset, ycOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JLocusTrackObject

public JLocusTrackObject(carmetal.construction.Construction c,
                         ConstructionObject p,
                         ConstructionObject[] po,
                         int pn,
                         ConstructionObject o,
                         PointObject pm)
Method Detail

searchDependencies

public void searchDependencies(carmetal.construction.Construction c)
Specified by:
searchDependencies in interface HeavyObject

searchDependencies

public void searchDependencies(carmetal.construction.Construction c,
                               ConstructionObject o,
                               ConstructionObject avoid)

recursiveSearchDependencies

public void recursiveSearchDependencies(ConstructionObject o,
                                        ConstructionObject avoid)

needsToRecompute

public boolean needsToRecompute()
Specified by:
needsToRecompute in interface HeavyObject

refresh

public void refresh()

fline

public static double fline(double x)

addCoordinates

public void addCoordinates(Vector v,
                           ConstructionObject p)
Overrides:
addCoordinates in class TrackObject

docomputeCircle

public void docomputeCircle()

docomputeLine

public void docomputeLine()

docomputeRay

public void docomputeRay()

docomputeSegments

public void docomputeSegments()

docomputeQuadric

public void docomputeQuadric()
Compute the locus of a point on conic The idea is to consider the first point A of the conic (first of five points) then imagine a unit circle centered on A, imagine a point B on this circle, then compute intersections between line (AB) and the conic. This will give continuous points set on the conic, then refresh to get the locus point.

Parameters:
zc -

docomputeExpression

public void docomputeExpression()

docomputeTrack

public void docomputeTrack()

docomputeFunction

public void docomputeFunction()

docomputeArea

public void docomputeArea()

compute

public void compute(carmetal.rene.zirkel.ZirkelCanvas zc)
Overrides:
compute in class TrackObject

compute

public void compute()
Specified by:
compute in interface HeavyObject

paint

public void paint(carmetal.rene.zirkel.graphics.MyGraphics g,
                  carmetal.rene.zirkel.ZirkelCanvas zc)
Overrides:
paint in class TrackObject

isSpecial

public boolean isSpecial()
Overrides:
isSpecial in class ConstructionObject

setSpecial

public void setSpecial(boolean f)
Overrides:
setSpecial in class ConstructionObject

equals

public boolean equals(ConstructionObject o)
Overrides:
equals in class TrackObject

copy

public ConstructionObject copy(double x,
                               double y)
Description copied from class: ConstructionObject
This clones the object for macro construction. NOTE: This must be overriden in all items to translate the mother objects.

Overrides:
copy in class ConstructionObject


© Copyright 2005 S.Chekanov. All Rights Reserved.
jHPlot package, a part of jHepWork: is a full-featured multiplatform data-analysis framework