carmetal.objects
Class CircleObject

java.lang.Object
  extended by carmetal.objects.ConstructionObject
      extended by carmetal.objects.PrimitiveCircleObject
          extended by carmetal.objects.CircleObject
All Implemented Interfaces:
InsideObject, MoveableObject, PointonObject, carmetal.rene.lister.Element, carmetal.rene.util.sort.SortObject, Cloneable

public class CircleObject
extends PrimitiveCircleObject
implements MoveableObject

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 carmetal.objects.ConstructionObject
addConditional, addDepInExpressions, canDisplayName, canKeepClose, changedBy, checkConditionals, clearConditional, clearConditionals, clearParameter, compare, copyProperties, dependsOn, depset, depset, depset, discardMV, displays, drawCenteredLabel, drawLabel, drawLabel, drawPointLabel, edit, equals, equalsTo, getAlias, getCDPDisplayValue, getCDPSizeDisplay, getColor, getColorIndex, getColorIndex, getColorType, getColorType, getConditional, getConditionalColor, getConstruction, getDepArray, getDescription, getDisplaySize, getDisplayText, getE, getElementColor, getElementString, getElementString, getEX, getEXpos, getExpression, getEY, getEYpos, getIncrement, getLines, getMax, getMin, getName, getNCount, getObtuse, getPointObject, getPrompt, getSpecialColor, getText, getTranslation, getType, getUnit, getVector, getZ, hasUnit, haveConditional, haveConditionals, helpDisplayNumber, helpDisplayValue, indicated, isBack, isBack, isBold, isBreak, isBreakHide, isDragable, isDriverObject, 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, mustHide, replaceExpressions, round, round, round, roundDisplay, save, selected, setAlias, setBack, setBold, setBreak, setBreakHide, setcOffset, setColor, setColor, setColorType, setConstruction, setDisplaySize, setDragable, setExpression, setFixed, setFixed, setFixed, setFlag, setFont, setGotNCount, setHidden, setHideBreak, setInConstruction, setIncrement, setIndicated, setIndicated, setInside, setJobTarget, setKeep, setKeepClose, 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, testConditional, text1, text2, text3, text4, textAny, textcontains, tracked, translateConditionals, translateExpressions, translateOffset, valid, visible, xcOffset, ycOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

P2

protected PointObject P2
Constructor Detail

CircleObject

public CircleObject(carmetal.construction.Construction c,
                    PointObject p1,
                    PointObject p2)
Build a circle

Parameters:
c -
p1 - 1st point
p2 - 2nd point
Method Detail

getTag

public String getTag()
Overrides:
getTag in class PrimitiveCircleObject

updateText

public void updateText()
Overrides:
updateText in class ConstructionObject

validate

public void validate()
Overrides:
validate in class ConstructionObject

printArgs

public void printArgs(carmetal.rene.util.xml.XmlWriter xml)
Overrides:
printArgs in class PrimitiveCircleObject

canFix

public boolean canFix()
Overrides:
canFix in class ConstructionObject

fixed

public boolean fixed()
Overrides:
fixed in class ConstructionObject

setFixed

public void setFixed(boolean flag,
                     String s)
              throws carmetal.construction.ConstructionException
Overrides:
setFixed in class ConstructionObject
Throws:
carmetal.construction.ConstructionException

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 PrimitiveCircleObject

isValidFix

public boolean isValidFix()

updateCircleDep

public void updateCircleDep()
Overrides:
updateCircleDep in class ConstructionObject

translate

public void translate()
Description copied from class: ConstructionObject
Override in children! This translates the mother items.

Overrides:
translate in class PrimitiveCircleObject

getStringLength

public String getStringLength()
Overrides:
getStringLength in class ConstructionObject

getValue

public double getValue()
                throws carmetal.construction.ConstructionException
Description copied from class: ConstructionObject
Get the value of an object or throw an exception (e.g. if invalid). Not all objects have a value.

Overrides:
getValue in class ConstructionObject
Throws:
carmetal.construction.ConstructionException

depending

public Enumeration depending()
Description copied from class: PrimitiveCircleObject
A circle depends on its midpoint at least. Other circles depen on more points! No circle depends on Start and End.

Overrides:
depending in class PrimitiveCircleObject

setP1P2

public void setP1P2(PointObject p1,
                    PointObject p2)

getP2

public PointObject getP2()

contains

public boolean contains(PointObject p)
Overrides:
contains in class ConstructionObject

dragTo

public void dragTo(double x,
                   double y)
Specified by:
dragTo in interface MoveableObject

move

public void move(double x,
                 double y)
Specified by:
move in interface MoveableObject
Overrides:
move in class ConstructionObject

moveable

public boolean moveable()
Specified by:
moveable in interface MoveableObject

startDrag

public void startDrag(double x,
                      double y)
Specified by:
startDrag in interface MoveableObject

getOldX

public double getOldX()
Specified by:
getOldX in interface MoveableObject

getOldY

public double getOldY()
Specified by:
getOldY in interface MoveableObject

snap

public void snap(carmetal.rene.zirkel.ZirkelCanvas zc)
Overrides:
snap in class ConstructionObject


© Copyright 2005 S.Chekanov. All Rights Reserved.
jHPlot package, a part of jHepWork: is a full-featured multiplatform data-analysis framework