Class Section


  • public class Section
    extends java.lang.Object
    A Section is HashMap of a data structure we read from the ini. We have a type (HIGHLIGHT] and Key-Value Pairs. [HIGHLIGHT] CUSTOMPROPERTY = 1 X = 745 Y = 63 WIDTH = 203 HEIGHT = 156 PAGE = 1 EDIT = 1 FILLCOLOR = 255, 255, 0 TRANSPARENT = 1 LINEWIDTH = 0
    Author:
    jek
    • Constructor Summary

      Constructors 
      Constructor Description
      Section​(java.lang.String aType, java.util.Map<java.lang.String,​java.lang.String> aKeyValuePair)
      Constructor.
    • Constructor Detail

      • Section

        public Section​(java.lang.String aType,
                       java.util.Map<java.lang.String,​java.lang.String> aKeyValuePair)
        Constructor.
        Parameters:
        aType - type of section
        aKeyValuePair - keyValuePairs of Parameter
    • Method Detail

      • getKeyValuePair

        public java.util.Map<java.lang.String,​java.lang.String> getKeyValuePair()
        Returns:
        the keyValuePair
      • size

        public int size()
        Returns:
        size
      • setKeyValuePair

        public void setKeyValuePair​(java.util.Map<java.lang.String,​java.lang.String> aKeyValuePair)
        Parameters:
        aKeyValuePair - the keyValuePair to set
      • getType

        public java.lang.String getType()
        Returns:
        the type
      • setType

        public void setType​(java.lang.String aType)
        Parameters:
        aType - the type to set
      • getSectionByType

        public static Section getSectionByType​(java.util.List<Section> sections,
                                               java.lang.String type)
        Parameters:
        sections - ArrayList of Sections
        type - type
        Returns:
        Section Section
      • renderSection

        public java.lang.String renderSection()
        renderSection .
        Returns:
        renderedSection renderedSection
      • getCustomerProperty

        public java.lang.String getCustomerProperty()
        getCustomerProperty .
        Returns:
        customerProperty customerProperty
      • isVisible

        public boolean isVisible()
        isVisible in Virtual Viewer.
        Returns:
        isVisible in Virtual Viewer
      • getValue

        public static java.lang.String getValue​(Section section,
                                                java.lang.String key)
        Resolve a String value from a Section with the given key.
        Parameters:
        section - section
        key - key
        Returns:
        customerProperty customerProperty
      • isCustom

        public boolean isCustom()
        Returns:
        whether this is the CUSTOM section
      • hasAcls

        public boolean hasAcls()
        Returns:
        whether the section has acls. Will only be written to the CUSTOM section
      • hasBlackMarkers

        public boolean hasBlackMarkers()
        Returns:
        whether the section has black markers. Will only be written to the CUSTOM section.