carmetal.objects
Class EquationXYObject
java.lang.Object
carmetal.objects.ConstructionObject
carmetal.objects.EquationXYObject
- All Implemented Interfaces:
- PointonObject, carmetal.rene.lister.Element, carmetal.rene.util.sort.SortObject, Cloneable
public class EquationXYObject
- extends ConstructionObject
- implements PointonObject
| 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 |
|
Method Summary |
boolean |
canInteresectWith(ConstructionObject o)
|
void |
compute()
|
double |
evaluateF(double x,
double y)
|
void |
findRootBetween(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
|
double |
fix(double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
double l1)
|
int |
getDhor()
|
String |
getDisplayValue()
To be overridden by the objects. |
int |
getDistance(PointObject P)
|
String |
getEY()
|
String |
getTag()
|
double |
getValue(String var)
|
boolean |
nearto(int cc,
int rr,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object is chosen with coordinates x,y |
void |
paint(carmetal.rene.zirkel.graphics.MyGraphics g,
carmetal.rene.zirkel.ZirkelCanvas zc)
|
void |
printArgs(carmetal.rene.util.xml.XmlWriter xml)
|
void |
project(PointObject P)
|
void |
project(PointObject P,
double alpha)
|
void |
repulse(PointObject P)
|
void |
searchOneZerosSegment(Vector v,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
double x3,
double y3,
double z3)
|
void |
searchZerosSegments()
|
void |
setDefaults()
|
void |
setDhor(int newDHor)
|
void |
setEquation(String eq,
carmetal.rene.zirkel.ZirkelCanvas zc)
|
void |
setTargetDefaults()
|
void |
updateText()
|
| Methods inherited from class carmetal.objects.ConstructionObject |
addConditional, addDepInExpressions, canDisplayName, canFix, canKeepClose, changedBy, checkConditionals, clearCircleDep, clearConditional, clearConditionals, clearParameter, compare, contains, copy, copyProperties, depending, dependsOn, depset, depset, depset, discardMV, displays, drawCenteredLabel, drawLabel, drawLabel, drawPointLabel, edit, equals, 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, getEYpos, getIncrement, getLines, getMax, getMin, getN, getName, getNCount, getObtuse, getPointObject, getPrompt, getR, getSpecialColor, getStringLength, getText, getTranslation, getType, getUnit, getValue, getVector, getX, getY, getZ, hasUnit, haveConditional, haveConditionals, helpDisplayNumber, helpDisplayValue, indicated, isBack, isBack, isBold, isBreak, isBreakHide, isDragable, isDriverObject, isFilled, isFilledForSelect, isFixed, isFlag, isGotNCount, isHidden, isHidden, isHideBreak, isInConstruction, isInside, isJobTarget, isKeep, isKeepClose, isLarge, isMainParameter, isOwnedByControl, isParameter, isPartial, isRekFlag, isSelectable, isSlider, isSolid, isSolid, isSpecial, isSpecialParameter, isStrongSelected, isSuperHidden, isSuperHidden, isTarget, labelSelected, laterBind, laterTranslate, locallyLike, maybeTransparent, move, mustHide, nearto, onlynearto, replaceExpressions, round, round, round, roundDisplay, save, secondaryParams, selected, setAlias, setBack, setBold, setBreak, setBreakHide, setcOffset, setColor, setColor, setColorType, setConstruction, setDisplaySize, setDragable, setExpression, setFilled, setFixed, 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, setSpecial, setSpecialColor, setSpecialParameter, setStrongSelected, setSuperHidden, setTarget, setText, setText, setTracked, setTranslation, setType, setUnit, showName, showName, showValue, showValue, snap, testConditional, text1, text2, text3, text4, textAny, textcontains, toggleHidden, tracked, translate, translateConditionals, translateExpressions, translateOffset, updateCircleDep, valid, validate, visible, xcOffset, ycOffset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EquationXYObject
public EquationXYObject(carmetal.construction.Construction c,
String eq)
EquationXYObject
public EquationXYObject(carmetal.construction.Construction c,
String eq,
int d)
getDhor
public int getDhor()
setDhor
public void setDhor(int newDHor)
setDefaults
public void setDefaults()
- Overrides:
setDefaults in class ConstructionObject
setTargetDefaults
public void setTargetDefaults()
- Overrides:
setTargetDefaults in class ConstructionObject
setEquation
public void setEquation(String eq,
carmetal.rene.zirkel.ZirkelCanvas zc)
getValue
public double getValue(String var)
throws carmetal.construction.ConstructionException
- Throws:
carmetal.construction.ConstructionException
evaluateF
public double evaluateF(double x,
double y)
throws carmetal.construction.ConstructionException
- Throws:
carmetal.construction.ConstructionException
compute
public void compute()
searchZerosSegments
public void searchZerosSegments()
searchOneZerosSegment
public void searchOneZerosSegment(Vector v,
double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
double x3,
double y3,
double z3)
fix
public double fix(double x1,
double y1,
double z1,
double x2,
double y2,
double z2,
double l1)
paint
public void paint(carmetal.rene.zirkel.graphics.MyGraphics g,
carmetal.rene.zirkel.ZirkelCanvas zc)
- Overrides:
paint in class ConstructionObject
nearto
public boolean nearto(int cc,
int rr,
carmetal.rene.zirkel.ZirkelCanvas zc)
- Description copied from class:
ConstructionObject
- Test, if this object is chosen with coordinates x,y
- Overrides:
nearto in class ConstructionObject
getDistance
public int getDistance(PointObject P)
- Overrides:
getDistance in class ConstructionObject
project
public void project(PointObject P)
- Specified by:
project in interface PointonObject
findRootBetween
public void findRootBetween(double x1,
double y1,
double z1,
double x2,
double y2,
double z2)
project
public void project(PointObject P,
double alpha)
- Specified by:
project in interface PointonObject
canInteresectWith
public boolean canInteresectWith(ConstructionObject o)
- Specified by:
canInteresectWith in interface PointonObject
getEY
public String getEY()
- Overrides:
getEY in class ConstructionObject
getDisplayValue
public String getDisplayValue()
- Description copied from class:
ConstructionObject
- To be overridden by the objects.
- Overrides:
getDisplayValue in class ConstructionObject
- Returns:
- The string to display the value (length, coordinates) of the
object.
getTag
public String getTag()
- Overrides:
getTag in class ConstructionObject
printArgs
public void printArgs(carmetal.rene.util.xml.XmlWriter xml)
- Overrides:
printArgs in class ConstructionObject
updateText
public void updateText()
- Overrides:
updateText in class ConstructionObject
repulse
public void repulse(PointObject P)
- Specified by:
repulse in interface PointonObject
© Copyright 2005 S.Chekanov. All Rights Reserved.
jHPlot package, a part of jHepWork: is a full-featured multiplatform data-analysis framework