Class SectionSet2DInt

All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.lang.Cloneable, java.lang.Comparable<InterfaceShape>, AttributeListener, AttributeObject, InterfaceGraphicListener, InterfaceObject, PersistentObject, VariableObject, PopupMenuObject, NamedObject, InterfaceQueryObject, InterfaceShapeQueryObject, ShapeListener, VertexDataColumnListener, InterfaceTransferable, TreeObject, CleanableObject, XMLObject, IconObject

public class SectionSet2DInt
extends Shape2DInt
implements InterfaceGraphicListener
Provides a 2D representation of a 3D section set, where it intersects a particular plane.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Details

    • SectionSet2DInt

      public SectionSet2DInt()
    • SectionSet2DInt

      public SectionSet2DInt​(SectionSet3DInt parent, Plane3D plane)
  • Method Details

    • getGeometryInstance

      public Shape getGeometryInstance()
      Description copied from class: InterfaceShape
      Returns an instance of this InterfaceShape's geometry class.
      Overrides:
      getGeometryInstance in class Shape2DInt
      Returns:
    • getDrawOnlyCurrent2D

      public boolean getDrawOnlyCurrent2D()
    • getHighlightCurrent2D

      public boolean getHighlightCurrent2D()
    • getBackgroundColour

      public java.awt.Color getBackgroundColour()
    • isCurrent

      public boolean isCurrent​(int section)
    • draw

      protected void draw​(java.awt.Graphics2D g, DrawingEngine d)
      Overrides:
      draw in class Shape2DInt
    • updateCurrentSections

      protected void updateCurrentSections()
    • drawSection

      protected void drawSection​(java.awt.Graphics2D g, DrawingEngine d, int section)
    • updateShape

      public void updateShape()
      Overrides:
      updateShape in class Shape2DInt
    • graphicUpdated

      public void graphicUpdated​(GraphicEvent e)
      Specified by:
      graphicUpdated in interface InterfaceGraphicListener
    • graphicSourceChanged

      public void graphicSourceChanged​(GraphicEvent e)
      Specified by:
      graphicSourceChanged in interface InterfaceGraphicListener