|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcarmetal.objects.ConstructionObject
carmetal.objects.PrimitiveLineObject
carmetal.objects.FixedAngleObject
public class FixedAngleObject
| Field Summary | |
|---|---|
protected int |
DisplaySize
|
static int |
LARGE
|
static int |
LARGER
|
static int |
NORMALSIZE
|
protected PointObject |
P2
|
static int |
RECT
|
static int |
SMALL
|
| Fields inherited from class carmetal.objects.PrimitiveLineObject |
|---|
DX, DY, P1, X1, Y1 |
| 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 | |
|---|---|
FixedAngleObject(carmetal.construction.Construction c,
PointObject p1,
PointObject p2,
double x,
double y)
|
|
| Method Summary | |
|---|---|
boolean |
canFix()
|
boolean |
canKeepClose()
|
boolean |
contains(double x,
double y)
Test, if the projection of (x,y) to the line contains that point. |
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. |
void |
dragTo(double x,
double y)
|
boolean |
fixedByNumber()
|
int |
getDisplaySize()
|
String |
getDisplayValue()
To be overridden by the objects. |
String |
getE()
|
boolean |
getInverse()
|
double |
getLength()
|
int |
getN()
|
double |
getOldX()
|
double |
getOldY()
|
String |
getTag()
|
double |
getValue()
Get the value of an object or throw an exception (e.g. |
void |
init(carmetal.construction.Construction c,
double x,
double y)
|
void |
init(carmetal.construction.Construction c,
double x,
double y,
boolean invert)
|
boolean |
isDragable()
|
boolean |
isEditAborted()
|
boolean |
isFilled()
|
boolean |
isFilledForSelect()
|
boolean |
isFixed()
|
boolean |
isReduced()
|
boolean |
keepInside(PointObject P)
|
void |
move(double x,
double y)
|
boolean |
moveable()
|
boolean |
nearto(int c,
int r,
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)
|
Enumeration |
points()
|
void |
printArgs(carmetal.rene.util.xml.XmlWriter xml)
|
double |
project(double x,
double y)
|
void |
resetSimulationValue()
Reset the old value. |
void |
round()
|
void |
setDefaults()
|
void |
setDisplaySize(int i)
|
void |
setDragable(boolean f)
|
void |
setEditFixed(String s)
|
void |
setFilled(boolean flag)
|
void |
setFixed(String s)
|
void |
setInverse(boolean inverse)
|
void |
setKeepClose(double x,
double y)
|
void |
setReduced(boolean f)
|
void |
setSimulationValue(double x)
Set the simulation value, remember the old value. |
void |
setTargetDefaults()
|
void |
startDrag(double x,
double y)
|
void |
translate()
Override in children! This translates the mother items. |
void |
updateText()
|
void |
validate()
|
| Methods inherited from class carmetal.objects.PrimitiveLineObject |
|---|
addDep, canInteresectWith, clearCircleDep, equals, getDistance, getDX, getDY, getEquation, getP1, getX, getY, intersect, intersect, intersect, isPartial, locallyLike, onlynearto, project, project, repulse, setP1DXDY, setPartial |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PointObject P2
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
| Constructor Detail |
|---|
public FixedAngleObject(carmetal.construction.Construction c,
PointObject p1,
PointObject p2,
double x,
double y)
| Method Detail |
|---|
public void setDefaults()
setDefaults in class PrimitiveLineObjectpublic void setTargetDefaults()
setTargetDefaults in class PrimitiveLineObject
public void init(carmetal.construction.Construction c,
double x,
double y,
boolean invert)
public void init(carmetal.construction.Construction c,
double x,
double y)
public void paint(carmetal.rene.zirkel.graphics.MyGraphics g,
carmetal.rene.zirkel.ZirkelCanvas zc)
paint in class PrimitiveLineObjectpublic boolean canKeepClose()
canKeepClose in class PrimitiveLineObject
public void setKeepClose(double x,
double y)
setKeepClose in class PrimitiveLineObjectpublic String getTag()
getTag in class PrimitiveLineObjectpublic int getN()
getN in class ConstructionObjectpublic void updateText()
updateText in class ConstructionObjectpublic String getDisplayValue()
ConstructionObject
getDisplayValue in class ConstructionObjectpublic void validate()
validate in class ConstructionObjectpublic double getLength()
public void setFixed(String s)
setFixed in class ConstructionObjectpublic void round()
round in class ConstructionObjectpublic void setEditFixed(String s)
public boolean canFix()
canFix in class ConstructionObjectpublic void printArgs(carmetal.rene.util.xml.XmlWriter xml)
printArgs in class PrimitiveLineObject
public boolean nearto(int c,
int r,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
nearto in class PrimitiveLineObjectpublic void setDisplaySize(int i)
setDisplaySize in class ConstructionObjectpublic int getDisplaySize()
getDisplaySize in class ConstructionObjectpublic Enumeration depending()
ConstructionObject
depending in class ConstructionObjectpublic 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 isFilledForSelect()
isFilledForSelect in class ConstructionObject
public boolean contains(double x,
double y)
PrimitiveLineObject
contains in class PrimitiveLineObject
public double project(double x,
double y)
project in class PrimitiveLineObjectpublic Enumeration points()
points in class PrimitiveLineObject
public void move(double x,
double y)
move in interface MoveableObjectmove in class ConstructionObjectpublic boolean moveable()
moveable in interface MoveableObjectpublic boolean isFixed()
isFixed in class ConstructionObjectpublic boolean getInverse()
public void setInverse(boolean inverse)
public boolean isEditAborted()
public boolean isDragable()
isDragable in class ConstructionObjectpublic void setDragable(boolean f)
setDragable in class ConstructionObjectpublic boolean isReduced()
public void setReduced(boolean f)
public boolean fixedByNumber()
public void setSimulationValue(double x)
setSimulationValue in interface SimulationObjectpublic void resetSimulationValue()
resetSimulationValue in interface SimulationObject
public void startDrag(double x,
double y)
startDrag in interface MoveableObject
public void dragTo(double x,
double y)
dragTo in interface MoveableObjectpublic double getOldX()
getOldX in interface MoveableObjectpublic double getOldY()
getOldY in interface MoveableObjectpublic 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 | |||||||||