Package tech.tablesaw.plotly.traces
Class AbstractTrace
- java.lang.Object
-
- tech.tablesaw.plotly.traces.AbstractTrace
-
- All Implemented Interfaces:
Trace
- Direct Known Subclasses:
BarTrace
,BoxTrace
,ContourTrace
,HeatmapTrace
,Histogram2DTrace
,HistogramTrace
,PieTrace
,Scatter3DTrace
,ScatterTrace
,ViolinTrace
public abstract class AbstractTrace extends Object implements Trace
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractTrace.Visibility
-
Field Summary
Fields Modifier and Type Field Description protected static double
DEFAULT_OPACITY
protected static AbstractTrace.Visibility
DEFAULT_VISIBILITY
protected io.pebbletemplates.pebble.PebbleEngine
engine
protected String
type
-
Constructor Summary
Constructors Constructor Description AbstractTrace(TraceBuilder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>
getContext()
HoverLabel
hoverLabel()
String
name()
boolean
showLegend()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface tech.tablesaw.plotly.traces.Trace
asJavascript
-
-
-
-
Field Detail
-
DEFAULT_OPACITY
protected static final double DEFAULT_OPACITY
- See Also:
- Constant Field Values
-
DEFAULT_VISIBILITY
protected static final AbstractTrace.Visibility DEFAULT_VISIBILITY
-
engine
protected final io.pebbletemplates.pebble.PebbleEngine engine
-
type
protected final String type
-
-
Constructor Detail
-
AbstractTrace
public AbstractTrace(TraceBuilder builder)
-
-
Method Detail
-
hoverLabel
public HoverLabel hoverLabel()
- Specified by:
hoverLabel
in interfaceTrace
-
showLegend
public boolean showLegend()
- Specified by:
showLegend
in interfaceTrace
-
-