public class Figure extends Object
Figure combines the two parts, associating one or more traces with a layout. If the layout is null a default layout is provided.
Modifier and Type | Class and Description |
---|---|
static class |
Figure.FigureBuilder |
Constructor and Description |
---|
Figure(Figure.FigureBuilder builder) |
Figure(Layout layout,
Config config,
Trace... traces) |
Figure(Layout layout,
EventHandler[] eventHandlers,
Trace... traces)
Deprecated.
Use the FigureBuilder instead
|
Figure(Layout layout,
EventHandler eventHandler,
Trace... traces)
Deprecated.
Use the FigureBuilder instead
|
Figure(Layout layout,
Trace... traces) |
Figure(Trace... traces) |
Modifier and Type | Method and Description |
---|---|
String |
asJavascript(String divName) |
protected void |
buildContext(String divName) |
static Figure.FigureBuilder |
builder() |
String |
divString(String divName) |
protected String |
eventHandlerFunction(String targetName,
String divName) |
Config |
getConfig() |
Map<String,Object> |
getContext() |
EventHandler[] |
getEventHandlers() |
Layout |
getLayout() |
Trace[] |
getTraces() |
protected String |
plotFunction(String divName) |
void |
setConfig(Config config) |
void |
setEventHandlers(EventHandler... handlers) |
void |
setLayout(Layout layout) |
void |
setTraces(Trace... data) |
public Figure(Figure.FigureBuilder builder)
public Figure(Trace... traces)
@Deprecated public Figure(Layout layout, EventHandler eventHandler, Trace... traces)
@Deprecated public Figure(Layout layout, EventHandler[] eventHandlers, Trace... traces)
public Layout getLayout()
public void setLayout(Layout layout)
public Config getConfig()
public void setConfig(Config config)
public EventHandler[] getEventHandlers()
public void setEventHandlers(EventHandler... handlers)
public Trace[] getTraces()
public void setTraces(Trace... data)
protected void buildContext(String divName)
public static Figure.FigureBuilder builder()
Copyright © 2020. All rights reserved.