Package gui

Class TileSelectPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class TileSelectPanel extends JPanel
An instance is a panel that displays information about a currently selected Tile.
See Also:
  • Constructor Details

    • TileSelectPanel

      public TileSelectPanel(int x, int y, int width, int height, GUI gui)
      Constructor: an instance at (x, y) with size (width, height) on Gui gui.
  • Method Details

    • updateLoc

      public void updateLoc(int x, int y, int width, int height)
      Update the location to (x, y) with size (width, height)
      of this element (for instance, on screen resize).
    • selectNode

      public void selectNode(Node n)
      Select node n on the GUI.
      This displays information on n's panel on the screen to the right.
    • paintComponent

      public void paintComponent(Graphics page)
      Paint this component using page.
      Overrides:
      paintComponent in class JComponent