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:

  1. BRACE
  2. MITOCHONDRIA
  3. SARCOPLASMICRETICULUM
  4. ENDOPLASMICRETICULUM
  5. GOLGIAPPARATUS
  6. CORONAVIRUS_ICON
  7. DNA_ICON
  8. RNA_ICON
  9. CELL_ICON
  10. MEMBRANE_ICON
  11. DEGRADATION
NB: shapes were previously specific to GenMAPP, such as the GenMAPP ProteinComplex, Vesicle and Ribosome.
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

      public static java.awt.Shape getPluggableShape​(ShapeCatalog.Internal st)
      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: