java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.designer.blockandconnector.BlockComponent
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BlockComponent extends JPanel
A JPanel used to display a block. This is really just an empty JPanel, it is up to the Block to actually add components to this panel.
See Also:
  • Constructor Details

    • BlockComponent

      public BlockComponent(Block block)
  • Method Details

    • getBlock

      public Block getBlock()
    • findAnchor

      public AnchorPoint findAnchor(int x, int y)
      Finds an AnchorPoint at a location. The location should be relative to this block panel
    • isSelected

      public boolean isSelected()
    • setSelected

      public void setSelected(boolean selected)
    • isConnected

      public boolean isConnected()
    • setConnected

      public void setConnected(boolean connected)
    • setBounds

      public void setBounds(int x, int y, int width, int height)
      Overrides:
      setBounds in class Component