Class NetworkMapTextBox

java.lang.Object
org.netxms.client.maps.elements.NetworkMapElement
org.netxms.client.maps.elements.NetworkMapTextBox

public class NetworkMapTextBox extends NetworkMapElement
Network map element representing a text box
  • Constructor Details

    • NetworkMapTextBox

      protected NetworkMapTextBox(NXCPMessage msg, long baseId)
      Create new text box from NXCP messgae
      Parameters:
      msg - NXCP message
      baseId - base field ID
    • NetworkMapTextBox

      public NetworkMapTextBox(long id)
      Create new text box element
      Parameters:
      id - element ID
  • Method Details

    • fillMessage

      public void fillMessage(NXCPMessage msg, long baseId)
      Description copied from class: NetworkMapElement
      Fill NXCP message with element data
      Overrides:
      fillMessage in class NetworkMapElement
      Parameters:
      msg - NXCP message
      baseId - base variable ID
      See Also:
    • getText

      public String getText()
      Get text.
      Returns:
      text
    • setText

      public void setText(String text)
      Set text.
      Parameters:
      text - new text
    • getBackgroundColor

      public int getBackgroundColor()
      Get background color.
      Returns:
      background color in BGR format
    • setBackgroundColor

      public void setBackgroundColor(int backgroundColor)
      Set background color.
      Parameters:
      backgroundColor - new background color in BGR format
    • getTextColor

      public int getTextColor()
      Get text color.
      Returns:
      text color in BGR format
    • setTextColor

      public void setTextColor(int textColor)
      Set text color.
      Parameters:
      textColor - new text color in BGR format
    • getBorderColor

      public int getBorderColor()
      Get border color.
      Returns:
      border color in BGR format
    • setBorderColor

      public void setBorderColor(int borderColor)
      Set border color.
      Parameters:
      borderColor - new border color in BGR format
    • isBorderRequired

      public boolean isBorderRequired()
      Returns:
      the borderRequired
    • setBorderRequired

      public void setBorderRequired(boolean borderRequired)
      Parameters:
      borderRequired - the borderRequired to set
    • getFontSize

      public int getFontSize()
      Returns:
      font size
    • setFontSize

      public void setFontSize(int fontSize)
      Parameters:
      fontSize - to set
    • getDrillDownObjectId

      public long getDrillDownObjectId()
      Returns:
      drill down object id
    • setDrillDownObjectId

      public void setDrillDownObjectId(long drillDownObjectId)
      Parameters:
      drillDownObjectId - to set