Interface Component
- All Superinterfaces:
ComponentPart,ComponentProperty
- All Known Implementing Classes:
AbstractChart,AbstractDataZoom,Arc,ArcPart,BarChart,BezierCurve,BoxplotChart,BubbleChart,CandlestickChart,Chart,ChartImage,Circle,CirclePart,CoordinateSystem,CoordinateSystemZoom,DataZoom,DonutChart,EffectScatterChart,FunnelChart,GaugeChart,GraphChart,HeatmapChart,Image,Legend,Line,LineChart,NightingaleRoseChart,PieChart,PolarCoordinate,Polygon,Polyline,RadarChart,RadarCoordinate,Rectangle,RectangularCoordinate,Ring,SankeyChart,ScatterChart,Sector,SelfPositioningChart,SelfPositioningSpecialChart,Shape,ShapeGroup,Square,SunburstChart,Text,Title,Toolbox,Tooltip,TreeChart,TreemapChart,VisualMap,XYChart,XYDataChart,XYGraphChart
Chart component. Chart components can be added to the SOChart for rendering using
SOChart.add(Component...) method. Some chart components have other components as its parts. Thus, those
will be automatically added to the same chart when the component is added. For example: If a ChartType.Line
chart, plotted on a RectangularCoordinate, is added, the RectangularCoordinate will be automatically
added. However, it is not an error if you add both of them separately.
You may have this question: Why would I ever add a CoordinateSystem if I am not going to plot any
chart on it? The answer is, sometimes, it may be useful for creating some special effects! SOChart is like
a "canvas", whatever you add as components will be rendered there, one on top of others, unless you position them
within the canvas (Many Components and ComponentParts support setPosition(Position
method).
- Author:
- Syam
-
Method Summary
Methods inherited from interface com.storedobject.chart.ComponentPart
className, getId, getName, getRenderingIndex, getSerial, setName, setRenderingIndex, setSerial, validateMethods inherited from interface com.storedobject.chart.ComponentProperty
encodeJSON
-
Method Details
-
addParts
Add parts of this component to the chart. This will be invoked if the component was already added to the chart, and it is about to be rendered.- Parameters:
soChart- Chart to which components to be added.
-