Package | Description |
---|---|
pl.netanel.swt.matrix |
Contains Matrix - a tabular SWT widget with unlimited capacity and instant rendering.
|
Modifier and Type | Method and Description |
---|---|
Section<N> |
Axis.getBody()
Returns the body section, which is by default a second section of the axis.
|
Section<N> |
Axis.getHeader()
Returns the header section, which is by default the first section of the
axis.
|
Section<N> |
AxisItem.getSection()
Returns section of this axis item.
|
Section<N> |
Axis.getSection(int sectionIndex)
Returns the section at the specified position in this axis.
|
Section<X> |
Zone.getSectionX()
Returns the zone section horizontal axis.
|
Section<Y> |
Zone.getSectionY()
Returns the zone section at vertical axis.
|
Section<N> |
Section.getUnchecked()
Returns a better performing but less user friendly implementation
for this section that is more loop efficient:
does not check validity of the method arguments
does not mark the layout as required computing on every method call,
instead relying on the client to call
Matrix.refresh()
It may be useful for loop optimization, for example inside of
Painter.paint(int, int, int, int)
method. |
Modifier and Type | Method and Description |
---|---|
int |
Axis.compare(Section<N> section1,
Section<N> section2)
Compares positions of sections on this axis and returns value greater then
0 if section1 is behind section2, value lower then zero if section1 is
before section2 and 0 if sections are the same.
|
int |
Axis.compare(Section<N> section1,
Section<N> section2)
Compares positions of sections on this axis and returns value greater then
0 if section1 is behind section2, value lower then zero if section1 is
before section2 and 0 if sections are the same.
|
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.
|
Zone<X,Y> |
Matrix.getZone(Section<X> sectionX,
Section<Y> sectionY)
Returns a zone located at the intersection of the given axis sections.
|
Zone<X,Y> |
Matrix.getZone(Section<X> sectionX,
Section<Y> sectionY)
Returns a zone located at the intersection of the given axis sections.
|
int |
Axis.indexOf(Section<N> section)
Returns index of the given section in the list of this axis sections or -1
if the section does not belong to this axis.
|
void |
Axis.setFocusItem(Section<N> section,
N index)
Sets the focus marker to the given item.
|
void |
Axis.showItem(Section<N> section,
N index)
Scrolls to the given making it visible in the viewport.
|
Copyright © 2011 netanel.pl. All Rights Reserved.