Class SurfaceSector

    • Field Detail

      • sector

        protected Sector sector
    • Constructor Detail

      • SurfaceSector

        public SurfaceSector()
        Constructs a new surface sector with the default attributes and the Sector.EMPTY_SECTOR.
      • SurfaceSector

        public SurfaceSector​(ShapeAttributes normalAttrs)
        Constructs a new surface sector with the specified normal (as opposed to highlight) attributes and the Sector.EMPTY_SECTOR. Modifying the attribute reference after calling this constructor causes this shape's appearance to change accordingly.
        Parameters:
        normalAttrs - the normal attributes. May be null, in which case default attributes are used.
      • SurfaceSector

        public SurfaceSector​(Sector sector)
        Constructs a new surface sector with the specified sector.
        Parameters:
        sector - the shape's sector.
        Throws:
        java.lang.IllegalArgumentException - if the sector is null.
      • SurfaceSector

        public SurfaceSector​(ShapeAttributes normalAttrs,
                             Sector sector)
        Constructs a new surface sector with the specified normal (as opposed to highlight) attributes and the specified sector. Modifying the attribute reference after calling this constructor causes this shape's appearance to change accordingly.
        Parameters:
        normalAttrs - the normal attributes. May be null, in which case default attributes are used.
        sector - the shape's sector.
        Throws:
        java.lang.IllegalArgumentException - if the sector is null.