|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.netanel.swt.matrix.AxisItem<N>
N
- specifies the indexing class for the axispublic class AxisItem<N extends java.lang.Number>
Represents an axis item characterized by a section and an index within that section. Instances of this class are immutable.
Method Summary | ||
---|---|---|
static
|
create(Section<N2> section,
N2 index)
Creates a new instance of axis item. |
|
static
|
createUnchecked(Section<N2> section,
N2 index)
Creates a new instance of cell without checking arguments validity. |
|
boolean |
equals(java.lang.Object obj)
|
|
N |
getIndex()
Return index of this axis item. |
|
Section<N> |
getSection()
Returns section of this axis item. |
|
int |
hashCode()
|
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static <N2 extends java.lang.Number> AxisItem<N2> create(Section<N2> section, N2 index)
section
- section of an axisindex
- item index in the section
java.lang.IllegalArgumentException
- if section or index is null
java.lang.IndexOutOfBoundsException
- if index is out of 0 ...
Section.getCount()
boundspublic static <N2 extends java.lang.Number> AxisItem<N2> createUnchecked(Section<N2> section, N2 index)
section
- section of an axisindex
- item index in the section
public Section<N> getSection()
public N getIndex()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |