Class MessageDetailsTable

All Implemented Interfaces:
I18n, ImageObserver, MenuContainer, Serializable, Accessible

public class MessageDetailsTable extends MessageDetails implements I18n
Class for the colored message details table at the bottom of the data exchange and the layer views.
See Also:
  • Constructor Details

    • MessageDetailsTable

      public MessageDetailsTable(String interfaceId, int frameNumber, Color backgroundColor)
  • Method Details

    • getGridBagLayout

      public GridBagLayout getGridBagLayout()
    • getMaxLayerInsideFrame

      public int getMaxLayerInsideFrame()
    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class JComponent
    • getMinimumSize

      public Dimension getMinimumSize()
      Overrides:
      getMinimumSize in class JComponent
    • getMaximumSize

      public Dimension getMaximumSize()
      Overrides:
      getMaximumSize in class JComponent
    • getSizeOfMessageDetailsTable

      public static Dimension getSizeOfMessageDetailsTable()
      Returns the size of the whole table based on the corresponding constants.
      Returns:
      Dimension of the whole MessageDetailsTable
    • update

      public void update(String interfaceId, int frameNumber)
      Updates this table with the values in the message details matrix.
      Specified by:
      update in class MessageDetails
      Parameters:
      interfaceId - the interface id where the frame should be looked up
      frameNumber - the number of the frame in the data exchange of the interface (starts with 1)
    • setLayersInvisible

      public void setLayersInvisible()
      Sets the layers which are not needed invisible if they do not appear inside the frame.
    • clear

      public void clear()
      Remove all components from this container.
      Specified by:
      clear in class MessageDetails
    • getLayerColorVar

      public static Color getLayerColorVar(String typeOfColor, int layerNumber)
      This method returns the color defined in the enum class LayerColorVar in class AggregatedMessageTable corresponding to the type of color and the layer number.
      Parameters:
      typeOfColor - All types of colors defined in the enum class in class AggregatedMessageTable: "foregroundColor", "backgroundColor", "backgroundColorFine", "backgroundColorUltraFine"
      layerNumber - number of the layer (1 = LINK, 2 = INTERNET, 3 = TRANSPORT, 4 = APPLICATION)
      Returns:
      the desired color
    • setBorderVisible

      public void setBorderVisible(Component component, boolean isVisible)
      If the boolean value is true, creates the border of the component. Otherwise sets an empty border.
      Parameters:
      component - the component whose border will be affected
      isVisible - the border is visible (true) or not (false)