Class LocalLayerPathPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class LocalLayerPathPanel extends JPanel
This class is used to visualise the path of a layer 2 packet (in Filius: IP or ARP packet) through the TCP/IP layers on the selected node (host or router). The idea was taken from the following website and with permission of the creator: https://oinf.ch/interactive/tcp-ip-visualisierung/
See Also:
  • Constructor Details

  • Method Details

    • getKnoten

      public Knoten getKnoten()
    • getInterfaceId

      public String getInterfaceId()
    • getMaxLayerInsideFrame

      public int getMaxLayerInsideFrame()
    • getMaxLayerOfOperation

      public int getMaxLayerOfOperation()
    • getCorrInterfaceId

      public String getCorrInterfaceId()
    • isSent

      public boolean isSent()
    • isForwarded

      public boolean isForwarded()
    • getDefaultDividerLocation

      public int getDefaultDividerLocation()
    • setDividerLocation

      public void setDividerLocation(int dividerLocation)
    • getDividerLocation

      public int getDividerLocation()
    • getBackgroundColor

      public static Color getBackgroundColor()
    • isMainNode

      public boolean isMainNode()
    • setAsMainNode

      public void setAsMainNode(boolean isMainNode)
    • getSizeOfMessageDetailsTable

      public Dimension getSizeOfMessageDetailsTable()
    • isFrameSent

      public static boolean isFrameSent(String interfaceId, int selectedFrameNumber)
      Checks if the selected frame was sent or received (= not sent).
      Returns:
      true if sent, false if received
    • updateMessageDetailsDisplay

      public void updateMessageDetailsDisplay(boolean senderSideIsActive, boolean senderSideWasActive)
      Decides if the message details for the sent or the received message should be displayed.
      Parameters:
      senderSideIsActive - If true, the visualisation is on the sender side, otherwise on the receiver side.
      senderSideWasActive - If true, the visualisation was on the sender side in the last step.
    • hideNextHigherLayer

      public void hideNextHigherLayer()
      Hide data of the next higher layer in the message details. Hideable layers are 1 = link, 2 = internet, 3 = transport.
    • showNextLowerLayer

      public void showNextLowerLayer()
      Show data of the next lower layer in the message details. Hideable layers are 1 = link, 2 = internet, 3 = transport.