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 int
JUSTIFY_BOTTOM
This graphic will be justified to the bottom.static int
JUSTIFY_CENTER
This graphic will be justified to the center.static int
JUSTIFY_LEFT
This graphic will be justified to the left.static int
JUSTIFY_RIGHT
This graphic will be justified to the right.static int
JUSTIFY_TOP
This 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 boolean
equals(java.lang.Object o)
int
getGraphicReserved()
Reserved for future use.int
getHorizontalJustification()
Gets the horizontal justification for the graphic in this region.int
getResourceNumber()
Gets the resource ID used for this region.int
getVerticalJustification()
Gets the vertical justification for the graphic in this region.int
hashCode()
void
setGraphicReserved(int graphicReserved)
Reserved for future use.void
setHorizontalJustification(int horizontalJustification)
Sets the horizontal justification for the graphic in this region.void
setResourceNumber(int resourceNumber)
Sets the resource ID used for this region.void
setVerticalJustification(int verticalJustification)
Sets the vertical justification for the graphic in this region.java.lang.String
toString()
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
-
-