public class ScrollBarInfo extends Object
IDocument
.Constructor and Description |
---|
ScrollBarInfo(int th,
int ch,
int y,
int tw,
int cw,
int x)
Constructs a
ScrollBarInfo object. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares the scroll bar with another object
|
int |
getCurrentHeight()
Gets the current showing-height of the scroll bar.
|
int |
getCurrentWidth()
Gets the current showing-width of the scroll bar.
|
int |
getTotalHeight()
Gets the total height of the scroll bar.
|
int |
getTotalWidth()
Gets the total width of the scroll bar.
|
int |
getXPos()
Gets the current x position of the scroll bar.
|
int |
getYPos()
Gets the current y position of the scroll bar.
|
int |
hashCode() |
String |
toString()
Gets the scroll bar information as a String.
|
public ScrollBarInfo(int th, int ch, int y, int tw, int cw, int x)
ScrollBarInfo
object.th
- total height.ch
- current height.y
- y position.tw
- total width.cw
- current width.x
- x position.public int getCurrentHeight()
public int getTotalHeight()
public int getYPos()
public int getCurrentWidth()
public int getTotalWidth()
public int getXPos()
public String toString()
public boolean equals(Object obj)