Package | Description |
---|---|
pl.netanel.swt.matrix |
Contains Matrix - a tabular SWT widget with unlimited capacity and instant rendering.
|
Modifier and Type | Method and Description |
---|---|
static <N2 extends java.lang.Number> |
AxisItem.create(Section<N2> section,
N2 index)
Creates a new instance of axis item.
|
static <N2 extends java.lang.Number> |
AxisItem.createUnchecked(Section<N2> section,
N2 index)
Creates a new instance of cell without checking arguments validity.
|
AxisItem<N> |
Axis.getFocusItem()
Returns the focus item.
|
AxisItem<N> |
Axis.getItemByViewportDistance(int distance)
Returns the item visible at the specified distance from the beginning of
viewport area or
null if the distance is outside of the
viewport bounds. |
AxisItem<N> |
Axis.getItemByViewportOffset(AxisItem<N> item,
int offset)
Returns the item visible at the specified offset from the item specified by
the given section and index or
null if the such an item is
outside of the viewport bounds. |
AxisItem<N> |
Axis.getItemByViewportPosition(int position)
Returns the item visible at the specified position in the viewport or
null if the position is outside of the viewport bounds. |
AxisItem<N> |
Axis.getMouseItem()
Returns the last item the mouse was over.
|
Modifier and Type | Method and Description |
---|---|
int |
Axis.compare(AxisItem<N> item1,
AxisItem<N> item2)
Compares positions of items on this axis and returns value greater then 0
if item1 is behind item2, value lower then zero if item1 is before item2
and 0 if items are the same.
|
int |
Axis.compare(AxisItem<N> item1,
AxisItem<N> item2)
Compares positions of items on this axis and returns value greater then 0
if item1 is behind item2, value lower then zero if item1 is before item2
and 0 if items are the same.
|
int[] |
Axis.getCellBound(AxisItem<N> item)
Returns the cell bound of the specified item in the viewport or
null if the position is outside of the viewport scope. |
AxisItem<N> |
Axis.getItemByViewportOffset(AxisItem<N> item,
int offset)
Returns the item visible at the specified offset from the item specified by
the given section and index or
null if the such an item is
outside of the viewport bounds. |
int[] |
Axis.getLineBound(AxisItem<N> item)
Returns the line bound of the specified item in the viewport or
null if the position is outside of the viewport scope. |
int |
Axis.getViewportPosition(AxisItem<N> item)
Returns the position of the given item in the sequence of items visible in
the viewport or -1 if the viewport does not display the item.
|
void |
Axis.setFocusItem(AxisItem<N> item)
Sets the focus marker to the given item.
|
void |
Axis.showItem(AxisItem<N> item)
Scrolls to the given making it visible in the viewport.
|
Copyright © 2011 netanel.pl. All Rights Reserved.