|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcarmetal.objects.ConstructionObject
carmetal.objects.AreaObject
public class AreaObject
Build an area object
| Field Summary | |
|---|---|
Vector<PointObject> |
V
|
| 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 | |
|---|---|
AreaObject(carmetal.construction.Construction c,
Vector<PointObject> v)
Build an area object from the vector of PointObjects |
|
| Method Summary | |
|---|---|
double |
area()
|
boolean |
between(double x0,
double y0,
double x1,
double y1,
double x,
double y)
|
boolean |
canInteresectWith(ConstructionObject o)
|
boolean |
contains(double x,
double y)
|
boolean |
contains(double x,
double y,
double eps)
|
boolean |
contains2(double x,
double y)
|
double |
containsInside(PointObject P)
Returns 0.5, if the point is on the boundary, and 1, if it is inside. |
Enumeration<PointObject> |
depending()
Return an enumeration of objects, that this object depends on. |
void |
dragTo(double x,
double y)
|
boolean |
equals(ConstructionObject o)
|
String |
getDisplayValue()
To be overridden by the objects. |
int |
getDistance(PointObject P)
|
double |
getOldX()
|
double |
getOldY()
|
String |
getTag()
|
double |
getValue()
Get the value of an object or throw an exception (e.g. |
boolean |
isFilled()
|
void |
keepBaricentricCoords(PointObject P)
|
boolean |
keepInside(PointObject P)
|
boolean |
maybeTransparent()
|
void |
move(double x,
double y)
|
boolean |
moveable()
|
boolean |
nearto(int c,
int r,
boolean ignorefill,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object is chosen with coordinates x,y |
boolean |
nearto(int c,
int r,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object is chosen with coordinates x,y |
boolean |
onlynearto(int x,
int y,
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 |
project(PointObject P)
|
void |
project(PointObject P,
double alpha)
|
void |
repulse(PointObject P)
|
void |
setDefaults()
|
void |
setFilled(boolean flag)
|
void |
setTargetDefaults()
|
void |
snap(carmetal.rene.zirkel.ZirkelCanvas zc)
|
void |
startDrag(double x,
double y)
|
void |
translate()
Override in children! This translates the mother items. |
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 Vector<PointObject> V
| Constructor Detail |
|---|
public AreaObject(carmetal.construction.Construction c,
Vector<PointObject> v)
c - constractorv - Vector with PointObjects| Method Detail |
|---|
public void setDefaults()
setDefaults in class ConstructionObjectpublic void setTargetDefaults()
setTargetDefaults in class ConstructionObjectpublic String getTag()
getTag 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 ConstructionObjectpublic String getDisplayValue()
ConstructionObject
getDisplayValue in class ConstructionObjectpublic void printArgs(carmetal.rene.util.xml.XmlWriter xml)
printArgs in class ConstructionObjectpublic Enumeration<PointObject> depending()
ConstructionObject
depending in class ConstructionObjectpublic void translate()
ConstructionObject
translate in class ConstructionObject
public boolean nearto(int c,
int r,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
nearto in class ConstructionObject
public boolean nearto(int c,
int r,
boolean ignorefill,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
nearto in class ConstructionObject
public boolean contains(double x,
double y,
double eps)
public boolean contains(double x,
double y)
public boolean contains2(double x,
double y)
public double area()
public boolean equals(ConstructionObject o)
equals in class ConstructionObject
public boolean between(double x0,
double y0,
double x1,
double y1,
double x,
double y)
public double getValue()
throws carmetal.construction.ConstructionException
ConstructionObject
getValue in class ConstructionObjectcarmetal.construction.ConstructionExceptionpublic boolean maybeTransparent()
maybeTransparent in class ConstructionObjectpublic void setFilled(boolean flag)
setFilled in class ConstructionObjectpublic boolean isFilled()
isFilled in class ConstructionObject
public boolean onlynearto(int x,
int y,
carmetal.rene.zirkel.ZirkelCanvas zc)
ConstructionObject
onlynearto in class ConstructionObjectpublic void keepBaricentricCoords(PointObject P)
public int getDistance(PointObject P)
getDistance in class ConstructionObjectpublic void project(PointObject P)
project in interface PointonObject
public void project(PointObject P,
double alpha)
project in interface PointonObjectpublic double containsInside(PointObject P)
InsideObject
containsInside in interface InsideObjectpublic boolean keepInside(PointObject P)
keepInside in interface InsideObject
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 ConstructionObjectpublic 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 | |||||||||