Class ShapeCatalog
java.lang.Object
org.pathvisio.libgpml.model.shape.ShapeCatalog
public class ShapeCatalog
extends java.lang.Object
This class defines some shapes. Shapes are defined and registered in the
GeneralPath
.
NB:
- BRACE
- MITOCHONDRIA
- SARCOPLASMICRETICULUM
- ENDOPLASMICRETICULUM
- GOLGIAPPARATUS
- CORONAVIRUS_ICON
- DNA_ICON
- RNA_ICON
- CELL_ICON
- MEMBRANE_ICON
- DEGRADATION
- Author:
- unknown, finterly
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShapeCatalog.Internal
these constants are internal, only for the switch statement below. -
Constructor Summary
Constructors Constructor Description ShapeCatalog()
-
Method Summary
Modifier and Type Method Description static java.awt.Shape
getPluggableShape(ShapeCatalog.Internal st)
Internal, Only for general shape types that can be described as a path.static java.awt.Shape
getRegularPolygon(int sides, double w, double h)
Returns regular polygon shape given number of sides, width, and height.(package private) static void
registerShapes()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ShapeCatalog
public ShapeCatalog()
-
-
Method Details
-
registerShapes
static void registerShapes() -
getPluggableShape
Internal, Only for general shape types that can be described as a path. The shapes are constructed as a general path with arbitrary size and then resized to fit w and h parameters. -
getRegularPolygon
public static java.awt.Shape getRegularPolygon(int sides, double w, double h)Returns regular polygon shape given number of sides, width, and height.- Parameters:
sides
- the number of sides of polygon.w
- the width.h
- the height.- Returns:
-