- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<QPoint>
,Collection<QPoint>
,List<QPoint>
,SequencedCollection<QPoint>
List of points using integer precision
Java wrapper for Qt class QPolygon
-
Constructor Summary
ConstructorDescriptionQPolygon()
QPolygon
(int ... points) Overloaded constructor forQPolygon(java.nio.IntBuffer)
.Overloaded constructor forQPolygon(io.qt.core.QRect, boolean)
withclosed = false
.SeeQPolygon::
QPolygon(QPolygon) SeeQPolygon::
QPolygon(int, const int*) QPolygon
(Collection<? extends QPoint> v) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
addAll
(int index, Collection<? extends QPoint> c) Inserts all of the elements in the specified collection into this list at the specified position.final boolean
addAll
(Collection<? extends QPoint> c) Appends all of the elements in the specified collection to the end of this list.final void
append
(int x, int y) final QRect
clone()
Creates and returns a copy of this object.final boolean
containsAll
(Collection<?> c) Returnstrue
if this container contains all of the elements in the specified collection.final boolean
containsPoint
(QPoint pt, Qt.FillRule fillRule) int
hashCode()
Returns the objects's hash code computed byqHash(QPolygon)
.final QPolygon
final boolean
iterator()
Returns an iterator over elements of typeT
.final ListIterator
<QPoint> Returns a list iterator over the elements in this list (in proper sequence).final ListIterator
<QPoint> listIterator
(int index) Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.final QPoint
point
(int i) final void
putPoints
(int index, int ... points) Overloaded function forputPoints(int, java.nio.IntBuffer)
.final void
Overloaded function forputPoints(int, int, io.qt.gui.QPolygon, int)
withfromIndex = 0
.final void
final void
SeeQPolygon::
putPoints(int, int, const int*) void
readFrom
(QDataStream stream) Seeoperator>>(QDataStream&,
QPolygon&) final QPoint
remove
(int index) Removes the element at the specified position in this list.final boolean
removeAll
(Collection<?> c) Removes all of this container elements that are also contained in the specified collection.final boolean
retainAll
(Collection<?> c) Retains only the elements in this list that are contained in the specified collection (optional operation).final void
setPoint
(int index, int x, int y) final void
final void
setPoints
(int ... points) Overloaded function forsetPoints(java.nio.IntBuffer)
.final void
subList
(int fromIndex, int toIndex) Returns a view of the portion of this list between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive.final QPolygon
final void
final QPolygon
times
(QTransform m) Seeoperator*(QPolygon,
QTransform) final Object[]
toArray()
Returns an array containing all of the elements in this container.final <A> A[]
toArray
(A[] a) Returns an array containing all of the elements in this container.final QPolygonF
toString()
Seeoperator<<(QDebug,
QPolygon) final void
translate
(int dx, int dy) final void
final QPolygon
translated
(int dx, int dy) final QPolygon
translated
(QPoint offset) final QPolygon
void
writeTo
(QDataStream stream) Seeoperator<<(QDataStream&,
QPolygon) Methods inherited from class io.qt.core.QList
add, add, append, append, at, begin, capacity, clear, constBegin, constEnd, contains, count, count, createVariantList, createVariantList, end, endsWith, equals, fill, fill, first, get, indexOf, indexOf, insert, insert, isEmpty, last, lastIndexOf, lastIndexOf, length, mid, mid, move, of, of, prepend, remove, remove, removeAll, removeAt, removeFirst, removeIf, removeLast, removeOne, replace, reserve, resize, set, size, squeeze, startsWith, swapItemsAt, takeAt, takeFirst, takeLast, value, value
Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
addFirst, addLast, containsAll, getFirst, getLast, iterator, removeAll, replaceAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
QPolygon
public QPolygon() -
QPolygon
-
QPolygon
See
QPolygon::
QPolygon(QPolygon) -
QPolygon
-
QPolygon
See
QPolygon::
QPolygon(int, const int*) -
QPolygon
Overloaded constructor for
QPolygon(io.qt.core.QRect, boolean)
withclosed = false
. -
QPolygon
public QPolygon(int ... points) Overloaded constructor for
QPolygon(java.nio.IntBuffer)
.
-
-
Method Details
-
boundingRect
-
containsPoint
-
intersected
-
intersects
-
times
See
operator*(QPolygon,
QTransform) -
writeTo
See
operator<<(QDataStream&,
QPolygon) -
readFrom
See
operator>>(QDataStream&,
QPolygon&) -
point
-
putPoints
-
putPoints
See
QPolygon::
putPoints(int, int, const int*) -
setPoint
-
setPoint
-
setPoints
-
subtracted
-
swap
-
toPolygonF
-
translate
-
translate
-
translated
-
translated
-
united
-
hashCode
Returns the objects's hash code computed byqHash(QPolygon)
. -
append
-
toString
See
operator<<(QDebug,
QPolygon) -
clone
Creates and returns a copy of this object.
See
QPolygon::
QPolygon(QPolygon) -
putPoints
Overloaded function for
putPoints(int, int, io.qt.gui.QPolygon, int)
withfromIndex = 0
. -
putPoints
Overloaded function for
putPoints(int, java.nio.IntBuffer)
. -
setPoints
Overloaded function for
setPoints(java.nio.IntBuffer)
. -
addAll
Appends all of the elements in the specified collection to the end of this list.- Specified by:
addAll
in interfaceCollection<T>
- Specified by:
addAll
in interfaceList<T>
-
addAll
Inserts all of the elements in the specified collection into this list at the specified position. -
remove
Removes the element at the specified position in this list. -
listIterator
Returns a list iterator over the elements in this list (in proper sequence).- Specified by:
listIterator
in interfaceList<T>
-
listIterator
Returns a list iterator over the elements in this list (in proper sequence), starting at the specified position in the list.- Specified by:
listIterator
in interfaceList<T>
-
subList
Returns a view of the portion of this list between the specifiedfromIndex
, inclusive, andtoIndex
, exclusive. (IffromIndex
andtoIndex
are equal, the returned list is empty.) The returned list is backed by this list, so non-structural changes in the returned list are reflected in this list, and vice-versa. The returned list supports all of the optional list operations supported by this list. -
retainAll
Retains only the elements in this list that are contained in the specified collection (optional operation). In other words, removes from this list all of its elements that are not contained in the specified collection.- Specified by:
retainAll
in interfaceCollection<T>
- Specified by:
retainAll
in interfaceList<T>
-
toArray
Returns an array containing all of the elements in this container.- Specified by:
toArray
in interfaceCollection<T>
-
toArray
Returns an array containing all of the elements in this container.- Specified by:
toArray
in interfaceCollection<T>
-
containsAll
Returnstrue
if this container contains all of the elements in the specified collection.- Specified by:
containsAll
in interfaceCollection<T>
-
removeAll
Removes all of this container elements that are also contained in the specified collection.- Specified by:
removeAll
in interfaceCollection<T>
-
iterator
Returns an iterator over elements of typeT
.- Specified by:
iterator
in interfaceCollection<T>
- Specified by:
iterator
in interfaceIterable<T>
- Returns:
- an Iterator
-