|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcarmetal.objects.ConstructionObject
carmetal.objects.AngleObject
public class AngleObject
Angle object
| Field Summary | |
|---|---|
protected int |
DisplaySize
|
static int |
LARGE
|
static int |
LARGER
|
static int |
NORMALSIZE
|
protected PointObject |
P1
|
protected PointObject |
P2
|
protected PointObject |
P3
|
static int |
RECT
|
static int |
SMALL
|
static char[] |
Translation
|
| 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, TX1, TX2, TY1, TY2, Unit, Valid, Value, VRek, XcOffset, YcOffset |
| Constructor Summary | |
|---|---|
AngleObject(carmetal.construction.Construction c)
|
|
AngleObject(carmetal.construction.Construction c,
PointObject p1,
PointObject p2,
PointObject p3)
Build a angle object |
|
| Method Summary | |
|---|---|
boolean |
canFix()
|
boolean |
canKeepClose()
|
double |
containsInside(PointObject P)
Returns 0.5, if the point is on the boundary, and 1, if it is inside. |
Enumeration |
depending()
Return an enumeration of objects, that this object depends on. |
boolean |
equals(ConstructionObject o)
|
boolean |
fixed()
|
int |
getDisplaySize()
|
String |
getDisplayValue()
To be overridden by the objects. |
String |
getE()
|
double |
getLength()
|
int |
getN()
|
String |
getTag()
|
double |
getValue()
Get the value of an object or throw an exception (e.g. |
boolean |
isFilled()
|
boolean |
isFilledForSelect()
|
boolean |
keepInside(PointObject P)
|
boolean |
maybeTransparent()
|
boolean |
nearto(int x,
int y,
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 |
setDefaults()
|
void |
setDisplaySize(int i)
|
void |
setFilled(boolean flag)
|
void |
setFixed(boolean flag)
|
void |
setFixed(String s)
|
void |
setKeepClose(double x,
double y)
|
void |
setTargetDefaults()
|
void |
translate()
Override in children! This translates the mother items. |
static String |
translateToUnicode(String s)
|
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 PointObject P1
protected PointObject P2
protected PointObject P3
public static final int NORMALSIZE
public static final int SMALL
public static final int LARGER
public static final int LARGE
public static final int RECT
protected int DisplaySize
public static char[] Translation
| Constructor Detail |
|---|
public AngleObject(carmetal.construction.Construction c,
PointObject p1,
PointObject p2,
PointObject p3)
c - contractionp1 - 1st pointp2 - 2nd pointp3 - 3rd pointpublic AngleObject(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 String getDisplayValue()
ConstructionObject
getDisplayValue in class ConstructionObject
public boolean nearto(int x,
int y,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
nearto 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 ConstructionObjectpublic boolean canKeepClose()
canKeepClose in class ConstructionObject
public void setKeepClose(double x,
double y)
setKeepClose in class ConstructionObjectpublic double getLength()
public boolean fixed()
fixed in class ConstructionObjectpublic void setFixed(boolean flag)
setFixed in class ConstructionObjectpublic void setFixed(String s)
setFixed in class ConstructionObjectpublic boolean canFix()
canFix in class ConstructionObjectpublic void printArgs(carmetal.rene.util.xml.XmlWriter xml)
printArgs in class ConstructionObjectpublic void setDisplaySize(int i)
setDisplaySize in class ConstructionObjectpublic int getDisplaySize()
getDisplaySize in class ConstructionObjectpublic Enumeration depending()
ConstructionObject
depending in class ConstructionObjectpublic boolean equals(ConstructionObject o)
equals in class ConstructionObjectpublic static String translateToUnicode(String s)
public void translate()
ConstructionObject
translate in class ConstructionObjectpublic String getE()
getE in class ConstructionObject
public double getValue()
throws carmetal.construction.ConstructionException
ConstructionObject
getValue in class ConstructionObjectcarmetal.construction.ConstructionExceptionpublic void setFilled(boolean flag)
setFilled in class ConstructionObjectpublic boolean isFilled()
isFilled in class ConstructionObjectpublic boolean maybeTransparent()
maybeTransparent in class ConstructionObjectpublic boolean isFilledForSelect()
isFilledForSelect in class ConstructionObjectpublic double containsInside(PointObject P)
InsideObject
containsInside in interface InsideObjectpublic boolean keepInside(PointObject P)
keepInside in interface InsideObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||