public class Diagonal extends PathDataGenerator
source() and
 target(). The returned function generates the path data for
 a cubic Bezier connecting the source and target points; the tangents are
 specified to produce smooth fan-in and fan-out when connecting nodes, as in a
 node-link diagram.
 
 Diagonals default to Cartesian orientations, but can be used in radial and
 other orientations using projection(DatumFunction).| Modifier | Constructor and Description | 
|---|---|
protected  | 
Diagonal()  | 
| Modifier and Type | Method and Description | 
|---|---|
DatumFunction<?> | 
projection()
 | 
Diagonal | 
projection(DatumFunction<?> df)
 | 
com.google.gwt.core.client.JavaScriptObject | 
source()
Returns the current source accessor, which can either be a function or
 constant object. 
 | 
Diagonal | 
source(Coords source)
Sets the source accessor to be constant. 
 | 
Diagonal | 
source(DatumFunction<?> df)
Sets the source accessor function. 
 | 
com.google.gwt.core.client.JavaScriptObject | 
target()
Returns the current target accessor, which can either be a function or
 constant object. 
 | 
Diagonal | 
target(Coords target)
Sets the target accessor to be constant. 
 | 
Diagonal | 
target(DatumFunction<?> df)
Sets the target accessor function. 
 | 
generate, generate, generate, generatepublic final DatumFunction<?> projection()
source() and target(),
 returning a two-element array of numbers. The default accessor assumes
 that the input point is an object with x and y attributes.
 
 The default accessor is thus compatible with D3's various Node
 layouts, including Tree, partition and cluster. For
 example, to produce a radial diagonal see the d3 API reference
 
 The projection is invoked in a similar manner as other value functions in
 D3. The function is passed two arguments, the current source or target
 point (derived from the current data, d) and the current index (i).public final Diagonal projection(DatumFunction<?> df)
source() and target(),
 returning a two-element array of numbers. The default accessor assumes
 that the input point is an object with x and y attributes.
 
 The default accessor is thus compatible with D3's various Node
 layouts, including Tree, partition and cluster. For
 example, to produce a radial diagonal see the
 d3 API reference
 
 The projection is invoked in a similar manner as other value functions in
 D3. The function is passed two arguments, the current source or target
 point (derived from the current data, d) and the current index (i).a - datum functionpublic final com.google.gwt.core.client.JavaScriptObject source()
public final com.google.gwt.core.client.JavaScriptObject target()
public final Diagonal source(Coords source)
Coords class.a - constant sourcepublic final Diagonal target(Coords target)
Coords class.a - constant targetpublic final Diagonal source(DatumFunction<?> df)
source(Coords) rather than a function.the - source accessor functionpublic final Diagonal target(DatumFunction<?> df)
target(Coords) rather than a function.the - target accessor functionCopyright © 2015 gwt-d3. All rights reserved.