com.jzy3d.surfedit.chart
Class InteractiveChart

java.lang.Object
  extended by org.jzy3d.chart.Chart
      extended by org.jzy3d.chart.AWTChart
          extended by com.jzy3d.surfedit.chart.InteractiveChart

public class InteractiveChart
extends org.jzy3d.chart.AWTChart

A standard Chart based on a InteractiveView, and hiding few details concerning mouse and key controllers initialization, as well as enabling communication between the CompositeInteractiveSurface, its AWTMouseController and its AWTKeyController.

Author:
Martin Pernollet
See Also:
InteractiveView}

Field Summary
protected  IInteractiveSurfaceFactory factory
           
protected  AWTKeyController keyboard
           
protected  AWTMouseController mouse
           
protected  IInteractiveSurface secondarySurface
           
protected  IInteractiveSurface surface
           
static float Z_OFFSET_DEFAULT
           
protected  List<ZChangedListener> zChangedListeners
           
 
Fields inherited from class org.jzy3d.chart.Chart
canvas, capabilities, controllers, DEFAULT_QUALITY, DEFAULT_WINDOWING_TOOLKIT, previousViewPointFree, previousViewPointProfile, previousViewPointTop, quality, scene, view, windowingToolkit
 
Constructor Summary
InteractiveChart()
           
InteractiveChart(org.jzy3d.chart.factories.IChartComponentFactory factory, org.jzy3d.plot3d.rendering.canvas.Quality quality, String mode)
           
InteractiveChart(org.jzy3d.plot3d.rendering.canvas.Quality quality)
           
InteractiveChart(org.jzy3d.plot3d.rendering.canvas.Quality quality, String mode)
           
InteractiveChart(String mode)
           
 
Method Summary
 void addPrimarySurface(IInteractiveSurface surface)
           
 void addSecondarySurface(IInteractiveSurface surface)
           
 boolean addZChangedListener(ZChangedListener listener)
           
protected  org.jzy3d.plot3d.primitives.AbstractWireframeable asWireframeable(IInteractiveSurface surface)
           
 void editSelectedCellsZValues(float value)
          Fires one ZChangedEvent per changed cell.
 void fireValueChangedEvent(ZChangedEvent e)
           
static InteractiveChartComponentFactory getInteractiveFactory()
           
protected  InteractiveView getInteractiveView()
           
 AWTKeyController getKeyController()
           
 AWTMouseController getMouseController()
           
 IInteractiveSurface getPrimarySurface()
           
 IInteractiveSurface getSecondarySurface()
           
 IInteractiveSurfaceFactory getSurfaceFactory()
           
 List<ZChangedListener> getZChangedListeners()
           
protected  void init()
           
 IInteractiveSurface openPrimarySurface(MapData feed)
           
 IInteractiveSurface openPrimarySurface(MapData feed, float zmin, float zmax, float[] zticks)
           
 IInteractiveSurface openPrimarySurface(MapData feed, float zmin, float zmax, float[] zticks, float alpha)
           
 IInteractiveSurface openPrimarySurface(MapData feed, float zmin, float zmax, org.jzy3d.plot3d.primitives.axes.layout.providers.ITickProvider zTicks, float alpha)
          A helper to create surface and configure it properly with respect to the mouse and keyboard controllers.
 IInteractiveSurface openSecondarySurface(MapData feed, float alpha)
           
protected  IInteractiveSurface prepareSurface(MapData feed, SurfEditColorMapper mapper, float alpha, org.jzy3d.colors.Color wire)
           
protected  void registerKeyboardController(IInteractiveSurface surface)
           
protected  void registerMouseController(IInteractiveSurface surface)
           
protected  void registerSurfaceController(IInteractiveSurface surface)
           
 void removePrimarySurface(boolean updateDisplay)
           
 void removeSecondarySurface(boolean updateDisplay)
           
 boolean removeZChangedListener(ZChangedListener listener)
           
 void reset()
          Reset selection and update chart view
 void setSurfaceFactory(IInteractiveSurfaceFactory factory)
           
 void setZChangedListeners(List<ZChangedListener> listeners)
           
 
Methods inherited from class org.jzy3d.chart.AWTChart
addRenderer, getAWTView, removeRenderer
 
