|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface captures the model for handling a component that can be segmented along the horizontal or vertical axis, with each segment size being separately tunable.
Method Summary | |
void |
addRulerModelListener(RulerModelListener listener)
|
int |
getCount()
Returns the number of entries. |
int |
getIndex(int position)
Returns the index of the entry that contains the specified position. |
int |
getPosition(int index)
Returns the start position for the specified entry. |
int |
getSize(int index)
Returns the size of the specified entry. |
int |
getTotalSize()
Returns the total size of the entries. |
void |
removeRulerModelListener(RulerModelListener listener)
|
void |
setSize(int index,
int size)
Sets the size of the specified entry. |
Method Detail |
public void addRulerModelListener(RulerModelListener listener)
public void removeRulerModelListener(RulerModelListener listener)
public int getSize(int index)
index
- the index corresponding to the entry
public int getIndex(int position)
position
- the position of the entry
public int getPosition(int index)
index
- the index of the entry whose position is desired
public int getCount()
public void setSize(int index, int size)
index
- the index corresponding to the entrysize
- the size of the entrypublic int getTotalSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |