carmetal.objects
Class PrimitiveLineObject
java.lang.Object
carmetal.objects.ConstructionObject
carmetal.objects.PrimitiveLineObject
- All Implemented Interfaces:
- PointonObject, carmetal.rene.lister.Element, carmetal.rene.util.sort.SortObject, Cloneable
- Direct Known Subclasses:
- AxisObject, FixedAngleObject, ParallelObject, PlumbObject, TwoPointLineObject
public class PrimitiveLineObject
- extends ConstructionObject
- implements PointonObject
|
Field Summary |
protected double |
DX
|
protected double |
DY
|
protected PointObject |
P1
|
protected double |
X1
|
protected double |
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 |
|
Method Summary |
void |
addDep(PointObject p)
|
boolean |
canInteresectWith(ConstructionObject o)
|
boolean |
canKeepClose()
|
void |
clearCircleDep()
|
boolean |
contains(double x,
double y)
Test, if the projection of (x,y) to the line contains that point. |
boolean |
equals(ConstructionObject o)
|
int |
getDistance(PointObject P)
|
double |
getDX()
|
double |
getDY()
|
String |
getEquation()
|
PointObject |
getP1()
|
String |
getTag()
|
double |
getX()
|
double |
getY()
|
static carmetal.rene.zirkel.structures.Coordinates |
intersect(PrimitiveLineObject l,
PrimitiveCircleObject c)
|
static carmetal.rene.zirkel.structures.Coordinates |
intersect(PrimitiveLineObject l1,
PrimitiveLineObject l2)
|
static carmetal.rene.zirkel.structures.Coordinates |
intersect(PrimitiveLineObject l,
QuadricObject q)
|
boolean |
isPartial()
|
boolean |
locallyLike(ConstructionObject o)
|
boolean |
nearto(int c,
int r,
carmetal.rene.zirkel.ZirkelCanvas zc)
Test, if this object is chosen with coordinates x,y |
boolean |
onlynearto(int c,
int r,
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)
|
Enumeration |
points()
|
void |
printArgs(carmetal.rene.util.xml.XmlWriter xml)
|
double |
project(double x,
double y)
|
void |
project(PointObject P)
|
void |
project(PointObject P,
double alpha)
|
void |
repulse(PointObject P)
|
void |
setDefaults()
|
void |
setKeepClose(double x,
double y)
|
void |
setP1DXDY(PointObject p,
double dx,
double dy)
|
void |
setPartial(boolean partial)
|
void |
setTargetDefaults()
|
| Methods inherited from class carmetal.objects.ConstructionObject |
addConditional, addDepInExpressions, canDisplayName, canFix, changedBy, checkConditionals, clearConditional, clearConditionals, clearParameter, compare, contains, copy, copyProperties, depending, dependsOn, depset, depset, depset, discardMV, displays, drawCenteredLabel, drawLabel, drawLabel, drawPointLabel, edit, equals, equalsTo, fixed, getAlias, getCDPDisplayValue, getCDPSizeDisplay, getColor, getColorIndex, getColorIndex, getColorType, getColorType, getConditional, getConditionalColor, getConstruction, getDepArray, getDescription, getDisplaySize, getDisplayText, getDisplayValue, getE, getElementColor, getElementString, getElementString, getEX, getEXpos, getExpression, getEY, getEYpos, getIncrement, getLines, getMax, getMin, getN, getName, getNCount, getObtuse, getPointObject, getPrompt, getR, getSpecialColor, getStringLength, getText, getTranslation, getType, getUnit, getValue, getVector, getZ, hasUnit, haveConditional, haveConditionals, helpDisplayNumber, helpDisplayValue, indicated, isBack, isBack, isBold, isBreak, isBreakHide, isDragable, isDriverObject, isFilled, isFilledForSelect, isFixed, isFlag, isGotNCount, isHidden, isHidden, isHideBreak, isInConstruction, isInside, isJobTarget, isKeep, isKeepClose, isLarge, isMainParameter, isOwnedByControl, isParameter, isRekFlag, isSelectable, isSlider, isSolid, isSolid, isSpecial, isSpecialParameter, isStrongSelected, isSuperHidden, isSuperHidden, isTarget, labelSelected, laterBind, laterTranslate, maybeTransparent, move, mustHide, nearto, replaceExpressions, round, round, round, roundDisplay, save, secondaryParams, selected, setAlias, setBack, setBold, setBreak, setBreakHide, setcOffset, setColor, setColor, setColorType, setConstruction, setDisplaySize, setDragable, setExpression, setFilled, setFixed, setFixed, setFixed, setFixed, setFlag, setFont, setGotNCount, setHidden, setHideBreak, setInConstruction, setIncrement, setIndicated, setIndicated, setInside, setJobTarget, setKeep, setKeepClose, setLabelSelected, setLarge, setLines, setMainParameter, setName, setName, setNameCheck, setNameWithNumber, setNCount, setObtuse, setOffset, setOwnedByControl, setParameter, setPrompt, setRekFlag, setSelectable, setSelected, setShowName, setShowValue, setSlider, setSlider, setSolid, setSpecial, setSpecialColor, setSpecialParameter, setStrongSelected, setSuperHidden, setTarget, setText, setText, setTracked, setTranslation, setType, setUnit, showName, showName, showValue, showValue, snap, testConditional, text1, text2, text3, text4, textAny, textcontains, toggleHidden, tracked, translate, translateConditionals, translateExpressions, translateOffset, updateCircleDep, updateText, valid, validate, visible, xcOffset, ycOffset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X1
protected double X1
Y1
protected double Y1
DX
protected double DX
DY
protected double DY
P1
protected PointObject P1
PrimitiveLineObject
public PrimitiveLineObject(carmetal.construction.Construction c)
PrimitiveLineObject
public PrimitiveLineObject(carmetal.construction.Construction c,
String Nme)
setP1DXDY
public void setP1DXDY(PointObject p,
double dx,
double dy)
setDefaults
public void setDefaults()
- Overrides:
setDefaults in class ConstructionObject
setTargetDefaults
public void setTargetDefaults()
- Overrides:
setTargetDefaults in class ConstructionObject
getTag
public String getTag()
- Overrides:
getTag in class ConstructionObject
paint
public void paint(carmetal.rene.zirkel.graphics.MyGraphics g,
carmetal.rene.zirkel.ZirkelCanvas zc)
- Overrides:
paint in class ConstructionObject
canKeepClose
public boolean canKeepClose()
- Overrides:
canKeepClose in class ConstructionObject
setKeepClose
public void setKeepClose(double x,
double y)
- Overrides:
setKeepClose in class ConstructionObject
nearto
public boolean nearto(int c,
int r,
carmetal.rene.zirkel.ZirkelCanvas zc)
- Description copied from class:
ConstructionObject
- Test, if this object is chosen with coordinates x,y
- Overrides:
nearto in class ConstructionObject
onlynearto
public boolean onlynearto(int c,
int r,
carmetal.rene.zirkel.ZirkelCanvas zc)
- Description copied from class:
ConstructionObject
- Test, if this object must be chosen with coordinates x,y, assuming it is
near to these coordinates.
- Overrides:
onlynearto in class ConstructionObject
intersect
public static carmetal.rene.zirkel.structures.Coordinates intersect(PrimitiveLineObject l1,
PrimitiveLineObject l2)
intersect
public static carmetal.rene.zirkel.structures.Coordinates intersect(PrimitiveLineObject l,
PrimitiveCircleObject c)
intersect
public static carmetal.rene.zirkel.structures.Coordinates intersect(PrimitiveLineObject l,
QuadricObject q)
getDX
public double getDX()
getDY
public double getDY()
getX
public double getX()
- Overrides:
getX in class ConstructionObject
getY
public double getY()
- Overrides:
getY in class ConstructionObject
getEquation
public String getEquation()
- Overrides:
getEquation in class ConstructionObject
contains
public boolean contains(double x,
double y)
- Test, if the projection of (x,y) to the line contains that point.
printArgs
public void printArgs(carmetal.rene.util.xml.XmlWriter xml)
- Overrides:
printArgs in class ConstructionObject
project
public double project(double x,
double y)
equals
public boolean equals(ConstructionObject o)
- Overrides:
equals in class ConstructionObject
getP1
public PointObject getP1()
points
public Enumeration points()
locallyLike
public boolean locallyLike(ConstructionObject o)
- Overrides:
locallyLike in class ConstructionObject
isPartial
public boolean isPartial()
- Overrides:
isPartial in class ConstructionObject
setPartial
public void setPartial(boolean partial)
- Overrides:
setPartial in class ConstructionObject
addDep
public void addDep(PointObject p)
clearCircleDep
public void clearCircleDep()
- Overrides:
clearCircleDep in class ConstructionObject
getDistance
public int getDistance(PointObject P)
- Overrides:
getDistance in class ConstructionObject
project
public void project(PointObject P)
- Specified by:
project in interface PointonObject
project
public void project(PointObject P,
double alpha)
- Specified by:
project in interface PointonObject
canInteresectWith
public boolean canInteresectWith(ConstructionObject o)
- Specified by:
canInteresectWith in interface PointonObject
repulse
public void repulse(PointObject P)
- Specified by:
repulse in interface PointonObject
© Copyright 2005 S.Chekanov. All Rights Reserved.
jHPlot package, a part of jHepWork: is a full-featured multiplatform data-analysis framework