Methods inherited from class org.jzy3d.chart.Chart
addController, addDrawable, addDrawable, addDrawable, addDrawable, addKeyController, addLight, addLight, addMouseController, addScreenshotKeyController, clear, clearControllerList, display, dispose, flip, getAxeLayout, getCanvas, getCapabilities, getControllers, getFactory, getScale, getScene, getView, getViewMode, getViewPoint, getWindowingToolkit, newView, open, open, pauseAnimator, removeController, removeDrawable, removeDrawable, render, resumeAnimator, screenshot, screenshot, setAxeDisplayed, setScale, setScale, setViewMode, setViewPoint, startAnimator, stopAnimator, updateProjectionsAndRender
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Z_OFFSET_DEFAULT

public static float Z_OFFSET_DEFAULT

surface

protected IInteractiveSurface surface

secondarySurface

protected IInteractiveSurface secondarySurface

mouse

protected AWTMouseController mouse

keyboard

protected AWTKeyController keyboard

factory

protected IInteractiveSurfaceFactory factory

zChangedListeners

protected List<ZChangedListener> zChangedListeners
Constructor Detail

InteractiveChart

public InteractiveChart()

InteractiveChart

public InteractiveChart(org.jzy3d.plot3d.rendering.canvas.Quality quality)

InteractiveChart

public InteractiveChart(org.jzy3d.plot3d.rendering.canvas.Quality quality,
                        String mode)

InteractiveChart

public InteractiveChart(org.jzy3d.chart.factories.IChartComponentFactory factory,
                        org.jzy3d.plot3d.rendering.canvas.Quality quality,
                        String mode)

InteractiveChart

public InteractiveChart(String mode)
Method Detail

getInteractiveFactory

public static InteractiveChartComponentFactory getInteractiveFactory()

init

protected void init()

openPrimarySurface

public IInteractiveSurface openPrimarySurface(MapData feed,
                                              float zmin,
                                              float zmax,
                                              org.jzy3d.plot3d.primitives.axes.layout.providers.ITickProvider zTicks,
                                              float alpha)
A helper to create surface and configure it properly with respect to the mouse and keyboard controllers.


openPrimarySurface

public IInteractiveSurface openPrimarySurface(MapData feed,
                                              float zmin,
                                              float zmax,
                                              float[] zticks,
                                              float alpha)

openPrimarySurface

public IInteractiveSurface openPrimarySurface(MapData feed,
                                              float zmin,
                                              float zmax,
                                              float[] zticks)

openPrimarySurface

public IInteractiveSurface openPrimarySurface(MapData feed)

openSecondarySurface

public IInteractiveSurface openSecondarySurface(MapData feed,
                                                float alpha)

prepareSurface

protected IInteractiveSurface prepareSurface(MapData feed,
                                             SurfEditColorMapper mapper,
                                             float alpha,
                                             org.jzy3d.colors.Color wire)

getSurfaceFactory

public IInteractiveSurfaceFactory getSurfaceFactory()

setSurfaceFactory

public void setSurfaceFactory(IInteractiveSurfaceFactory factory)

addPrimarySurface

public void addPrimarySurface(IInteractiveSurface surface)

getPrimarySurface

public IInteractiveSurface getPrimarySurface()

removePrimarySurface

public void removePrimarySurface(boolean updateDisplay)

addSecondarySurface

public void addSecondarySurface(IInteractiveSurface surface)

getSecondarySurface

public IInteractiveSurface getSecondarySurface()

removeSecondarySurface

public void removeSecondarySurface(boolean updateDisplay)

reset

public void reset()
Reset selection and update chart view


getMouseController

public AWTMouseController getMouseController()

getKeyController

public AWTKeyController getKeyController()

registerSurfaceController

protected void registerSurfaceController(IInteractiveSurface surface)

registerMouseController

protected void registerMouseController(IInteractiveSurface surface)

registerKeyboardController

protected void registerKeyboardController(IInteractiveSurface surface)

setZChangedListeners

public void setZChangedListeners(List<ZChangedListener> listeners)

getZChangedListeners

public List<ZChangedListener> getZChangedListeners()

addZChangedListener

public boolean addZChangedListener(ZChangedListener listener)

removeZChangedListener

public boolean removeZChangedListener(ZChangedListener listener)

fireValueChangedEvent

public void fireValueChangedEvent(ZChangedEvent e)

editSelectedCellsZValues

public void editSelectedCellsZValues(float value)
Fires one ZChangedEvent per changed cell.


getInteractiveView

protected InteractiveView getInteractiveView()

asWireframeable

protected org.jzy3d.plot3d.primitives.AbstractWireframeable asWireframeable(IInteractiveSurface surface)


Copyright © 2014. All rights reserved.