carmetal.objects
Class AxisObject

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

public class AxisObject
extends PrimitiveLineObject


Field Summary
 
Fields inherited from class carmetal.objects.PrimitiveLineObject
DX, DY, P1, X1, 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
 
Constructor Summary
AxisObject(carmetal.construction.Construction c, boolean xaxis)
           
 
Method Summary
 boolean contains(PointObject p)
           
 Enumeration depending()
          Return an enumeration of objects, that this object depends on.
 void dragTo(double x, double y)
           
 double getLength()
           
 double getOldX()
           
 double getOldY()
           
 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 paint(carmetal.rene.zirkel.graphics.MyGraphics g, carmetal.rene.zirkel.ZirkelCanvas zc)
           
 void printArgs(carmetal.rene.util.xml.XmlWriter xml)
           
 void setName()
          Sets a unique name for the object.
 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()
           
 
Methods inherited from class carmetal.objects.PrimitiveLineObject
addDep, canInteresectWith, canKeepClose, clearCircleDep, contains, equals, getDistance, getDX, getDY, getEquation, getP1, getTag, getX, getY, intersect, intersect, intersect, isPartial, locallyLike, onlynearto, points, project, project, project, repulse, setDefaults, setKeepClose, setP1DXDY, setPartial, setTargetDefaults
 
Methods inherited from class carmetal.objects.ConstructionObject
addConditional, addDepInExpressions, canDisplayName, canFix, changedBy, checkConditionals, clearConditional, clearConditionals, clearParameter, compare, copy, copyProperties, 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, 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, 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, toggleHidden, tracked, translateConditionals, translateExpressions, translateOffset, updateCircleDep, valid, validate, visible, xcOffset, ycOffset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AxisObject

public AxisObject(carmetal.construction.Construction c,
                  boolean xaxis)
Method Detail

setName

public void setName()
Description copied from class: ConstructionObject
Sets a unique name for the object. Should be overriden in all items.

Overrides:
setName 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 PrimitiveLineObject

printArgs

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

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

getLength

public double getLength()

translate

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

Overrides:
translate in class ConstructionObject

contains

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

paint

public void paint(carmetal.rene.zirkel.graphics.MyGraphics g,
                  carmetal.rene.zirkel.ZirkelCanvas zc)
Overrides:
paint in class PrimitiveLineObject

updateText

public void updateText()
Overrides:
updateText in class ConstructionObject

dragTo

public void dragTo(double x,
                   double y)

move

public void move(double x,
                 double y)
Overrides:
move in class ConstructionObject

moveable

public boolean moveable()

startDrag

public void startDrag(double x,
                      double y)

snap

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

getOldX

public double getOldX()

getOldY

public double getOldY()


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