Interface GraphicComponent

All Known Implementing Classes:
Router, Sink, Source, Station

public interface GraphicComponent
Interface to wrap up all the methods for a graphic component
Author:
Lorenzo Torri Date: 02-sept-2024 Time: 14.00
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the total length of a component when drawn
    int
    Return the drawing starting position in the panel of a component
    int
     
    void
    setXPos(int xpos)
     
    void
    setYPos(int ypos)
     
  • Method Details

    • setXPos

      void setXPos(int xpos)
    • setYPos

      void setYPos(int ypos)
    • getXPos

      int getXPos()
      Return the drawing starting position in the panel of a component
    • getYPos

      int getYPos()
    • getTotalLenght

      int getTotalLenght()
      Get the total length of a component when drawn