|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcarmetal.objects.ConstructionObject
carmetal.objects.PointObject
carmetal.objects.IntersectionObject
public class IntersectionObject
This is the parent class of various intersection objects. Intersections are points. Problems are multiple intersections and restrictions to keep one of them away or close to some other point. The most problematic intersections are between objects of type PointonObject. In case of two possible intersection points, there is also the option to switch from one object to the other in automatic tracks. This allows to run through all possible states of a construction.
| Field Summary | |
|---|---|
protected boolean |
Alternate
|
protected carmetal.rene.zirkel.expression.Expression |
Away
|
protected boolean |
First
|
protected ConstructionObject |
P1
|
protected ConstructionObject |
P2
|
protected boolean |
Restricted
|
protected boolean |
StayAway
|
protected boolean |
Switched
|
| Fields inherited from class carmetal.objects.PointObject |
|---|
Alpha, AlphaValid, BarycentricCoordsInitialzed, CIRCLE, CROSS, DCROSS, DIAMOND, DOT, EX, EY, Fixed, Gx, Gy, MaxType, Moveable, MovedBy, SQUARE, Type, UseAlpha, VirtualBound, X, 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 | |
|---|---|
IntersectionObject(carmetal.construction.Construction c,
ConstructionObject p1,
ConstructionObject p2)
|
|
| Method Summary | |
|---|---|
void |
autoAway()
Check, if the other intersection is already visible and defined. |
String |
away()
|
boolean |
canAlternate()
Returns, if this intersection can alternate between two states, like CircleIntersection and LineCircleIntersection. |
Enumeration |
depending()
Return an enumeration of objects, that this object depends on. |
void |
doSwitch()
|
PointObject |
getAway()
|
int |
getN()
|
String |
getTag()
|
boolean |
isAlternate()
|
boolean |
isFirst()
|
boolean |
isRestricted()
|
boolean |
isSwitchable()
|
boolean |
isSwitched()
|
boolean |
nearto(int x,
int y,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object is chosen with coordinates x,y |
void |
printArgs(carmetal.rene.util.xml.XmlWriter xml)
|
void |
setAlternate(boolean flag)
|
boolean |
setAway(String s)
|
boolean |
setAway(String s,
boolean flag)
|
void |
setFirst(boolean flag)
|
void |
setRestricted(boolean flag)
|
boolean |
stayAway()
|
void |
switchBack()
|
void |
translate()
Override in children! This translates the mother items. |
void |
updateText()
|
void |
validate()
|
void |
validate(double x,
double y)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ConstructionObject P1
protected ConstructionObject P2
protected carmetal.rene.zirkel.expression.Expression Away
protected boolean StayAway
protected boolean First
protected boolean Switched
protected boolean Restricted
protected boolean Alternate
| Constructor Detail |
|---|
public IntersectionObject(carmetal.construction.Construction c,
ConstructionObject p1,
ConstructionObject p2)
| Method Detail |
|---|
public String getTag()
getTag in class PointObjectpublic int getN()
getN in class PointObject
public boolean nearto(int x,
int y,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
nearto in class PointObjectpublic void updateText()
updateText in class PointObjectpublic void setFirst(boolean flag)
public boolean isFirst()
public void validate()
validate in class PointObject
public void validate(double x,
double y)
public void printArgs(carmetal.rene.util.xml.XmlWriter xml)
printArgs in class PointObjectpublic String away()
public boolean stayAway()
public boolean setAway(String s,
boolean flag)
public boolean setAway(String s)
public Enumeration depending()
ConstructionObject
depending in class PointObjectpublic void translate()
ConstructionObject
translate in class PointObjectpublic boolean isSwitchable()
public void autoAway()
public void switchBack()
public void doSwitch()
public boolean isSwitched()
public boolean isRestricted()
public void setRestricted(boolean flag)
public PointObject getAway()
public void setAlternate(boolean flag)
public boolean isAlternate()
public boolean canAlternate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||