|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcarmetal.objects.ConstructionObject
carmetal.objects.TrackObject
public class TrackObject
This object contains an automatic track. It is saved in the construction like any other ConstructionObject. Validation is time consuming and is done only on repaints from ZirkelCanvas.
| Field Summary | |
|---|---|
double |
da
|
boolean |
Discrete
|
double |
DMin
|
boolean |
DontProject
|
double |
DX
|
double |
DY
|
boolean |
Filled
|
boolean |
Fixed
|
ConstructionObject |
O
|
ConstructionObject |
P
|
carmetal.rene.zirkel.graphics.PolygonFiller |
PF
|
PointObject |
PM
|
int |
PMax
|
int |
PN
|
ConstructionObject[] |
PO
|
boolean |
StartFix
|
double |
StepSize
|
int |
Type
|
Vector |
V
|
Vector[] |
VO
|
double |
X
|
double |
Y
|
| Fields inherited from class carmetal.objects.ConstructionObject |
|---|
Back, Bold, Break, BreakHide, C, 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 | |
|---|---|
TrackObject(carmetal.construction.Construction c)
|
|
TrackObject(carmetal.construction.Construction c,
ConstructionObject p,
ConstructionObject[] po,
int pn,
ConstructionObject o,
PointObject pm)
|
|
| Method Summary | |
|---|---|
void |
addCoordinates(Vector v,
ConstructionObject p)
|
void |
addCoordinates(Vector v,
ConstructionObject p,
double x,
double y)
|
void |
addCoordinates(Vector v,
double x,
double y)
|
void |
addSecondary(boolean[] startedO)
|
boolean |
canDisplayName()
|
boolean |
canInteresectWith(ConstructionObject o)
|
void |
compute(carmetal.rene.zirkel.ZirkelCanvas zc)
|
Enumeration |
depending()
Return an enumeration of objects, that this object depends on. |
void |
docompute(carmetal.rene.zirkel.ZirkelCanvas zc)
Complicated procedure to recompute the automatic track. |
boolean |
equals(ConstructionObject o)
|
String |
getDisplayValue()
To be overridden by the objects. |
int |
getDistance(PointObject P)
|
double |
getDMin()
|
double |
getLength()
|
int |
getN()
|
double |
getSum()
|
double |
getSum(double x,
double y)
|
String |
getTag()
|
int |
getType()
|
boolean |
hasUnit()
|
boolean |
isDiscrete()
|
boolean |
isFilled()
|
boolean |
isFixed()
|
boolean |
maybeTransparent()
|
double |
mod(double x)
|
boolean |
nearto(int x,
int y,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object is chosen with coordinates x,y |
boolean |
onlynearto(int c,
int r,
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 |
printType(carmetal.rene.util.xml.XmlWriter xml)
|
void |
project(PointObject P)
Project a point to this object. |
void |
project(PointObject P,
double alpha)
|
void |
repulse(PointObject P)
|
void |
setDefaults()
|
void |
setDiscrete(boolean discrete)
|
void |
setDMin(double dmin)
|
void |
setFilled(boolean flag)
|
void |
setFixed(boolean f)
|
void |
setTargetDefaults()
|
void |
setType(int type)
|
void |
translate()
Override in children! This translates the mother items. |
double |
updateDA(double da,
boolean valid,
double dist,
double dp,
double dmin,
double dmax,
carmetal.rene.zirkel.ZirkelCanvas zc)
|
void |
updateText()
|
void |
validate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public PointObject PM
public ConstructionObject O
public ConstructionObject P
public int PMax
public int PN
public ConstructionObject[] PO
public boolean Filled
public boolean Discrete
public int Type
public carmetal.rene.zirkel.graphics.PolygonFiller PF
public Vector V
public Vector[] VO
public double da
public double X
public double Y
public double DX
public double DY
public boolean DontProject
public double DMin
public double StepSize
public boolean Fixed
public boolean StartFix
| Constructor Detail |
|---|
public TrackObject(carmetal.construction.Construction c)
public TrackObject(carmetal.construction.Construction c,
ConstructionObject p,
ConstructionObject[] po,
int pn,
ConstructionObject o,
PointObject pm)
| Method Detail |
|---|
public void setFilled(boolean flag)
setFilled in class ConstructionObjectpublic boolean isFilled()
isFilled in class ConstructionObjectpublic 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 void validate()
validate in class ConstructionObject
public void paint(carmetal.rene.zirkel.graphics.MyGraphics g,
carmetal.rene.zirkel.ZirkelCanvas zc)
paint in class ConstructionObject
public double getSum(double x,
double y)
throws carmetal.construction.ConstructionException
carmetal.construction.ConstructionException
public double getSum()
throws carmetal.construction.ConstructionException
carmetal.construction.ConstructionException
public double getLength()
throws carmetal.construction.ConstructionException
carmetal.construction.ConstructionExceptionpublic void printArgs(carmetal.rene.util.xml.XmlWriter xml)
printArgs in class ConstructionObjectpublic void printType(carmetal.rene.util.xml.XmlWriter xml)
public Enumeration depending()
ConstructionObject
depending in class ConstructionObjectpublic boolean equals(ConstructionObject o)
equals in class ConstructionObjectpublic void translate()
ConstructionObject
translate in class ConstructionObjectpublic boolean maybeTransparent()
maybeTransparent in class ConstructionObject
public boolean nearto(int x,
int y,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
nearto in class ConstructionObject
public boolean onlynearto(int c,
int r,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
onlynearto in class ConstructionObjectpublic double mod(double x)
public void docompute(carmetal.rene.zirkel.ZirkelCanvas zc)
zc - public void compute(carmetal.rene.zirkel.ZirkelCanvas zc)
public void addSecondary(boolean[] startedO)
public void addCoordinates(Vector v,
ConstructionObject p,
double x,
double y)
public void addCoordinates(Vector v,
ConstructionObject p)
public void addCoordinates(Vector v,
double x,
double y)
public double updateDA(double da,
boolean valid,
double dist,
double dp,
double dmin,
double dmax,
carmetal.rene.zirkel.ZirkelCanvas zc)
public boolean hasUnit()
hasUnit in class ConstructionObjectpublic void project(PointObject P)
project in interface PointonObjectpublic int getDistance(PointObject P)
getDistance in class ConstructionObjectpublic String getDisplayValue()
ConstructionObject
getDisplayValue in class ConstructionObject
public void project(PointObject P,
double alpha)
project in interface PointonObjectpublic boolean canDisplayName()
canDisplayName in class ConstructionObjectpublic boolean isFixed()
isFixed in class ConstructionObjectpublic void setFixed(boolean f)
setFixed in class ConstructionObjectpublic void setDMin(double dmin)
public double getDMin()
public int getType()
getType in class ConstructionObjectpublic void setType(int type)
setType in class ConstructionObjectpublic boolean isDiscrete()
public void setDiscrete(boolean discrete)
public boolean canInteresectWith(ConstructionObject o)
canInteresectWith in interface PointonObjectpublic void repulse(PointObject P)
repulse in interface PointonObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||