Class ViewerPosition
- java.lang.Object
- 
- docking.widgets.fieldpanel.support.ViewerPosition
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class ViewerPosition extends java.lang.Object implements java.io.SerializableRecords the current top of screen position of the viewer.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ViewerPosition(int index, int xOffset, int yOffset)ViewerPosition(java.math.BigInteger index, int xOffset, int yOffset)Construct a new viewer position with the given index, xOffset and yOffset.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.math.BigIntegergetIndex()intgetIndexAsInt()Returns the index of the item at the top of the screen.intgetXOffset()Returns the horizontal scroll position.intgetYOffset()Returns the y coordinate of the layout at the top of the screen.java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
ViewerPositionpublic ViewerPosition(java.math.BigInteger index, int xOffset, int yOffset)Construct a new viewer position with the given index, xOffset and yOffset.- Parameters:
- index- the index of the layout displayed at the top of the screen.
- xOffset- The horizontal scroll position (NOT CURRENTLY USED)
- yOffset- the vertical position of the layout at the top of the screen. If the the layout is totally visible, then the yOffset will be 0. Otherwise, it will be < 0 indicating that it begins above the top of the screen.
 
 - 
ViewerPositionpublic ViewerPosition(int index, int xOffset, int yOffset)
 
- 
 - 
Method Detail- 
getIndexAsIntpublic final int getIndexAsInt() Returns the index of the item at the top of the screen.
 - 
getIndexpublic final java.math.BigInteger getIndex() 
 - 
getXOffsetpublic final int getXOffset() Returns the horizontal scroll position.
 - 
getYOffsetpublic final int getYOffset() Returns the y coordinate of the layout at the top of the screen.
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
- See Also:
- Object.equals(java.lang.Object)
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
- See Also:
- Object.toString()
 
 
- 
 
-