Package com.scriptel.proscript
Class RegionGraphic
- java.lang.Object
-
- com.scriptel.proscript.Region
-
- com.scriptel.proscript.RegionGraphic
-
public class RegionGraphic extends Region
This class represents a graphic region stored in the device.
-
-
Field Summary
Fields Modifier and Type Field Description static intJUSTIFY_BOTTOMThis graphic will be justified to the bottom.static intJUSTIFY_CENTERThis graphic will be justified to the center.static intJUSTIFY_LEFTThis graphic will be justified to the left.static intJUSTIFY_RIGHTThis graphic will be justified to the right.static intJUSTIFY_TOPThis graphic will be justified to the top.
-
Constructor Summary
Constructors Constructor Description RegionGraphic()Default constructor, creates a new blank graphic region.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)intgetGraphicReserved()Reserved for future use.intgetHorizontalJustification()Gets the horizontal justification for the graphic in this region.intgetResourceNumber()Gets the resource ID used for this region.intgetVerticalJustification()Gets the vertical justification for the graphic in this region.inthashCode()voidsetGraphicReserved(int graphicReserved)Reserved for future use.voidsetHorizontalJustification(int horizontalJustification)Sets the horizontal justification for the graphic in this region.voidsetResourceNumber(int resourceNumber)Sets the resource ID used for this region.voidsetVerticalJustification(int verticalJustification)Sets the vertical justification for the graphic in this region.java.lang.StringtoString()Prints this object as a human readable string.-
Methods inherited from class com.scriptel.proscript.Region
acceptsTouch, getColorBackground, getColorForeground, getNumber, getOutputToHost, getReserved2, getX1, getX2, getY1, getY2, hasFrame, isDecode, isInUse, isReserved1, isVisible, setAcceptTouch, setColorBackground, setColorForeground, setDecode, setHasFrame, setInUse, setNumber, setOutputToHost, setReserved1, setReserved2, setVisible, setX1, setX2, setY1, setY2
-
-
-
-
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
-
-
Method Detail
-
toString
public java.lang.String toString()
Prints this object as a 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
-
-