com.jniwrapper.win32.shell
Class ComponentLocation

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.Structure
          extended by com.jniwrapper.win32.shell.ComponentLocation
All Implemented Interfaces:
com.jniwrapper.AlignmentAwareParameter, com.jniwrapper.CompositeParameter

public class ComponentLocation
extends com.jniwrapper.Structure

Represents COMPPOS native structure, which holds information about position and size of the component


Field Summary
 
Fields inherited from class com.jniwrapper.Structure
i
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Constructor Summary
ComponentLocation()
          Creates an instance of ComponentLocation class
ComponentLocation(ComponentLocation that)
          Creates an instance of ActiveDesktopItem with a specified item.
 
Method Summary
 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
 
Methods inherited from class com.jniwrapper.Structure
a, a, acceptIOPerformer, addMembers, computeLength, equals, getAlignmentRequirement, getDebugInfo, getFirstMemberSize, getLength, getMember, getMembers, getOffsets, init, init, initFrom, pop, push, read, setDataBuffer, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, asReturnValue, b, dataBufferAssigned, getAlignedLength, getDataBuffer, getDataBufferOffset, hashCode, indent, read, read, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentLocation

public ComponentLocation()
Creates an instance of ComponentLocation class


ComponentLocation

public ComponentLocation(ComponentLocation that)
Creates an instance of ActiveDesktopItem with a specified item.

Parameters:
that - Instance of the ComponentLocation class
Method Detail

getLeft

public int getLeft()
Returns left edge of the top-left corner in screen coordinates.

Returns:
The left edge of the top-left corner in screen coordinates.

setiLeft

public void setiLeft(int left)
Sets left edge of the top-left corner in screen coordinates.

Parameters:
left - The left edge of the top-left corner in screen coordinates.

getTop

public int getTop()
Returns top of the top-left corner in screen coordinates.

Returns:
The top of the top-left corner in screen coordinates.

setTop

public void setTop(int top)
Sets top of the top-left corner in screen coordinates.

Parameters:
top - The top of the top-left corner in screen coordinates.

getWidth

public int getWidth()
Returns width, in pixels

Returns:
The width, in pixels

setWidth

public void setWidth(int width)
Sets width, in pixels

Parameters:
width - The width, in pixels

getHeight

public int getHeight()
Returns height, in pixels

Returns:
The height, in pixels

setHeight

public void setHeight(int height)
Sets height, in pixels

Parameters:
height - The height, in pixels

getIndex

public int getIndex()
Returns z-order of the component.

Returns:
The z-order of the component.

setIndex

public void setIndex(int index)
Sets z-order of the component.

Parameters:
index - The z-order of the component.

getCanResize

public boolean getCanResize()
Returns value, which indicates whether the component is resizable or not

Returns:
TRUE if the component is resizable, FALSE if not

setCanResize

public void setCanResize(boolean canResize)
Sets the value of the property, which indicates whether the component is resizable or not

Parameters:
canResize - TRUE if the component is resizable, FALSE if not

getCanResizeX

public boolean getCanResizeX()
Returns value, which indicates whether the component is resizable in the x-direction or not

Returns:
TRUE if the component is resizable in the x-direction, FALSE if not

setCanResizeX

public void setCanResizeX(boolean canResizeX)
Sets the value of the property, which indicates whether the component is resizable in the x-direction or not

Parameters:
canResizeX - TRUE if the component is resizable in the x-direction, FALSE if not

getCanResizeY

public boolean getCanResizeY()
Returns value, which indicates whether the component is resizable in the y-direction or not

Returns:
TRUE if the component is resizable in the y-direction, FALSE if not

setCanResizeY

public void setCanResizeY(boolean canResizeY)
Sets the value of the property, which indicates whether the component is resizable in the y-direction or not

Parameters:
canResizeY - TRUE if the component is resizable in the y-direction, FALSE if not

getPreferredLeftPercent

public int getPreferredLeftPercent()
Returns left edge of the upper-left corner as a percentage of screen width

Returns:
The left edge of the upper-left corner as a percentage of screen width

setPreferredLeftPercent

public void setPreferredLeftPercent(int preferredLeftPercent)
Sets left edge of the upper-left corner as a percentage of screen width

Parameters:
preferredLeftPercent - The left edge of the upper-left corner as a percentage of screen width

getPreferredTopPercent

public int getPreferredTopPercent()
Returns top of the upper-left corner as a percentage of screen width

Returns:
The top of the upper-left corner as a percentage of screen width

setPreferredTopPercent

public void setPreferredTopPercent(int preferredTopPercent)
Sets top of the upper-left corner as a percentage of screen width

Parameters:
preferredTopPercent - The top of the upper-left corner as a percentage of screen width

clone

public java.lang.Object clone()
Creates copy of this instance

Overrides:
clone in class com.jniwrapper.Structure
Returns:
Copy of this instance