All Implemented Interfaces:
DynamicPropertyProvider, LocaleListener, MutableDynamicPropertyProvider, StyleProvider, ComponentLifecycle, QualityMonitor, VisionComponent, ImageObserver, MenuContainer, Serializable

public class PMIPipe extends AbstractVisionBufferedComponent
See Also:
  • Field Details

    • mainColor

      protected Color mainColor
    • secondaryColor

      protected Color secondaryColor
    • outlineColor

      protected Color outlineColor
    • end1Top

      protected boolean end1Top
    • end1Cap

      protected boolean end1Cap
    • end1Bottom

      protected boolean end1Bottom
    • end2Top

      protected boolean end2Top
    • end2Cap

      protected boolean end2Cap
    • end2Bottom

      protected boolean end2Bottom
  • Constructor Details

    • PMIPipe

      public PMIPipe()
  • Method Details

    • isOpaque

      public boolean isOpaque()
      Overrides:
      isOpaque in class JComponent
    • evaluateOpaque

      protected void evaluateOpaque()
    • drawBuffer

      protected void drawBuffer(Graphics2D g2, int width, int height)
      Description copied from class: AbstractVisionBufferedComponent
      Subclasses only need to implement this function to have buffered functionality. If anything changes about the component (besides component size), such as colors or line thicknesses, call invalidateBuffer() to ensure this is called again on the next repaint
      Specified by:
      drawBuffer in class AbstractVisionBufferedComponent
      Parameters:
      g2 - A graphics object that will paint onto the off-screen buffer
    • getMainColor

      public Color getMainColor()
    • getOutlineColor

      public Color getOutlineColor()
    • getSecondaryColor

      public Color getSecondaryColor()
    • setMainColor

      public void setMainColor(Color color)
    • setOutlineColor

      public void setOutlineColor(Color color)
    • setSecondaryColor

      public void setSecondaryColor(Color color)
    • setPipeWidth

      @Deprecated public void setPipeWidth(int w)
      Deprecated.
      This is for backwards compatability. This function sets the preferred size so that the new pipe will look the same as the old one with the 'width' property
    • isEnd1Bottom

      public boolean isEnd1Bottom()
    • isEnd1Cap

      public boolean isEnd1Cap()
    • isEnd1Top

      public boolean isEnd1Top()
    • isEnd2Bottom

      public boolean isEnd2Bottom()
    • isEnd2Cap

      public boolean isEnd2Cap()
    • isEnd2Top

      public boolean isEnd2Top()
    • setEnd1Bottom

      public void setEnd1Bottom(boolean b)
    • setEnd1Cap

      public void setEnd1Cap(boolean b)
    • setEnd1Top

      public void setEnd1Top(boolean b)
    • setEnd2Bottom

      public void setEnd2Bottom(boolean b)
    • setEnd2Cap

      public void setEnd2Cap(boolean b)
    • setEnd2Top

      public void setEnd2Top(boolean b)