Class D3
- java.lang.Object
-
- com.google.gwt.core.client.JavaScriptObject
-
- org.opennms.features.topology.app.internal.gwt.client.d3.D3
-
public class D3 extends com.google.gwt.core.client.JavaScriptObject
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
D3()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description D3
append(String tagName)
String
attr(String property)
D3
attr(String propName, double value)
D3
attr(String propName, int value)
D3
attr(String propName, com.google.gwt.core.client.JavaScriptObject func)
D3
attr(String propName, String value)
D3
attr(String attrName, Func<?,?> func)
D3
attrTween(String attrName, Func<?,?> func)
D3
attrTweenZoom(String string, GWTBoundingBox boundingBox, GWTBoundingBox oldBBox, int width, int height)
D3
call(com.google.gwt.core.client.JavaScriptObject behavior)
D3
call(D3Behavior behavior)
Takes a D3Behavior and returns the current selection passed into the run methodD3
create(D3Behavior behavior)
Create is intended to be used with enter methods.static D3
d3()
<T extends com.google.gwt.core.client.JavaScriptObject>
com.google.gwt.core.client.JsArray<T>data()
D3
data(com.google.gwt.core.client.JsArray<?> array)
<T extends com.google.gwt.core.client.JavaScriptObject>
D3data(com.google.gwt.core.client.JsArray<T> data, Func<?,T> func)
D3
delay(int delayInMilliSeconds)
static com.google.gwt.core.client.JavaScriptObject
drag()
D3
duration(int duration)
D3
each(com.google.gwt.core.client.JavaScriptObject f)
void
each(String type, AnonymousFunc func)
Only used for transitionsD3
each(D3Events.Handler<?> handler)
D3
enter()
static boolean
eventDefaultPrevented()
static void
eventPreventDefault()
D3
exit()
D3Brush
getBrush()
static D3Drag
getDragBehavior()
static com.google.gwt.dom.client.Element
getElement(D3 selection, int index)
static com.google.gwt.dom.client.NativeEvent
getEvent()
static com.google.gwt.core.client.JsArrayInteger
getMouse(com.google.gwt.dom.client.Element elem)
static com.google.gwt.core.client.JsArrayNumber
getMouse(D3 select)
static D3Transform
getTransform(String transform)
void
html(String html)
void
html(Func<?,?> func)
void
injectSVGDef(String file)
HTTP GET the provided file and append it to the dom element "defs".int
length()
D3
on(String event, D3Events.Handler<?> handler)
static com.google.gwt.core.client.JavaScriptObject
property(String propertName)
D3
remove()
D3Scale
scale()
D3
select(com.google.gwt.dom.client.Element elem)
D3
select(String elementId)
D3
selectAll(String selectionName)
com.google.gwt.dom.client.Element
selectElement(String selector)
String
style(String style)
D3
style(String styleName, String value)
D3
style(String styleName, Func<String,?> func)
D3
styleTween(String name, Tween<?,?> t)
D3
text(com.google.gwt.core.client.JavaScriptObject textFunc)
D3
text(String t)
D3
text(Func<String,?> func)
void
timer()
void
timer(BooleanFunc func)
D3
transition()
D3
update()
D3
with(D3Behavior behavior)
Takes a D3Behavior and returns the resulting selectionvoid
xml(String iconUrl, String mimeType, D3Events.XMLHandler<?> handler)
void
zoomTransition(D3 selection, int width, int height, com.google.gwt.core.client.JsArrayInteger p0, com.google.gwt.core.client.JsArrayInteger p1)
-
-
-
Method Detail
-
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)
-
attrTweenZoom
public final D3 attrTweenZoom(String string, GWTBoundingBox boundingBox, GWTBoundingBox oldBBox, int width, int height)
-
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()
-
data
public final D3 data(com.google.gwt.core.client.JsArray<?> array)
-
enter
public final D3 enter()
-
update
public final D3 update()
-
scale
public final D3Scale scale()
-
transition
public final D3 transition()
-
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)
-
each
public final D3 each(D3Events.Handler<?> handler)
-
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
-
-
on
public final D3 on(String event, D3Events.Handler<?> 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)
-
getTransform
public static final D3Transform getTransform(String transform)
-
getBrush
public final D3Brush getBrush()
-
xml
public final void xml(String iconUrl, String mimeType, D3Events.XMLHandler<?> handler)
-
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
-
-