|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object vmm.core.Exhibit vmm.fractals.RepeatedSegmentFractal vmm.fractals.Hilbert
public class Hilbert
The square-filling Hilbert curve.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class vmm.fractals.RepeatedSegmentFractal |
---|
RepeatedSegmentFractal.RSFView |
Field Summary |
---|
Fields inherited from class vmm.fractals.RepeatedSegmentFractal |
---|
colorRepeatFactor, fastDrawRecursionLevel, fractality, recursionLevel |
Fields inherited from class vmm.core.Exhibit |
---|
decorations, exhibitNeedsRedraw, isMorphing, morphingView, parameters, previousTransform |
Constructor Summary | |
---|---|
Hilbert()
|
Method Summary | |
---|---|
protected Complex[] |
computeNextLevel(Complex[] hilbertCurve,
int computedLevel)
This abstract method computes one approximation level from the previous one, which has already been computed. |
ActionList |
getActionsForView(View view)
Adds a submenu that contains commands for selecting the value of the segmentChoice property. |
int |
getSegmentChoice()
Returns the value of the segmentChoice property. |
void |
setSegmentChoice(int segmentChoice)
Sets the value of the segmentChoice property. |
Methods inherited from class vmm.fractals.RepeatedSegmentFractal |
---|
computeDrawData, doDraw, getCreateAnimation, getDefaultView |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hilbert()
Method Detail |
---|
public int getSegmentChoice()
setSegmentChoice(int)
public void setSegmentChoice(int segmentChoice)
segmentChoice
- The new value of the segmentChoice property. Should be in the
range 1 to 4; otehr values will be silently ignored.public ActionList getActionsForView(View view)
getActionsForView
in class Exhibit
protected Complex[] computeNextLevel(Complex[] hilbertCurve, int computedLevel)
RepeatedSegmentFractal
computeNextLevel
in class RepeatedSegmentFractal
hilbertCurve
- This array stores the points that have been computed for the current approximation level.
This array can be null, if the computedLevel is zero.computedLevel
- This is the approximation level that has been comptuted to get the points in
curvePoints. A zero value for this paramter means that the first, or base level, approximation should
be computed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |