|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdevisor2.foundation.GridItem
devisor2.foundation.elements.Node
devisor2.foundation.boundary.BoundaryNode
This class BoundaryNode represents a BoundaryNode of a grid, which is more special than a regular node, because its position is not controlled via the coordinates, but via a parameter value on the boundary segment.
Field Summary | |
Boundary |
boundary
the boundary the node lies on |
Segment |
segment
the segment the node lies on |
double |
t
parameter value of the node on the specific boundary (range: 0 to segmentcount of the specific boundary) |
Fields inherited from class devisor2.foundation.elements.Node |
coord, index, marker, npr, number, parents, value |
Fields inherited from class devisor2.foundation.GridItem |
cc, marked, transformed, xmax, xmin, ymax, ymin |
Constructor Summary | |
BoundaryNode()
Creates a boundary node with parameter value 0 |
|
BoundaryNode(double tt,
Boundary bn)
Creates a boundary node with parameter value tt on boundary bn of the DomainBoundary |
|
BoundaryNode(double tt,
Boundary bn,
Segment s)
Creates a boundary node with parameter value tt on boundary bn of the DomainBoundary |
Method Summary | |
java.lang.Object |
clone()
returns a copy of this boundary node |
Boundary |
getBoundary()
returns the boundary of this node |
int |
getBoundaryNumber()
returns the number of the defining boundary |
double |
getParaValue()
returns the parameter value of this node |
Segment |
getSegment()
returns the segment the node lies on |
void |
setBoundary(Boundary bn)
sets the boundary of this node |
void |
setParaValue(double tt)
sets the parameter value of this boundary node and updates coordinates accordingly |
void |
setSegment(Segment s)
sets the segment to the new value |
void |
swap()
swaps the parameter value of this node |
java.lang.String |
toString()
prints the node's coordinates to the standard output |
void |
updateBoundaryNode()
sets the cartesian coordinates of the node according to the parameter value |
Methods inherited from class devisor2.foundation.elements.Node |
addParent, draw, equals, equals2, getCoord, getCoord, getFathers, getMarker, getNPR, getNumber, getParameters, getParams, getParents, getPerimeter, getValue, interpolate, isHit, isInside, performMirror, performTransformation, removeParent, setCoord, setCoord, setCoord, setCoord, setMarker, setNPR, setNumber, setParameters, setParams, setValue |
Methods inherited from class devisor2.foundation.GridItem |
clearTransformedFlag, isMarked, setMarker, setMarker, unsetMarker |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double t
public Boundary boundary
public Segment segment
Constructor Detail |
public BoundaryNode()
public BoundaryNode(double tt, Boundary bn)
tt
- parameter valuebn
- boundarypublic BoundaryNode(double tt, Boundary bn, Segment s)
tt
- parameter valuebn
- boundarys
- segment to be placed onMethod Detail |
public int getBoundaryNumber()
public double getParaValue()
public void setParaValue(double tt)
public Boundary getBoundary()
public void setBoundary(Boundary bn)
public Segment getSegment()
public void setSegment(Segment s)
public void updateBoundaryNode()
public void swap()
public java.lang.String toString()
Node
toString
in class Node
public java.lang.Object clone()
clone
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |