carmetal.objects
Class AngleObject

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

public class AngleObject
extends ConstructionObject
implements InsideObject

Angle object


Field Summary
protected  int DisplaySize
           
static int LARGE
           
static int LARGER
           
static int NORMALSIZE
           
protected  PointObject P1
           
protected  PointObject P2
           
protected  PointObject P3
           
static int RECT
           
static int SMALL
           
static char[] Translation
           
 
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, TX1, TX2, TY1, TY2, Unit, Valid, Value, VRek, XcOffset, YcOffset
 
Constructor Summary
AngleObject(carmetal.construction.Construction c)
           
AngleObject(carmetal.construction.Construction c, PointObject p1, PointObject p2, PointObject p3)
          Build a angle object
 
Method Summary
 boolean canFix()
           
 boolean canKeepClose()
           
 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.
 boolean equals(ConstructionObject o)
           
 boolean fixed()
           
 int getDisplaySize()
           
 String getDisplayValue()
          To be overridden by the objects.
 String getE()
           
 double getLength()
           
 int getN()
           
 String getTag()
           
 double getValue()
          Get the value of an object or throw an exception (e.g.
 boolean isFilled()
           
 boolean isFilledForSelect()
           
 boolean keepInside(PointObject P)
           
 boolean maybeTransparent()
           
 boolean nearto(int x, int y, 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)
           
 void printArgs(carmetal.rene.util.xml.XmlWriter xml)
           
 void setDefaults()
           
 void setDisplaySize(int i)
           
 void setFilled(boolean flag)
           
 void setFixed(boolean flag)
           
 void setFixed(String s)
           
 void setKeepClose(double x, double y)
           
 void setTargetDefaults()
           
 void translate()
          Override in children! This translates the mother items.
static String translateToUnicode(String s)
           
 void updateText()
           
 void validate()
           
 
Methods inherited from class carmetal.objects.ConstructionObject
addConditional, addDepInExpressions, canDisplayName, changedBy, checkConditionals, clearCircleDep, clearConditional, clearConditionals, clearParameter, compare, contains, copy, 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, getDisplayText, getDistance, getElementColor, getElementString, getElementString, getEquation, getEX, getEXpos, getExpression, getEY, getEYpos, getIncrement, getLines, getMax, getMin, getName, getNCount, getObtuse, getPointObject, getPrompt, getR, getSpecialColor, getStringLength, getText, getTranslation, getType, getUnit, getVector, getX, getY, 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, isPartial, isRekFlag, isSelectable, isSlider, isSolid, isSolid, isSpecial, isSpecialParameter, isStrongSelected, isSuperHidden, isSuperHidden, isTarget, labelSelected, laterBind, laterTranslate, locallyLike, move, mustHide, nearto, onlynearto, replaceExpressions, round, round, round, roundDisplay, save, secondaryParams, selected, setAlias, setBack, setBold, setBreak, setBreakHide, setcOffset, setColor, setColor, setColorType, setConstruction, setDragable, setExpression, 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, setPartial, 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, translateConditionals, translateExpressions, translateOffset, updateCircleDep, valid, visible, xcOffset, ycOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

P1

protected PointObject P1

P2

protected PointObject P2

P3

protected PointObject P3

NORMALSIZE

public static final int NORMALSIZE
See Also:
Constant Field Values

SMALL

public static final int SMALL
See Also:
Constant Field Values

LARGER

public static final int LARGER
See Also:
Constant Field Values

LARGE

public static final int LARGE
See Also:
Constant Field Values

RECT

public static final int RECT
See Also:
Constant Field Values

DisplaySize

protected int DisplaySize

Translation

public static char[] Translation
Constructor Detail

AngleObject

public AngleObject(carmetal.construction.Construction c,
                   PointObject p1,
                   PointObject p2,
                   PointObject p3)
Build a angle object

Parameters:
c - contraction
p1 - 1st point
p2 - 2nd point
p3 - 3rd point

AngleObject

public AngleObject(carmetal.construction.Construction c)
Method Detail

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

getN

public int getN()
Overrides:
getN in class ConstructionObject

updateText

public void updateText()
Overrides:
updateText in class ConstructionObject

getDisplayValue

public String getDisplayValue()
Description copied from class: ConstructionObject
To be overridden by the objects.

Overrides:
getDisplayValue in class ConstructionObject
Returns:
The string to display the value (length, coordinates) of the object.

nearto

public boolean nearto(int x,
                      int y,
                      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

validate

public void validate()
Overrides:
validate 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

getLength

public double getLength()

fixed

public boolean fixed()
Overrides:
fixed in class ConstructionObject

setFixed

public void setFixed(boolean flag)
Overrides:
setFixed in class ConstructionObject

setFixed

public void setFixed(String s)
Overrides:
setFixed in class ConstructionObject

canFix

public boolean canFix()
Overrides:
canFix in class ConstructionObject

printArgs

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

setDisplaySize

public void setDisplaySize(int i)
Overrides:
setDisplaySize in class ConstructionObject

getDisplaySize

public int getDisplaySize()
Overrides:
getDisplaySize in class ConstructionObject

depending

public Enumeration depending()
Description copied from class: ConstructionObject
Return an enumeration of objects, that this object depends on. This should usually called from children via super.

Overrides:
depending in class ConstructionObject

equals

public boolean equals(ConstructionObject o)
Overrides:
equals in class ConstructionObject

translateToUnicode

public static String translateToUnicode(String s)

translate

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

Overrides:
translate in class ConstructionObject

getE

public String getE()
Overrides:
getE 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

setFilled

public void setFilled(boolean flag)
Overrides:
setFilled in class ConstructionObject

isFilled

public boolean isFilled()
Overrides:
isFilled in class ConstructionObject

maybeTransparent

public boolean maybeTransparent()
Overrides:
maybeTransparent in class ConstructionObject

isFilledForSelect

public boolean isFilledForSelect()
Overrides:
isFilledForSelect in class ConstructionObject

containsInside

public double containsInside(PointObject P)
Description copied from interface: InsideObject
Returns 0.5, if the point is on the boundary, and 1, if it is inside.

Specified by:
containsInside in interface InsideObject

keepInside

public boolean keepInside(PointObject P)
Specified by:
keepInside in interface InsideObject


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