- All Implemented Interfaces:
QtObjectInterface
,QGraphicsItem
public class QGraphicsLineItem extends QtObject implements QGraphicsItem
Line item that you can add to a QGraphicsScene
Java wrapper for Qt class QGraphicsLineItem
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.qt.widgets.QGraphicsItem
QGraphicsItem.BlockedByModalPanelInfo, QGraphicsItem.CacheMode, QGraphicsItem.Extension, QGraphicsItem.GraphicsItemChange, QGraphicsItem.GraphicsItemFlag, QGraphicsItem.GraphicsItemFlags, QGraphicsItem.Impl, QGraphicsItem.MemberAccess, QGraphicsItem.PanelModality
-
Constructor Summary
Constructors Modifier Constructor Description QGraphicsLineItem()
Overloaded constructor forQGraphicsLineItem(io.qt.widgets.QGraphicsItem)
withparent = null
.QGraphicsLineItem(double x1, double y1, double x2, double y2)
Overloaded constructor forQGraphicsLineItem(double, double, double, double, io.qt.widgets.QGraphicsItem)
withparent = null
.QGraphicsLineItem(double x1, double y1, double x2, double y2, QGraphicsItem parent)
QGraphicsLineItem(QLineF line)
Overloaded constructor forQGraphicsLineItem(io.qt.core.QLineF, io.qt.widgets.QGraphicsItem)
withparent = null
.QGraphicsLineItem(QLineF line, QGraphicsItem parent)
protected
QGraphicsLineItem(QtObject.QPrivateConstructor p)
Constructor for internal use only.QGraphicsLineItem(QGraphicsItem parent)
-
Method Summary
-
Constructor Details
-
QGraphicsLineItem
public QGraphicsLineItem()Overloaded constructor for
QGraphicsLineItem(io.qt.widgets.QGraphicsItem)
withparent = null
. -
QGraphicsLineItem
-
QGraphicsLineItem
Overloaded constructor for
QGraphicsLineItem(io.qt.core.QLineF, io.qt.widgets.QGraphicsItem)
withparent = null
. -
QGraphicsLineItem
-
QGraphicsLineItem
public QGraphicsLineItem(double x1, double y1, double x2, double y2)Overloaded constructor for
QGraphicsLineItem(double, double, double, double, io.qt.widgets.QGraphicsItem)
withparent = null
. -
QGraphicsLineItem
-
QGraphicsLineItem
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
acceptDrops
- Specified by:
acceptDrops
in interfaceQGraphicsItem
-
acceptHoverEvents
- Specified by:
acceptHoverEvents
in interfaceQGraphicsItem
-
acceptTouchEvents
- Specified by:
acceptTouchEvents
in interfaceQGraphicsItem
-
acceptedMouseButtons
- Specified by:
acceptedMouseButtons
in interfaceQGraphicsItem
-
addToIndex
-
boundingRegion
- Specified by:
boundingRegion
in interfaceQGraphicsItem
-
boundingRegionGranularity
- Specified by:
boundingRegionGranularity
in interfaceQGraphicsItem
-
cacheMode
- Specified by:
cacheMode
in interfaceQGraphicsItem
-
childItems
- Specified by:
childItems
in interfaceQGraphicsItem
-
childrenBoundingRect
- Specified by:
childrenBoundingRect
in interfaceQGraphicsItem
-
clearFocus
- Specified by:
clearFocus
in interfaceQGraphicsItem
-
clipPath
- Specified by:
clipPath
in interfaceQGraphicsItem
-
collidingItems
Overloaded function for
collidingItems(io.qt.core.Qt.ItemSelectionMode)
withmode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
.- Specified by:
collidingItems
in interfaceQGraphicsItem
-
collidingItems
- Specified by:
collidingItems
in interfaceQGraphicsItem
-
commonAncestorItem
- Specified by:
commonAncestorItem
in interfaceQGraphicsItem
-
cursor
- Specified by:
cursor
in interfaceQGraphicsItem
-
data
- Specified by:
data
in interfaceQGraphicsItem
-
deviceTransform
- Specified by:
deviceTransform
in interfaceQGraphicsItem
-
effectiveOpacity
- Specified by:
effectiveOpacity
in interfaceQGraphicsItem
-
ensureVisible
Overloaded function for
ensureVisible(io.qt.core.QRectF, int, int)
withymargin = 50
.- Specified by:
ensureVisible
in interfaceQGraphicsItem
-
ensureVisible
- Specified by:
ensureVisible
in interfaceQGraphicsItem
-
ensureVisible
Overloaded function for
ensureVisible(io.qt.core.QRectF, int, int)
with:
rect = new io.qt.core.QRectF()
xmargin = 50
ymargin = 50
- Specified by:
ensureVisible
in interfaceQGraphicsItem
-
ensureVisible
- Specified by:
ensureVisible
in interfaceQGraphicsItem
-
ensureVisible
@QtUninvokable public final void ensureVisible(double x, double y, double w, double h, int xmargin)Overloaded function for
ensureVisible(double, double, double, double, int, int)
withymargin = 50
.- Specified by:
ensureVisible
in interfaceQGraphicsItem
-
ensureVisible
Overloaded function for
ensureVisible(double, double, double, double, int, int)
with:
xmargin = 50
ymargin = 50
- Specified by:
ensureVisible
in interfaceQGraphicsItem
-
ensureVisible
@QtUninvokable public final void ensureVisible(double x, double y, double w, double h, int xmargin, int ymargin)- Specified by:
ensureVisible
in interfaceQGraphicsItem
-
filtersChildEvents
- Specified by:
filtersChildEvents
in interfaceQGraphicsItem
-
flags
- Specified by:
flags
in interfaceQGraphicsItem
-
focusItem
- Specified by:
focusItem
in interfaceQGraphicsItem
-
focusProxy
- Specified by:
focusProxy
in interfaceQGraphicsItem
-
focusScopeItem
- Specified by:
focusScopeItem
in interfaceQGraphicsItem
-
grabKeyboard
- Specified by:
grabKeyboard
in interfaceQGraphicsItem
-
grabMouse
- Specified by:
grabMouse
in interfaceQGraphicsItem
-
graphicsEffect
- Specified by:
graphicsEffect
in interfaceQGraphicsItem
-
group
- Specified by:
group
in interfaceQGraphicsItem
-
handlesChildEvents
- Specified by:
handlesChildEvents
in interfaceQGraphicsItem
-
hasCursor
- Specified by:
hasCursor
in interfaceQGraphicsItem
-
hasFocus
- Specified by:
hasFocus
in interfaceQGraphicsItem
-
hide
- Specified by:
hide
in interfaceQGraphicsItem
-
inputMethodHints
- Specified by:
inputMethodHints
in interfaceQGraphicsItem
-
installSceneEventFilter
- Specified by:
installSceneEventFilter
in interfaceQGraphicsItem
-
isActive
- Specified by:
isActive
in interfaceQGraphicsItem
-
isAncestorOf
- Specified by:
isAncestorOf
in interfaceQGraphicsItem
-
isBlockedByModalPanel
- Specified by:
isBlockedByModalPanel
in interfaceQGraphicsItem
-
isClipped
- Specified by:
isClipped
in interfaceQGraphicsItem
-
isEnabled
- Specified by:
isEnabled
in interfaceQGraphicsItem
-
isObscured
Overloaded function for
isObscured(io.qt.core.QRectF)
withrect = new io.qt.core.QRectF()
.- Specified by:
isObscured
in interfaceQGraphicsItem
-
isObscured
- Specified by:
isObscured
in interfaceQGraphicsItem
-
isObscured
- Specified by:
isObscured
in interfaceQGraphicsItem
-
isPanel
- Specified by:
isPanel
in interfaceQGraphicsItem
-
isSelected
- Specified by:
isSelected
in interfaceQGraphicsItem
-
isUnderMouse
- Specified by:
isUnderMouse
in interfaceQGraphicsItem
-
isVisible
- Specified by:
isVisible
in interfaceQGraphicsItem
-
isVisibleTo
- Specified by:
isVisibleTo
in interfaceQGraphicsItem
-
isWidget
- Specified by:
isWidget
in interfaceQGraphicsItem
-
isWindow
- Specified by:
isWindow
in interfaceQGraphicsItem
-
itemTransform
- Specified by:
itemTransform
in interfaceQGraphicsItem
-
line
-
mapFromItem
- Specified by:
mapFromItem
in interfaceQGraphicsItem
-
mapFromItem
- Specified by:
mapFromItem
in interfaceQGraphicsItem
-
mapFromItem
- Specified by:
mapFromItem
in interfaceQGraphicsItem
-
mapFromItem
- Specified by:
mapFromItem
in interfaceQGraphicsItem
-
mapFromItem
- Specified by:
mapFromItem
in interfaceQGraphicsItem
-
mapFromItem
@QtUninvokable public final QPolygonF mapFromItem(QGraphicsItem item, double x, double y, double w, double h)- Specified by:
mapFromItem
in interfaceQGraphicsItem
-
mapFromParent
- Specified by:
mapFromParent
in interfaceQGraphicsItem
-
mapFromParent
- Specified by:
mapFromParent
in interfaceQGraphicsItem
-
mapFromParent
- Specified by:
mapFromParent
in interfaceQGraphicsItem
-
mapFromParent
- Specified by:
mapFromParent
in interfaceQGraphicsItem
-
mapFromParent
- Specified by:
mapFromParent
in interfaceQGraphicsItem
-
mapFromParent
- Specified by:
mapFromParent
in interfaceQGraphicsItem
-
mapFromScene
- Specified by:
mapFromScene
in interfaceQGraphicsItem
-
mapFromScene
- Specified by:
mapFromScene
in interfaceQGraphicsItem
-
mapFromScene
- Specified by:
mapFromScene
in interfaceQGraphicsItem
-
mapFromScene
- Specified by:
mapFromScene
in interfaceQGraphicsItem
-
mapFromScene
- Specified by:
mapFromScene
in interfaceQGraphicsItem
-
mapFromScene
- Specified by:
mapFromScene
in interfaceQGraphicsItem
-
mapRectFromItem
- Specified by:
mapRectFromItem
in interfaceQGraphicsItem
-
mapRectFromItem
@QtUninvokable public final QRectF mapRectFromItem(QGraphicsItem item, double x, double y, double w, double h)- Specified by:
mapRectFromItem
in interfaceQGraphicsItem
-
mapRectFromParent
- Specified by:
mapRectFromParent
in interfaceQGraphicsItem
-
mapRectFromParent
- Specified by:
mapRectFromParent
in interfaceQGraphicsItem
-
mapRectFromScene
- Specified by:
mapRectFromScene
in interfaceQGraphicsItem
-
mapRectFromScene
- Specified by:
mapRectFromScene
in interfaceQGraphicsItem
-
mapRectToItem
- Specified by:
mapRectToItem
in interfaceQGraphicsItem
-
mapRectToItem
@QtUninvokable public final QRectF mapRectToItem(QGraphicsItem item, double x, double y, double w, double h)- Specified by:
mapRectToItem
in interfaceQGraphicsItem
-
mapRectToParent
- Specified by:
mapRectToParent
in interfaceQGraphicsItem
-
mapRectToParent
- Specified by:
mapRectToParent
in interfaceQGraphicsItem
-
mapRectToScene
- Specified by:
mapRectToScene
in interfaceQGraphicsItem
-
mapRectToScene
- Specified by:
mapRectToScene
in interfaceQGraphicsItem
-
mapToItem
- Specified by:
mapToItem
in interfaceQGraphicsItem
-
mapToItem
- Specified by:
mapToItem
in interfaceQGraphicsItem
-
mapToItem
- Specified by:
mapToItem
in interfaceQGraphicsItem
-
mapToItem
- Specified by:
mapToItem
in interfaceQGraphicsItem
-
mapToItem
- Specified by:
mapToItem
in interfaceQGraphicsItem
-
mapToItem
@QtUninvokable public final QPolygonF mapToItem(QGraphicsItem item, double x, double y, double w, double h)- Specified by:
mapToItem
in interfaceQGraphicsItem
-
mapToParent
- Specified by:
mapToParent
in interfaceQGraphicsItem
-
mapToParent
- Specified by:
mapToParent
in interfaceQGraphicsItem
-
mapToParent
- Specified by:
mapToParent
in interfaceQGraphicsItem
-
mapToParent
- Specified by:
mapToParent
in interfaceQGraphicsItem
-
mapToParent
- Specified by:
mapToParent
in interfaceQGraphicsItem
-
mapToParent
- Specified by:
mapToParent
in interfaceQGraphicsItem
-
mapToScene
- Specified by:
mapToScene
in interfaceQGraphicsItem
-
mapToScene
- Specified by:
mapToScene
in interfaceQGraphicsItem
-
mapToScene
- Specified by:
mapToScene
in interfaceQGraphicsItem
-
mapToScene
- Specified by:
mapToScene
in interfaceQGraphicsItem
-
mapToScene
- Specified by:
mapToScene
in interfaceQGraphicsItem
-
mapToScene
- Specified by:
mapToScene
in interfaceQGraphicsItem
-
moveBy
- Specified by:
moveBy
in interfaceQGraphicsItem
-
opacity
- Specified by:
opacity
in interfaceQGraphicsItem
-
panel
- Specified by:
panel
in interfaceQGraphicsItem
-
panelModality
- Specified by:
panelModality
in interfaceQGraphicsItem
-
parentItem
- Specified by:
parentItem
in interfaceQGraphicsItem
-
parentObject
- Specified by:
parentObject
in interfaceQGraphicsItem
-
parentWidget
- Specified by:
parentWidget
in interfaceQGraphicsItem
-
pen
-
pos
- Specified by:
pos
in interfaceQGraphicsItem
-
prepareGeometryChange
-
removeFromIndex
-
removeSceneEventFilter
- Specified by:
removeSceneEventFilter
in interfaceQGraphicsItem
-
resetTransform
- Specified by:
resetTransform
in interfaceQGraphicsItem
-
rotation
- Specified by:
rotation
in interfaceQGraphicsItem
-
scale
- Specified by:
scale
in interfaceQGraphicsItem
-
scene
- Specified by:
scene
in interfaceQGraphicsItem
-
sceneBoundingRect
- Specified by:
sceneBoundingRect
in interfaceQGraphicsItem
-
scenePos
- Specified by:
scenePos
in interfaceQGraphicsItem
-
sceneTransform
- Specified by:
sceneTransform
in interfaceQGraphicsItem
-
scroll
Overloaded function for
scroll(double, double, io.qt.core.QRectF)
withrect = new io.qt.core.QRectF()
.- Specified by:
scroll
in interfaceQGraphicsItem
-
scroll
- Specified by:
scroll
in interfaceQGraphicsItem
-
setAcceptDrops
- Specified by:
setAcceptDrops
in interfaceQGraphicsItem
-
setAcceptHoverEvents
- Specified by:
setAcceptHoverEvents
in interfaceQGraphicsItem
-
setAcceptTouchEvents
- Specified by:
setAcceptTouchEvents
in interfaceQGraphicsItem
-
setAcceptedMouseButtons
Overloaded function for
setAcceptedMouseButtons(io.qt.core.Qt.MouseButtons)
.- Specified by:
setAcceptedMouseButtons
in interfaceQGraphicsItem
-
setAcceptedMouseButtons
- Specified by:
setAcceptedMouseButtons
in interfaceQGraphicsItem
-
setActive
- Specified by:
setActive
in interfaceQGraphicsItem
-
setBoundingRegionGranularity
- Specified by:
setBoundingRegionGranularity
in interfaceQGraphicsItem
-
setCacheMode
Overloaded function for
setCacheMode(io.qt.widgets.QGraphicsItem.CacheMode, io.qt.core.QSize)
withcacheSize = new io.qt.core.QSize()
.- Specified by:
setCacheMode
in interfaceQGraphicsItem
-
setCacheMode
- Specified by:
setCacheMode
in interfaceQGraphicsItem
-
setCursor
- Specified by:
setCursor
in interfaceQGraphicsItem
-
setData
- Specified by:
setData
in interfaceQGraphicsItem
-
setEnabled
- Specified by:
setEnabled
in interfaceQGraphicsItem
-
setFiltersChildEvents
- Specified by:
setFiltersChildEvents
in interfaceQGraphicsItem
-
setFlag
Overloaded function for
setFlag(io.qt.widgets.QGraphicsItem.GraphicsItemFlag, boolean)
withenabled = true
.- Specified by:
setFlag
in interfaceQGraphicsItem
-
setFlag
- Specified by:
setFlag
in interfaceQGraphicsItem
-
setFlags
Overloaded function for
setFlags(io.qt.widgets.QGraphicsItem.GraphicsItemFlags)
.- Specified by:
setFlags
in interfaceQGraphicsItem
-
setFlags
- Specified by:
setFlags
in interfaceQGraphicsItem
-
setFocus
Overloaded function for
setFocus(io.qt.core.Qt.FocusReason)
withfocusReason = io.qt.core.Qt.FocusReason.OtherFocusReason
.- Specified by:
setFocus
in interfaceQGraphicsItem
-
setFocus
- Specified by:
setFocus
in interfaceQGraphicsItem
-
setFocusProxy
- Specified by:
setFocusProxy
in interfaceQGraphicsItem
-
setGraphicsEffect
- Specified by:
setGraphicsEffect
in interfaceQGraphicsItem
-
setGroup
- Specified by:
setGroup
in interfaceQGraphicsItem
-
setHandlesChildEvents
- Specified by:
setHandlesChildEvents
in interfaceQGraphicsItem
-
setInputMethodHints
Overloaded function for
setInputMethodHints(io.qt.core.Qt.InputMethodHints)
.- Specified by:
setInputMethodHints
in interfaceQGraphicsItem
-
setInputMethodHints
- Specified by:
setInputMethodHints
in interfaceQGraphicsItem
-
setLine
-
setLine
-
setOpacity
- Specified by:
setOpacity
in interfaceQGraphicsItem
-
setPanelModality
- Specified by:
setPanelModality
in interfaceQGraphicsItem
-
setParentItem
- Specified by:
setParentItem
in interfaceQGraphicsItem
-
setPen
-
setPos
- Specified by:
setPos
in interfaceQGraphicsItem
-
setPos
- Specified by:
setPos
in interfaceQGraphicsItem
-
setRotation
- Specified by:
setRotation
in interfaceQGraphicsItem
-
setScale
- Specified by:
setScale
in interfaceQGraphicsItem
-
setSelected
- Specified by:
setSelected
in interfaceQGraphicsItem
-
setToolTip
- Specified by:
setToolTip
in interfaceQGraphicsItem
-
setTransform
Overloaded function for
setTransform(io.qt.gui.QTransform, boolean)
withcombine = false
.- Specified by:
setTransform
in interfaceQGraphicsItem
-
setTransform
- Specified by:
setTransform
in interfaceQGraphicsItem
-
setTransformOriginPoint
- Specified by:
setTransformOriginPoint
in interfaceQGraphicsItem
-
setTransformOriginPoint
- Specified by:
setTransformOriginPoint
in interfaceQGraphicsItem
-
setTransformations
@QtUninvokable public final void setTransformations(Collection<QGraphicsTransform> transformations)- Specified by:
setTransformations
in interfaceQGraphicsItem
-
setVisible
- Specified by:
setVisible
in interfaceQGraphicsItem
-
setX
- Specified by:
setX
in interfaceQGraphicsItem
-
setY
- Specified by:
setY
in interfaceQGraphicsItem
-
setZValue
- Specified by:
setZValue
in interfaceQGraphicsItem
-
show
- Specified by:
show
in interfaceQGraphicsItem
-
stackBefore
- Specified by:
stackBefore
in interfaceQGraphicsItem
-
toGraphicsObject
- Specified by:
toGraphicsObject
in interfaceQGraphicsItem
-
toolTip
- Specified by:
toolTip
in interfaceQGraphicsItem
-
topLevelItem
- Specified by:
topLevelItem
in interfaceQGraphicsItem
-
topLevelWidget
- Specified by:
topLevelWidget
in interfaceQGraphicsItem
-
transform
- Specified by:
transform
in interfaceQGraphicsItem
-
transformOriginPoint
- Specified by:
transformOriginPoint
in interfaceQGraphicsItem
-
transformations
- Specified by:
transformations
in interfaceQGraphicsItem
-
ungrabKeyboard
- Specified by:
ungrabKeyboard
in interfaceQGraphicsItem
-
ungrabMouse
- Specified by:
ungrabMouse
in interfaceQGraphicsItem
-
unsetCursor
- Specified by:
unsetCursor
in interfaceQGraphicsItem
-
update
Overloaded function for
update(io.qt.core.QRectF)
withrect = new io.qt.core.QRectF()
.- Specified by:
update
in interfaceQGraphicsItem
-
update
- Specified by:
update
in interfaceQGraphicsItem
-
update
- Specified by:
update
in interfaceQGraphicsItem
-
updateMicroFocus
-
window
- Specified by:
window
in interfaceQGraphicsItem
-
x
- Specified by:
x
in interfaceQGraphicsItem
-
y
- Specified by:
y
in interfaceQGraphicsItem
-
zValue
- Specified by:
zValue
in interfaceQGraphicsItem
-
advance
- Specified by:
advance
in interfaceQGraphicsItem
-
boundingRect
- Specified by:
boundingRect
in interfaceQGraphicsItem
-
collidesWithItem
Overloaded function for
collidesWithItem(io.qt.widgets.QGraphicsItem, io.qt.core.Qt.ItemSelectionMode)
withmode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
.- Specified by:
collidesWithItem
in interfaceQGraphicsItem
-
collidesWithItem
- Specified by:
collidesWithItem
in interfaceQGraphicsItem
-
collidesWithPath
Overloaded function for
collidesWithPath(io.qt.gui.QPainterPath, io.qt.core.Qt.ItemSelectionMode)
withmode = io.qt.core.Qt.ItemSelectionMode.IntersectsItemShape
.- Specified by:
collidesWithPath
in interfaceQGraphicsItem
-
collidesWithPath
- Specified by:
collidesWithPath
in interfaceQGraphicsItem
-
contains
- Specified by:
contains
in interfaceQGraphicsItem
-
contextMenuEvent
-
dragEnterEvent
-
dragLeaveEvent
-
dragMoveEvent
-
dropEvent
-
extension
-
focusInEvent
-
focusOutEvent
-
hoverEnterEvent
-
hoverLeaveEvent
-
hoverMoveEvent
-
inputMethodEvent
-
inputMethodQuery
-
isObscuredBy
- Specified by:
isObscuredBy
in interfaceQGraphicsItem
-
itemChange
-
keyPressEvent
-
keyReleaseEvent
-
mouseDoubleClickEvent
-
mouseMoveEvent
-
mousePressEvent
-
mouseReleaseEvent
-
opaqueArea
- Specified by:
opaqueArea
in interfaceQGraphicsItem
-
paint
Overloaded function for
paint(io.qt.gui.QPainter, io.qt.widgets.QStyleOptionGraphicsItem, io.qt.widgets.QWidget)
withwidget = null
.- Specified by:
paint
in interfaceQGraphicsItem
-
paint
@QtUninvokable public void paint(QPainter painter, QStyleOptionGraphicsItem option, QWidget widget)See QGraphicsItem::paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget)
- Specified by:
paint
in interfaceQGraphicsItem
-
sceneEvent
-
sceneEventFilter
-
setExtension
-
shape
- Specified by:
shape
in interfaceQGraphicsItem
-
supportsExtension
-
wheelEvent
-