Class D3


  • public class D3
    extends com.google.gwt.core.client.JavaScriptObject
    • Constructor Detail

      • D3

        protected D3()
    • Method Detail

      • select

        public final D3 select​(String elementId)
      • selectElement

        public final com.google.gwt.dom.client.Element selectElement​(String selector)
      • getElement

        public static final com.google.gwt.dom.client.Element getElement​(D3 selection,
                                                                         int index)
      • select

        public final D3 select​(com.google.gwt.dom.client.Element elem)
      • append

        public final D3 append​(String tagName)
      • attr

        public final D3 attr​(String propName,
                             int value)
      • attr

        public final D3 attr​(String propName,
                             com.google.gwt.core.client.JavaScriptObject func)
      • attr

        public final D3 attr​(String attrName,
                             Func<?,​?> func)
      • attrTween

        public final D3 attrTween​(String attrName,
                                  Func<?,​?> func)
      • html

        public final void html​(Func<?,​?> func)
      • html

        public final void html​(String html)
      • zoomTransition

        public final void zoomTransition​(D3 selection,
                                         int width,
                                         int height,
                                         com.google.gwt.core.client.JsArrayInteger p0,
                                         com.google.gwt.core.client.JsArrayInteger p1)
      • timer

        public final void timer​(BooleanFunc func)
      • timer

        public final void timer()
      • selectAll

        public final D3 selectAll​(String selectionName)
      • data

        public final D3 data​(com.google.gwt.core.client.JsArray<?> array)
      • enter

        public final D3 enter()
      • update

        public final D3 update()
      • attr

        public final D3 attr​(String propName,
                             double value)
      • scale

        public final D3Scale scale()
      • transition

        public final D3 transition()
      • styleTween

        public final D3 styleTween​(String name,
                                   Tween<?,​?> t)
      • duration

        public final D3 duration​(int duration)
      • delay

        public final D3 delay​(int delayInMilliSeconds)
      • exit

        public final D3 exit()
      • remove

        public final D3 remove()
      • data

        public final <T extends com.google.gwt.core.client.JavaScriptObject> D3 data​(com.google.gwt.core.client.JsArray<T> data,
                                                                                     Func<?,​T> func)
      • data

        public final <T extends com.google.gwt.core.client.JavaScriptObject> com.google.gwt.core.client.JsArray<T> data()
      • text

        public final D3 text​(com.google.gwt.core.client.JavaScriptObject textFunc)
      • text

        public final D3 text​(String t)
      • each

        public final D3 each​(com.google.gwt.core.client.JavaScriptObject f)
      • each

        public final void each​(String type,
                               AnonymousFunc func)
        Only used for transitions
        Parameters:
        type -
        handler -
      • getEvent

        public static final com.google.gwt.dom.client.NativeEvent getEvent()
      • eventPreventDefault

        public static final void eventPreventDefault()
      • eventDefaultPrevented

        public static final boolean eventDefaultPrevented()
      • d3

        public static final D3 d3()
      • property

        public static final com.google.gwt.core.client.JavaScriptObject property​(String propertName)
      • getDragBehavior

        public static final D3Drag getDragBehavior()
      • drag

        public static final com.google.gwt.core.client.JavaScriptObject drag()
      • call

        public final D3 call​(com.google.gwt.core.client.JavaScriptObject behavior)
      • call

        public final D3 call​(D3Behavior behavior)
        Takes a D3Behavior and returns the current selection passed into the run method
        Parameters:
        behavior -
        Returns:
      • with

        public final D3 with​(D3Behavior behavior)
        Takes a D3Behavior and returns the resulting selection
        Parameters:
        behavior -
        Returns:
      • create

        public final D3 create​(D3Behavior behavior)
        Create is intended to be used with enter methods. And the behavior is expected to return the created selection
        Parameters:
        behavior -
        Returns:
      • getMouse

        public static final com.google.gwt.core.client.JsArrayInteger getMouse​(com.google.gwt.dom.client.Element elem)
      • getMouse

        public static final com.google.gwt.core.client.JsArrayNumber getMouse​(D3 select)
      • getBrush

        public final D3Brush getBrush()
      • length

        public final int length()
      • injectSVGDef

        public final void injectSVGDef​(String file)
        HTTP GET the provided file and append it to the dom element "defs".
        Parameters:
        file - the file to GET