Class RegionGraphic


  • public class RegionGraphic
    extends Region
    This class represents a graphic region stored in the device.
    • Field Detail

      • JUSTIFY_LEFT

        public static final int JUSTIFY_LEFT
        This graphic will be justified to the left.
        See Also:
        Constant Field Values
      • JUSTIFY_TOP

        public static final int JUSTIFY_TOP
        This graphic will be justified to the top.
        See Also:
        Constant Field Values
      • JUSTIFY_RIGHT

        public static final int JUSTIFY_RIGHT
        This graphic will be justified to the right.
        See Also:
        Constant Field Values
      • JUSTIFY_BOTTOM

        public static final int JUSTIFY_BOTTOM
        This graphic will be justified to the bottom.
        See Also:
        Constant Field Values
      • JUSTIFY_CENTER

        public static final int JUSTIFY_CENTER
        This graphic will be justified to the center. Can be set for both horizontal and vertical.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RegionGraphic

        public RegionGraphic()
        Default constructor, creates a new blank graphic region.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class Region
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Region
      • toString

        public java.lang.String toString()
        Prints this object as a human readable string.
        Overrides:
        toString in class Region
        Returns:
        Human readable string.
      • getResourceNumber

        public int getResourceNumber()
        Gets the resource ID used for this region.
        Returns:
        resource number
      • setResourceNumber

        public void setResourceNumber​(int resourceNumber)
        Sets the resource ID used for this region.
        Parameters:
        resourceNumber - resource number
      • getHorizontalJustification

        public int getHorizontalJustification()
        Gets the horizontal justification for the graphic in this region.
        Returns:
        horizontal justification
      • setHorizontalJustification

        public void setHorizontalJustification​(int horizontalJustification)
        Sets the horizontal justification for the graphic in this region.
        Parameters:
        horizontalJustification - horizontal justification
      • getVerticalJustification

        public int getVerticalJustification()
        Gets the vertical justification for the graphic in this region.
        Returns:
        vertical justification
      • setVerticalJustification

        public void setVerticalJustification​(int verticalJustification)
        Sets the vertical justification for the graphic in this region.
        Parameters:
        verticalJustification - vertical justification
      • getGraphicReserved

        public int getGraphicReserved()
        Reserved for future use.
        Returns:
        graphic reserved
      • setGraphicReserved

        public void setGraphicReserved​(int graphicReserved)
        Reserved for future use.
        Parameters:
        graphicReserved - graphic reserved