Class Chart

    • Method Detail

      • black

        public Chart black()
      • white

        public Chart white()
      • view2d

        public Chart view2d()
      • clear

        public void clear()
      • dispose

        public void dispose()
      • render

        public void render()
        Trigger a chart rendering. Only usefull if chart Quality.is
      • setAnimated

        public void setAnimated​(boolean status)
      • updateAnimationThreadWithQualitySettings

        protected void updateAnimationThreadWithQualitySettings()
      • startAnimation

        public void startAnimation()
      • stopAnimation

        public void stopAnimation()
      • stopAllThreads

        public void stopAllThreads()
      • updateProjectionsAndRender

        public void updateProjectionsAndRender()
      • newView

        public View newView()
      • configureMouseWithAnimator

        protected void configureMouseWithAnimator()
        Switch between on demand/continuous rendering keep to false if animated to avoid double rendering keep to true otherwise the mouse does not update
      • configureKeyboardWithAnimator

        protected void configureKeyboardWithAnimator()
        Switch between on demand/continuous rendering keep to false if animated to avoid double rendering keep to true otherwise the mouse does not update
      • addController

        public void addController​(AbstractCameraController controller)
        Add a AbstractCameraController to this Chart. Warning: the Chart is not the owner of the controller. Disposing the chart thus just unregisters the controllers, but does not handle stopping and disposing controllers.
      • clearControllerList

        protected void clearControllerList()
      • open

        public IFrame open​(String title,
                           int width,
                           int height)
      • open

        public IFrame open​(int width,
                           int height)
      • open

        public IFrame open​(String title,
                           Rectangle rect)
        Open the frame if it was not opened before
        Parameters:
        title -
        rect -
        Returns:
      • add

        public Chart add​(List<? extends Drawable> drawables)
        Add a list of drawables and refresh the view of the scene once they are all added.
        Parameters:
        drawables -
        Returns:
      • add

        public Chart add​(Drawable drawable)
        Add a drawable and refresh the view of the scene once it is added.
        Parameters:
        drawable -
        Returns:
      • add

        public Chart add​(Drawable drawable,
                         boolean updateView)
        Add a drawable to the scene graph of the chart. If the view holds a SpaceTransformer, then it will be applied to the drawable. This can be reset by later calling {@link Drawable#setSpaceTransformer(null)}
        Parameters:
        drawable -
        updateView - states if the view should be updated immediately. Should be false if adding multiple drawable at the same time.
        Returns:
      • remove

        public void remove​(Drawable drawable)
      • remove

        public void remove​(Drawable drawable,
                           boolean updateViews)
      • setAxeDisplayed

        public void setAxeDisplayed​(boolean status)
      • setViewPoint

        public void setViewPoint​(Coord3d viewPoint)
      • getViewPoint

        public Coord3d getViewPoint()
      • setScale

        public void setScale​(Scale scale,
                             boolean notify)
      • setScale

        public void setScale​(Scale scale)
      • getScale

        public Scale getScale()
      • getPainter

        public IPainter getPainter()
      • flip

        public float flip​(float y)
      • view

        public View view()
      • getView

        public View getView()
      • getCanvas

        public ICanvas getCanvas()
      • getQuality

        public Quality getQuality()
      • setQuality

        public void setQuality​(Quality quality)