public class ComponentLocation
extends com.jniwrapper.Structure
COMPPOS
native structure, which
holds information about position and size of the componentConstructor and Description |
---|
ComponentLocation()
Creates an instance of ComponentLocation class
|
ComponentLocation(ComponentLocation that)
Creates an instance of ActiveDesktopItem with a specified item.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates copy of this instance
|
boolean |
getCanResize()
Returns value, which indicates whether the component is resizable or not
|
boolean |
getCanResizeX()
Returns value, which indicates whether the component is resizable in the x-direction or not
|
boolean |
getCanResizeY()
Returns value, which indicates whether the component is resizable in the y-direction or not
|
int |
getHeight()
Returns height, in pixels
|
int |
getIndex()
Returns z-order of the component.
|
int |
getLeft()
Returns left edge of the top-left corner in screen coordinates.
|
int |
getPreferredLeftPercent()
Returns left edge of the upper-left corner as a percentage of screen width
|
int |
getPreferredTopPercent()
Returns top of the upper-left corner as a percentage of screen width
|
int |
getTop()
Returns top of the top-left corner in screen coordinates.
|
int |
getWidth()
Returns width, in pixels
|
void |
setCanResize(boolean canResize)
Sets the value of the property, which indicates whether the component is resizable or not
|
void |
setCanResizeX(boolean canResizeX)
Sets the value of the property, which indicates whether the component is resizable in the x-direction or not
|
void |
setCanResizeY(boolean canResizeY)
Sets the value of the property, which indicates whether the component is resizable in the y-direction or not
|
void |
setHeight(int height)
Sets height, in pixels
|
void |
setiLeft(int left)
Sets left edge of the top-left corner in screen coordinates.
|
void |
setIndex(int index)
Sets z-order of the component.
|
void |
setPreferredLeftPercent(int preferredLeftPercent)
Sets left edge of the upper-left corner as a percentage of screen width
|
void |
setPreferredTopPercent(int preferredTopPercent)
Sets top of the upper-left corner as a percentage of screen width
|
void |
setTop(int top)
Sets top of the top-left corner in screen coordinates.
|
void |
setWidth(int width)
Sets width, in pixels
|
acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
public ComponentLocation()
public ComponentLocation(ComponentLocation that)
that
- Instance of the ComponentLocation classpublic int getLeft()
public void setiLeft(int left)
left
- The left edge of the top-left corner in screen coordinates.public int getTop()
public void setTop(int top)
top
- The top of the top-left corner in screen coordinates.public int getWidth()
public void setWidth(int width)
width
- The width, in pixelspublic int getHeight()
public void setHeight(int height)
height
- The height, in pixelspublic int getIndex()
public void setIndex(int index)
index
- The z-order of the component.public boolean getCanResize()
public void setCanResize(boolean canResize)
canResize
- TRUE if the component is resizable, FALSE if notpublic boolean getCanResizeX()
public void setCanResizeX(boolean canResizeX)
canResizeX
- TRUE if the component is resizable in the x-direction, FALSE if notpublic boolean getCanResizeY()
public void setCanResizeY(boolean canResizeY)
canResizeY
- TRUE if the component is resizable in the y-direction, FALSE if notpublic int getPreferredLeftPercent()
public void setPreferredLeftPercent(int preferredLeftPercent)
preferredLeftPercent
- The left edge of the upper-left corner as a percentage of screen widthpublic int getPreferredTopPercent()
public void setPreferredTopPercent(int preferredTopPercent)
preferredTopPercent
- The top of the upper-left corner as a percentage of screen widthpublic java.lang.Object clone()
clone
in class com.jniwrapper.Structure