|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcarmetal.objects.ConstructionObject
carmetal.objects.UserFunctionObject
public class UserFunctionObject
| Field Summary | |
|---|---|
boolean |
EditAborted
|
protected carmetal.rene.zirkel.expression.Expression |
EXpos
|
protected carmetal.rene.zirkel.expression.Expression |
EYpos
|
protected boolean |
Fixed
|
protected double |
Xpos
|
protected double |
Ypos
|
| 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 | |
|---|---|
UserFunctionObject(carmetal.construction.Construction c)
|
|
| Method Summary | |
|---|---|
void |
addDepending(carmetal.rene.zirkel.expression.Expression E)
|
boolean |
canDisplayName()
|
void |
clearChanges()
|
Enumeration |
depending()
Return an enumeration of objects, that this object depends on. |
void |
dragTo(double x,
double y)
|
boolean |
equals(ConstructionObject o)
|
double |
evaluateF(double x)
|
double |
evaluateF(double[] x)
|
double |
evaluateF(double x,
double y)
|
boolean |
fixed()
|
String |
getDisplayValue()
To be overridden by the objects. |
String |
getEXpos()
|
String |
getEY()
|
String |
getEYpos()
|
int |
getN()
|
double |
getOldX()
|
double |
getOldY()
|
String |
getTag()
|
double |
getValue()
Get the value of an object or throw an exception (e.g. |
double |
getValue(String var)
|
String |
getVar()
|
double |
getX()
|
double |
getY()
|
boolean |
hasUnit()
|
boolean |
isDriverObject()
|
boolean |
isFilledForSelect()
|
boolean |
isValid()
|
boolean |
maybeTransparent()
|
void |
move(double x,
double y)
|
boolean |
moveable()
|
boolean |
nearto(int cc,
int rr,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object is chosen with coordinates x,y |
boolean |
onlynearto(int x,
int y,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object must be chosen with coordinates x,y, assuming it is near to these coordinates. |
void |
paint(carmetal.rene.zirkel.graphics.MyGraphics g,
carmetal.rene.zirkel.ZirkelCanvas zc)
|
void |
printArgs(carmetal.rene.util.xml.XmlWriter xml)
|
void |
setDefaults()
|
void |
setExpressions(String t,
String ey)
|
void |
setFixed(boolean flag)
|
void |
setFixed(String x,
String y)
|
void |
setTargetDefaults()
|
boolean |
somethingChanged()
|
void |
startDrag(double x,
double y)
|
void |
translate()
Override in children! This translates the mother items. |
void |
updateText()
|
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected double Xpos
protected double Ypos
protected boolean Fixed
protected carmetal.rene.zirkel.expression.Expression EXpos
protected carmetal.rene.zirkel.expression.Expression EYpos
public boolean EditAborted
| Constructor Detail |
|---|
public UserFunctionObject(carmetal.construction.Construction c)
| Method Detail |
|---|
public void setDefaults()
setDefaults in class ConstructionObjectpublic void setTargetDefaults()
setTargetDefaults in class ConstructionObjectpublic String getTag()
getTag in class ConstructionObjectpublic int getN()
getN in class ConstructionObjectpublic void updateText()
updateText in class ConstructionObjectpublic boolean isValid()
public void validate()
validate in class ConstructionObject
public void setExpressions(String t,
String ey)
public String getEY()
getEY in class ConstructionObject
public void paint(carmetal.rene.zirkel.graphics.MyGraphics g,
carmetal.rene.zirkel.ZirkelCanvas zc)
paint in class ConstructionObject
public double getValue()
throws carmetal.construction.ConstructionException
ConstructionObject
getValue in class ConstructionObjectcarmetal.construction.ConstructionException
public double getValue(String var)
throws carmetal.construction.ConstructionException
carmetal.construction.ConstructionExceptionpublic String getDisplayValue()
ConstructionObject
getDisplayValue in class ConstructionObject
public boolean nearto(int cc,
int rr,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
nearto in class ConstructionObjectpublic void printArgs(carmetal.rene.util.xml.XmlWriter xml)
printArgs in class ConstructionObjectpublic void translate()
ConstructionObject
translate in class ConstructionObjectpublic void setFixed(boolean flag)
setFixed in class ConstructionObject
public void setFixed(String x,
String y)
setFixed in class ConstructionObjectpublic boolean fixed()
fixed in class ConstructionObjectpublic String getEXpos()
getEXpos in class ConstructionObjectpublic String getEYpos()
getEYpos in class ConstructionObject
public boolean onlynearto(int x,
int y,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
onlynearto in class ConstructionObjectpublic boolean equals(ConstructionObject o)
equals in class ConstructionObjectpublic Enumeration depending()
ConstructionObject
depending in class ConstructionObjectpublic void addDepending(carmetal.rene.zirkel.expression.Expression E)
public boolean hasUnit()
hasUnit in class ConstructionObject
public double evaluateF(double[] x)
throws carmetal.construction.ConstructionException
carmetal.construction.ConstructionException
public double evaluateF(double x)
throws carmetal.construction.ConstructionException
evaluateF in interface Evaluatorcarmetal.construction.ConstructionException
public double evaluateF(double x,
double y)
throws carmetal.construction.ConstructionException
carmetal.construction.ConstructionExceptionpublic boolean maybeTransparent()
maybeTransparent in class ConstructionObjectpublic boolean canDisplayName()
canDisplayName in class ConstructionObjectpublic boolean isFilledForSelect()
isFilledForSelect in class ConstructionObjectpublic String getVar()
public void dragTo(double x,
double y)
dragTo in interface MoveableObject
public void move(double x,
double y)
move in interface MoveableObjectmove in class ConstructionObjectpublic boolean moveable()
moveable in interface MoveableObject
public void startDrag(double x,
double y)
startDrag in interface MoveableObjectpublic double getOldX()
getOldX in interface MoveableObjectpublic double getOldY()
getOldY in interface MoveableObjectpublic double getX()
getX in class ConstructionObjectpublic double getY()
getY in class ConstructionObjectpublic boolean isDriverObject()
isDriverObject in interface DriverObjectisDriverObject in class ConstructionObjectpublic boolean somethingChanged()
somethingChanged in interface DriverObjectpublic void clearChanges()
clearChanges in interface DriverObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||