Class PieChartShape
java.lang.Object
org.graphstream.ui.swing.renderer.shape.swing.shapePart.FillableMulticolored
org.graphstream.ui.swing.renderer.shape.swing.advancedShapes.PieChartShape
- All Implemented Interfaces:
Shape,AttributeUtils
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graphstream.ui.swing.util.AttributeUtils
AttributeUtils.Tuple<X,Y> -
Field Summary
Fields inherited from class org.graphstream.ui.swing.renderer.shape.swing.shapePart.FillableMulticolored
fillColors -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigureForElement(Backend bck, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel, org.graphstream.ui.view.camera.DefaultCamera2D camera) Configure all the dynamic and per element settings.voidconfigureForGroup(Backend backend, org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera) Configure as much as possible the graphics before painting several version of this shape at different positions.voidMust create the shape from informations given earlier, that is, resize it if needed and position it, and do all the things that are specific to each element, and cannot be done for the group of elements.voidmakeShadow(Backend backend, org.graphstream.ui.view.camera.DefaultCamera2D camera) Same as#make(Camera)for the shadow shape.voidrender(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel) Render the shape for the given element.voidrenderShadow(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skeleton) Render the shape shadow for the given element.Methods inherited from class org.graphstream.ui.swing.renderer.shape.swing.shapePart.FillableMulticolored
configureFillableMultiColoredForGroupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graphstream.ui.swing.util.AttributeUtils
boundingBoxOfPoints, getDoubles, getPoints
-
Constructor Details
-
PieChartShape
public PieChartShape()
-
-
Method Details
-
configureForGroup
public void configureForGroup(Backend backend, org.graphstream.ui.graphicGraph.stylesheet.Style style, org.graphstream.ui.view.camera.DefaultCamera2D camera) Description copied from interface:ShapeConfigure as much as possible the graphics before painting several version of this shape at different positions.- Specified by:
configureForGroupin interfaceShape- Parameters:
backend- The rendering back-end.style- The style for the group.camera- the view parameters.
-
configureForElement
public void configureForElement(Backend bck, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel, org.graphstream.ui.view.camera.DefaultCamera2D camera) Description copied from interface:ShapeConfigure all the dynamic and per element settings. Some configurations can only be done before painting the element, since they change for each element.- Specified by:
configureForElementin interfaceShape- Parameters:
bck- The rendering back-end.element- The specific element to render.skel- The element geometry and information.camera- the view parameters.
-
make
Description copied from interface:ShapeMust create the shape from informations given earlier, that is, resize it if needed and position it, and do all the things that are specific to each element, and cannot be done for the group of elements. This method is made to be called inside the render() method, hence it is protected. -
makeShadow
Description copied from interface:ShapeSame as#make(Camera)for the shadow shape. The shadow shape may be moved and resized compared to the original shape. This method is made to be called inside the renderShadow() method, hence it is protected.- Specified by:
makeShadowin interfaceShape
-
render
public void render(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skel) Description copied from interface:ShapeRender the shape for the given element. -
renderShadow
public void renderShadow(Backend bck, org.graphstream.ui.view.camera.DefaultCamera2D camera, org.graphstream.ui.graphicGraph.GraphicElement element, Skeleton skeleton) Description copied from interface:ShapeRender the shape shadow for the given element. The shadow is rendered in a different pass than usual rendering, therefore it is a separate method.- Specified by:
renderShadowin interfaceShape
-