|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcarmetal.objects.ConstructionObject
carmetal.objects.PrimitiveCircleObject
carmetal.objects.CircleObject
public class CircleObject
Build a circle from 2 points
| Field Summary | |
|---|---|
protected PointObject |
P2
|
| Fields inherited from class carmetal.objects.PrimitiveCircleObject |
|---|
R, 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 | |
|---|---|
CircleObject(carmetal.construction.Construction c,
PointObject p1,
PointObject p2)
Build a circle |
|
| Method Summary | |
|---|---|
boolean |
canFix()
|
boolean |
contains(PointObject p)
|
Enumeration |
depending()
A circle depends on its midpoint at least. |
void |
dragTo(double x,
double y)
|
boolean |
fixed()
|
double |
getOldX()
|
double |
getOldY()
|
PointObject |
getP2()
|
String |
getStringLength()
|
String |
getTag()
|
double |
getValue()
Get the value of an object or throw an exception (e.g. |
boolean |
isValidFix()
|
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 |
printArgs(carmetal.rene.util.xml.XmlWriter xml)
|
void |
setFixed(boolean flag,
String s)
|
void |
setP1P2(PointObject p1,
PointObject p2)
|
void |
snap(carmetal.rene.zirkel.ZirkelCanvas zc)
|
void |
startDrag(double x,
double y)
|
void |
translate()
Override in children! This translates the mother items. |
void |
updateCircleDep()
|
void |
updateText()
|
void |
validate()
|
| Methods inherited from class carmetal.objects.PrimitiveCircleObject |
|---|
addDep, canInteresectWith, clearCircleDep, clearRange, computeA1A2, contains, containsInside, copy, equals, getA1, getA2, getArc, getDisplayValue, getDistance, getEnd, getEquation, getN, getP1, getR, getStart, getX, getY, hasRange, intersect, isFilled, isFilledForSelect, isPartial, keepInside, locallyLike, maybeTransparent, nearto, onlynearto, paint, project, project, repulse, secondaryParams, setArc, setDefaults, setFilled, setMR, setPartial, setRange, setRange, setTargetDefaults, toggleHidden |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PointObject P2
| Constructor Detail |
|---|
public CircleObject(carmetal.construction.Construction c,
PointObject p1,
PointObject p2)
c - p1 - 1st pointp2 - 2nd point| Method Detail |
|---|
public String getTag()
getTag in class PrimitiveCircleObjectpublic void updateText()
updateText in class ConstructionObjectpublic void validate()
validate in class ConstructionObjectpublic void printArgs(carmetal.rene.util.xml.XmlWriter xml)
printArgs in class PrimitiveCircleObjectpublic boolean canFix()
canFix in class ConstructionObjectpublic boolean fixed()
fixed in class ConstructionObject
public void setFixed(boolean flag,
String s)
throws carmetal.construction.ConstructionException
setFixed in class ConstructionObjectcarmetal.construction.ConstructionException
public boolean nearto(int c,
int r,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
nearto in class PrimitiveCircleObjectpublic boolean isValidFix()
public void updateCircleDep()
updateCircleDep in class ConstructionObjectpublic void translate()
ConstructionObject
translate in class PrimitiveCircleObjectpublic String getStringLength()
getStringLength in class ConstructionObject
public double getValue()
throws carmetal.construction.ConstructionException
ConstructionObject
getValue in class ConstructionObjectcarmetal.construction.ConstructionExceptionpublic Enumeration depending()
PrimitiveCircleObject
depending in class PrimitiveCircleObject
public void setP1P2(PointObject p1,
PointObject p2)
public PointObject getP2()
public boolean contains(PointObject p)
contains in class ConstructionObject
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 void snap(carmetal.rene.zirkel.ZirkelCanvas zc)
snap in class ConstructionObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||