Class LabeledShape

    • Constructor Detail

      • LabeledShape

        public LabeledShape()
    • Method Detail

      • getText

        public java.lang.String getText()
        Returns the text.
      • setText

        public void setText​(java.lang.String aString)
        Sets the text.
      • getImageName

        public java.lang.String getImageName()
        Returns the image name.
      • setImageName

        public void setImageName​(java.lang.String aName)
        Sets the image name.
      • getImageFile

        public WebFile getImageFile()
        Returns the image WebFile.
      • getImageFile

        public WebFile getImageFile​(java.lang.String aName)
        Returns the image WebFile.
      • getHorizontalAlignment

        public int getHorizontalAlignment()
        Returns the HorizontalAlignment.
      • setHorizontalAlignment

        public void setHorizontalAlignment​(int aValue)
        Sets the HorizontalAlignment.
      • getHorizontalAlignmentDefault

        public int getHorizontalAlignmentDefault()
        Returns the default HorizontalAlignment.
      • getVerticalAlignment

        public int getVerticalAlignment()
        Returns the VerticalAlignment.
      • setVerticalAlignment

        public void setVerticalAlignment​(int aValue)
        Sets the VerticalAlignment.
      • getVerticalAlignmentDefault

        public int getVerticalAlignmentDefault()
        Returns the default VerticalAlignment.
      • getHorizontalTextPosition

        public int getHorizontalTextPosition()
        Returns the HorizontalTextPosition.
      • setHorizontalTextPosition

        public void setHorizontalTextPosition​(int aValue)
        Sets the HorizontalTextPosition.
      • getVerticalTextPosition

        public int getVerticalTextPosition()
        Returns the VerticalTextPosition.
      • setVerticalTextPosition

        public void setVerticalTextPosition​(int aValue)
        Sets the VerticalTextPosition.
      • getIconTextGap

        public int getIconTextGap()
        Returns the IconTextGap.
      • setIconTextGap

        public void setIconTextGap​(int aValue)
        Sets the IconTextGap.
      • getHorizontalAlignmentString

        public static java.lang.String getHorizontalAlignmentString​(int anInt)
        Returns the horizontal alignment of the given component as a string ("left", "center" or "right").
      • getHorizontalAlignmentInt

        public static java.lang.Integer getHorizontalAlignmentInt​(java.lang.String aString)
        Sets the horizontal alignment of the given component as a string ("left", "center" or "right").
      • getVerticalAlignmentString

        public static java.lang.String getVerticalAlignmentString​(int anInt)
        Returns the vertical alignment of the given component as a string ("top", "center" or "bottom").
      • getVerticalAlignmentInt

        public static java.lang.Integer getVerticalAlignmentInt​(java.lang.String aString)
        Sets the vertical alignment of the given component as a string ("top", "center" or "bottom").
      • getHorizontalTextPositionString

        public static java.lang.String getHorizontalTextPositionString​(int anInt)
        Returns the labels horizontal text position as a string.
      • getHorizontalTextPositionInt

        public static java.lang.Integer getHorizontalTextPositionInt​(java.lang.String aString)
        Sets the label's horizontal text position as a string.
      • getVerticalTextPositionString

        public static java.lang.String getVerticalTextPositionString​(int anInt)
        Returns the labels vertical text position as a string.
      • getVerticalTextPositionInt

        public static java.lang.Integer getVerticalTextPositionInt​(java.lang.String aString)
        Sets the label's vertical text position as a string.
      • getIcon

        public javax.swing.Icon getIcon()
        Returns the icon.
      • setIcon

        public void setIcon​(javax.swing.Icon anIcon)
        Sets the icon.
      • getIcon

        @Nullable
        protected javax.swing.Icon getIcon​(java.lang.String aName)
        Returns an icon for given name.