Class ShapeNode


  • public abstract class ShapeNode
    extends Object
    It is the the abstract super type of geometric figures and the manager of all the generated sub-type figures. It is not used currently and we leave it here as an extensible point in future.
    Author:
    xiao
    • Field Detail

      • I1

        public long I1
      • I2

        public long I2
      • E1

        public long E1
      • is_new

        public boolean is_new
    • Constructor Detail

      • ShapeNode

        public ShapeNode()
    • Method Detail

      • makeDuplicate

        public abstract ShapeNode makeDuplicate()
        Clone itself and make a new instance.
        Returns:
      • inclusionTest

        public abstract boolean inclusionTest​(ShapeNode other)
        Test if the invoked figure contains the passed in figure
        Parameters:
        other -
        Returns:
      • coverThisXValue

        public abstract boolean coverThisXValue​(long x)
        Test if the input x parameter falls in the range of the X coordinates of this figure
        Parameters:
        x -
        Returns:
      • printSelf

        public abstract void printSelf​(PrintStream outPrintStream)
      • copy

        public abstract void copy​(ShapeNode other)