public class PjJuliaSet extends PjProject implements java.awt.event.ComponentListener
Zoom into images by marking a rectangle in display using mark-mode.
HAS_BOUNDARY_PANEL, HAS_CONFIG_PANEL, HAS_INFO_PANEL, HAS_LABEL_PANEL, HAS_MATERIAL_PANEL, HAS_TEXTURE_PANEL, HAS_VECTOR_PANEL, INSPECTOR_INFO, INSPECTOR_INFO_EXT, IS_DELETED, IS_FIXED, IS_FOCUSSED, IS_PICKED, IS_SELECTED, IS_USED, NUM_TAGS
Constructor and Description |
---|
PjJuliaSet() |
Modifier and Type | Method and Description |
---|---|
void |
componentHidden(java.awt.event.ComponentEvent comp)
Invoked when component has been hidden.
|
void |
componentMoved(java.awt.event.ComponentEvent comp)
Invoked when component has been moved.
|
void |
componentResized(java.awt.event.ComponentEvent comp)
When component has been resized all images must be resized.
|
void |
componentShown(java.awt.event.ComponentEvent comp)
Invoked when component has been shown.
|
void |
computeColors(int[] pixArr,
int[] valArr,
int len,
int maxVal,
int colType)
Compute color array from an array of scalar integer values.
|
void |
computeImageJulia(PvDisplayIf disp,
double xMin,
double yMin,
double xMax,
double yMax)
Compute a Julia set in the given rectangle in the complex plane
and updates the corresponding images.
|
void |
computeImageMandelbrot(PvDisplayIf disp,
double xMin,
double yMin,
double xMax,
double yMax)
Compute a Mandelbrot set in the given rectangle in the complex plane
and updates the corresponding images.
|
void |
computeJulia(int[] pixIter,
int imageWidth,
int imageHeight,
int blockSize,
double xMin,
double yMin,
double xMax,
double yMax,
int maxIter,
PuComplex c)
Compute a Julia set in the given rectangle in the complex plane.
|
void |
computeMandelbrot(int[] pixIter,
int imageWidth,
int imageHeight,
int blockSize,
double xMin,
double yMin,
double xMax,
double yMax,
int maxIter)
Compute a Mandelbrot set in the given rectangle in the complex plane.
|
PvDisplayIf |
getDispJulia()
Get display of Julia set.
|
PvDisplayIf |
getDispMandelbrot()
Get display of Mandelbrot set which is used to select the complex parameter
value c which determines the Julia set.
|
void |
init()
Initialize and reset project, stops the running animation if any.
|
void |
markVertices(PvPickEvent pickEvent)
Method is called from display when user drags a rectangular array.
|
void |
pickInitial(PvPickEvent pickEvent)
Method is called from display when a user picks into the display
in initial-pick mode.
|
void |
start()
Called when project is launched by viewer on applet start.
|
boolean |
update(java.lang.Object event)
Update the class whenever a child has changed.
|
addDisplay, addGeometry, addGeometry, dispose, dragDisplay, dragInitial, dragVertex, fitDisplays, getAnimation, getDisplay, getDisplays, getGeometry, getGeometry, getNumGeometries, getParameter, getViewer, hasAnimation, hasDisplay, isEnabledAutoFit, pickDisplay, pickVertex, removeDisplay, removeGeometries, removeGeometry, selectDisplay, selectGeometry, setAnimation, setBackColor, setBorderType, setDisplay, setEnabledAutoFit, setGeometry, setParameter, setTime, setViewer, stop, unmarkVertices
addInspector, addUpdateListener, assureInspector, clearTag, clone, clone, clone, copy, getFather, getInfoPanel, getInspector, getName, getNumObjects, getSymbol, hasInspector, hasTag, hasUpdateListener, instanceOf, instanceOf, newInspector, newInspector, removeInspector, removeInspector, removeUpdateListener, setName, setParent, setSymbol, setTag, toString, updatePanels
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName
getName
public void init()
PjProject
public void start()
start
in class PjProject
PvViewerIf.start()
,
PjProject.isEnabledAutoFit()
public boolean update(java.lang.Object event)
update
in interface PsUpdateIf
update
in class PsObject
event
- carries a lot of informationPsObject.setParent(PsUpdateIf)
,
PsObject.getFather()
,
PsObject.addUpdateListener(PsUpdateIf)
public void componentShown(java.awt.event.ComponentEvent comp)
componentShown
in interface java.awt.event.ComponentListener
public void componentHidden(java.awt.event.ComponentEvent comp)
componentHidden
in interface java.awt.event.ComponentListener
public void componentMoved(java.awt.event.ComponentEvent comp)
componentMoved
in interface java.awt.event.ComponentListener
public void componentResized(java.awt.event.ComponentEvent comp)
componentResized
in interface java.awt.event.ComponentListener
public PvDisplayIf getDispJulia()
public PvDisplayIf getDispMandelbrot()
public void markVertices(PvPickEvent pickEvent)
markVertices
in interface PvPickListenerIf
markVertices
in class PjProject
pickEvent
- Everything in a
PvPickEvent MarkBox
gets marked.public void pickInitial(PvPickEvent pickEvent)
pickInitial
in interface PvPickListenerIf
pickInitial
in class PjProject
pickEvent
- Pick event issued by the display on left mouse pick.PvPickListenerIf
public void computeImageJulia(PvDisplayIf disp, double xMin, double yMin, double xMax, double yMax)
Parameters determine a rectangle in the complex plane in which the Julia set is computed.
public void computeImageMandelbrot(PvDisplayIf disp, double xMin, double yMin, double xMax, double yMax)
Parameters determine a rectangle in the complex plane in which the Mandelbrot set is computed.
public void computeJulia(int[] pixIter, int imageWidth, int imageHeight, int blockSize, double xMin, double yMin, double xMax, double yMax, int maxIter, PuComplex c)
The algorithm determines for given complex parameter c if the iteration f(z)=z*z+c diverges to infinity which is assumed if |z|>4.
Parameters determine a rectangle in the complex plane in which the Julia set is computed.
pixIter
- pixel image with RGB integers which will be computed.public void computeMandelbrot(int[] pixIter, int imageWidth, int imageHeight, int blockSize, double xMin, double yMin, double xMax, double yMax, int maxIter)
The algorithm determines for each z0 if the iteration f(z)=z*z+z0 diverges to infinity which is assumed if |z|>4.
Parameters determine a rectangle in the complex plane in which the Mandelbrot set is computed.
pixIter
- pixel image with RGB integers which will be computed.public void computeColors(int[] pixArr, int[] valArr, int len, int maxVal, int colType)
"