- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Iterable<QPoint>
,Collection<QPoint>
,List<QPoint>
public class QPolygon extends QtJambiVectorObject<QPoint> implements Cloneable
Vector of points using integer precision
Java wrapper for Qt class QPolygon
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QPolygon()
QPolygon(int size)
QPolygon(QRect r)
Overloaded constructor forQPolygon(io.qt.core.QRect, boolean)
withclosed = false
.QPolygon(QRect r, boolean closed)
QPolygon(QPolygon other)
protected
QPolygon(QtObject.QPrivateConstructor p)
Constructor for internal use only.QPolygon(Collection<QPoint> v)
-
Method Summary
Modifier and Type Method Description void
add(int index, QPoint e)
boolean
add(QPoint e)
void
append(int x, int y)
void
append(QPoint t)
void
append(Collection<QPoint> l)
QPoint
at(int i)
protected QIterator<QPoint>
begin()
QRect
boundingRect()
int
capacity()
void
clear()
QPolygon
clone()
boolean
contains(QPoint t)
boolean
contains(Object e)
boolean
containsPoint(QPoint pt, Qt.FillRule fillRule)
int
count()
int
count(QPoint t)
void
detach()
protected QIterator<QPoint>
end()
boolean
endsWith(QPoint t)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.void
fill(QPoint t)
Overloaded function forfill(io.qt.core.QPoint, int)
withsize = -1
.void
fill(QPoint t, int size)
QPoint
first()
QPoint
get(int index)
int
hashCode()
int
indexOf(QPoint t)
Overloaded function forindexOf(io.qt.core.QPoint, int)
withfrom = 0
.int
indexOf(QPoint t, int from)
int
indexOf(Object e)
void
insert(int i, int n, QPoint t)
protected void
insert(int i, QPoint t)
QPolygon
intersected(QPolygon r)
boolean
intersects(QPolygon r)
boolean
isDetached()
boolean
isEmpty()
boolean
isSharedWith(Collection<QPoint> other)
QPoint
last()
int
lastIndexOf(QPoint t)
Overloaded function forlastIndexOf(io.qt.core.QPoint, int)
withfrom = -1
.int
lastIndexOf(QPoint t, int from)
int
lastIndexOf(Object e)
int
length()
List<QPoint>
mid(int pos)
Overloaded function formid(int, int)
withlen = -1
.List<QPoint>
mid(int pos, int len)
void
move(int from, int to)
void
prepend(QPoint t)
void
readFrom(QDataStream stream)
void
remove(int i, int n)
boolean
remove(Object e)
int
removeAll(QPoint t)
void
removeAt(int i)
void
removeFirst()
void
removeLast()
boolean
removeOne(QPoint t)
void
replace(int i, QPoint t)
void
reserve(int size)
void
resize(int size)
QPoint
set(int index, QPoint e)
void
setSharable(boolean sharable)
void
shrink_to_fit()
int
size()
void
squeeze()
boolean
startsWith(QPoint t)
QPolygon
subtracted(QPolygon r)
void
swap(QPolygon other)
void
swapItemsAt(int i, int j)
QPoint
takeAt(int i)
QPoint
takeFirst()
QPoint
takeLast()
List<QPoint>
toList()
String
toString()
void
translate(int dx, int dy)
void
translate(QPoint offset)
QPolygon
translated(int dx, int dy)
QPolygon
translated(QPoint offset)
QPolygon
united(QPolygon r)
QPoint
value(int i)
QPoint
value(int i, QPoint defaultValue)
void
writeTo(QDataStream stream)
Methods inherited from class io.qt.internal.QtJambiAbstractListObject
addAll, addAll, listIterator, listIterator, remove, subList
Methods inherited from class io.qt.internal.QtJambiCollectionObject
castElement, checkElement, containsAll, iterator, removeAll, retainAll, toArray, toArray
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.List
containsAll, iterator, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Constructor Details
-
Method Details
-
append
-
append
- Specified by:
append
in classQtJambiAbstractListObject<QPoint>
-
at
-
begin
- Specified by:
begin
in classQtJambiCollectionObject<QPoint>
-
boundingRect
-
capacity
-
clear
-
contains
-
containsPoint
-
count
-
count
-
detach
-
end
- Specified by:
end
in classQtJambiCollectionObject<QPoint>
-
endsWith
-
fill
Overloaded function for
fill(io.qt.core.QPoint, int)
withsize = -1
. -
fill
-
first
-
indexOf
Overloaded function for
indexOf(io.qt.core.QPoint, int)
withfrom = 0
. -
indexOf
-
insert
-
insert
-
intersected
-
intersects
-
isDetached
-
isEmpty
-
isSharedWith
-
last
-
lastIndexOf
Overloaded function for
lastIndexOf(io.qt.core.QPoint, int)
withfrom = -1
. -
lastIndexOf
-
length
-
mid
Overloaded function for
mid(int, int)
withlen = -1
. -
mid
-
move
-
writeTo
-
readFrom
-
prepend
-
remove
-
removeAll
-
removeAt
- Specified by:
removeAt
in classQtJambiAbstractListObject<QPoint>
-
removeFirst
-
removeLast
-
removeOne
-
replace
-
reserve
-
resize
-
setSharable
-
shrink_to_fit
-
size
-
squeeze
-
startsWith
-
subtracted
-
swap
-
swapItemsAt
-
takeAt
-
takeFirst
-
takeLast
-
toList
-
translate
-
translate
-
translated
-
translated
-
united
-
value
-
value
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
public int hashCode() -
append
-
toString
- Overrides:
toString
in classQtJambiCollectionObject<QPoint>
-
clone
-
add
-
add
-
set
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<QPoint>
-
get
-
contains
-