Class VertexStyle

  • All Implemented Interfaces:
    Style

    public class VertexStyle
    extends java.lang.Object
    implements Style
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.awt.Color color  
      private java.awt.geom.Point2D pM  
      private java.awt.geom.Point2D pV  
      protected java.awt.Rectangle shape  
      private double sizeOver2  
    • Constructor Summary

      Constructors 
      Constructor Description
      VertexStyle​(java.awt.Color color)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void paint​(Geometry geom, Viewport viewport, java.awt.Graphics2D g)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sizeOver2

        private double sizeOver2
      • shape

        protected java.awt.Rectangle shape
      • color

        private java.awt.Color color
      • pM

        private java.awt.geom.Point2D pM
      • pV

        private java.awt.geom.Point2D pV
    • Constructor Detail

      • VertexStyle

        public VertexStyle​(java.awt.Color color)
    • Method Detail

      • paint

        public void paint​(Geometry geom,
                          Viewport viewport,
                          java.awt.Graphics2D g)
        Specified by:
        paint in interface Style