public class WireConnectionLine
extends com.trolltech.qt.gui.QGraphicsLineItem
com.trolltech.qt.gui.QGraphicsLineItem.enum_1
com.trolltech.qt.QSignalEmitter.AbstractSignal, com.trolltech.qt.QSignalEmitter.PrivateSignal0, com.trolltech.qt.QSignalEmitter.PrivateSignal1<A>, com.trolltech.qt.QSignalEmitter.PrivateSignal2<A,B>, com.trolltech.qt.QSignalEmitter.PrivateSignal3<A,B,C>, com.trolltech.qt.QSignalEmitter.PrivateSignal4<A,B,C,D>, com.trolltech.qt.QSignalEmitter.PrivateSignal5<A,B,C,D,E>, com.trolltech.qt.QSignalEmitter.PrivateSignal6<A,B,C,D,E,F>, com.trolltech.qt.QSignalEmitter.PrivateSignal7<A,B,C,D,E,F,G>, com.trolltech.qt.QSignalEmitter.PrivateSignal8<A,B,C,D,E,F,G,H>, com.trolltech.qt.QSignalEmitter.PrivateSignal9<A,B,C,D,E,F,G,H,I>, com.trolltech.qt.QSignalEmitter.Signal0, com.trolltech.qt.QSignalEmitter.Signal1<A>, com.trolltech.qt.QSignalEmitter.Signal2<A,B>, com.trolltech.qt.QSignalEmitter.Signal3<A,B,C>, com.trolltech.qt.QSignalEmitter.Signal4<A,B,C,D>, com.trolltech.qt.QSignalEmitter.Signal5<A,B,C,D,E>, com.trolltech.qt.QSignalEmitter.Signal6<A,B,C,D,E,F>, com.trolltech.qt.QSignalEmitter.Signal7<A,B,C,D,E,F,G>, com.trolltech.qt.QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, com.trolltech.qt.QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I>
Constructor and Description |
---|
WireConnectionLine(double x1,
double y1,
double x2,
double y2,
TileScene scene,
Tile tile,
int wire)
Creates a new wire connection line.
|
Modifier and Type | Method and Description |
---|---|
TileScene |
getScene() |
void |
hoverEnterEvent(com.trolltech.qt.gui.QGraphicsSceneHoverEvent event) |
void |
hoverLeaveEvent(com.trolltech.qt.gui.QGraphicsSceneHoverEvent event) |
void |
mousePressEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event) |
void |
setScene(TileScene scene) |
__qt_cast_to_QGraphicsItem, acceptDrops, acceptedMouseButtons, acceptHoverEvents, acceptsHoverEvents, addToIndex, advance, boundingRect, boundingRegion, boundingRegionGranularity, cacheMode, childItems, childrenBoundingRect, clearFocus, clipPath, collidesWithItem, collidesWithPath, collidingItems, commonAncestorItem, contains, contextMenuEvent, cursor, data, deviceTransform, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveOpacity, ensureVisible, ensureVisible, extension, flags, focusInEvent, focusOutEvent, fromNativePointer, grabKeyboard, grabMouse, group, handlesChildEvents, hasCursor, hasFocus, hide, hoverMoveEvent, inputMethodEvent, inputMethodQuery, installSceneEventFilter, isAncestorOf, isClipped, isEnabled, isObscured, isObscured, isObscured, isObscuredBy, isSelected, isUnderMouse, isVisible, isVisibleTo, isWidget, isWindow, itemChange, itemTransform, keyPressEvent, keyReleaseEvent, line, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromItem, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromParent, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapFromScene, mapRectFromItem, mapRectFromItem, mapRectFromParent, mapRectFromParent, mapRectFromScene, mapRectFromScene, mapRectToItem, mapRectToItem, mapRectToParent, mapRectToParent, mapRectToScene, mapRectToScene, mapToItem, mapToItem, mapToItem, mapToItem, mapToItem, mapToItem, mapToParent, mapToParent, mapToParent, mapToParent, mapToParent, mapToParent, mapToScene, mapToScene, mapToScene, mapToScene, mapToScene, mapToScene, mouseDoubleClickEvent, mouseMoveEvent, mouseReleaseEvent, moveBy, opacity, opaqueArea, paint, parentItem, parentWidget, pen, pos, prepareGeometryChange, removeFromIndex, removeSceneEventFilter, resetTransform, rotate, scale, scene, sceneBoundingRect, sceneEvent, sceneEventFilter, scenePos, sceneTransform, scroll, setAcceptDrops, setAcceptedMouseButtons, setAcceptHoverEvents, setAcceptsHoverEvents, setBoundingRegionGranularity, setCacheMode, setCursor, setData, setEnabled, setExtension, setFlag, setFlags, setFocus, setGroup, setHandlesChildEvents, setLine, setLine, setOpacity, setParentItem, setPen, setPos, setPos, setSelected, setToolTip, setTransform, setVisible, setZValue, shape, shear, show, supportsExtension, toolTip, topLevelItem, topLevelWidget, transform, translate, type, ungrabKeyboard, ungrabMouse, unsetCursor, update, update, wheelEvent, window, x, y, zValue
disableGarbageCollection, dispose, equals, nativeId, nativePointer, reassignNativeResources, reenableGarbageCollection, setJavaOwnership, tr, tr, tr
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread
public WireConnectionLine(double x1, double y1, double x2, double y2, TileScene scene, Tile tile, int wire)
x1
- Starting X coordinate.y1
- Starting Y coordinate.x2
- Ending X coordinate.y2
- Ending Y coordinate.scene
- The DeviceBrowser scene.tile
- The tile.wire
- The wire.public void hoverEnterEvent(com.trolltech.qt.gui.QGraphicsSceneHoverEvent event)
hoverEnterEvent
in interface com.trolltech.qt.gui.QGraphicsItemInterface
hoverEnterEvent
in class com.trolltech.qt.gui.QGraphicsLineItem
public void hoverLeaveEvent(com.trolltech.qt.gui.QGraphicsSceneHoverEvent event)
hoverLeaveEvent
in interface com.trolltech.qt.gui.QGraphicsItemInterface
hoverLeaveEvent
in class com.trolltech.qt.gui.QGraphicsLineItem
public void mousePressEvent(com.trolltech.qt.gui.QGraphicsSceneMouseEvent event)
mousePressEvent
in interface com.trolltech.qt.gui.QGraphicsItemInterface
mousePressEvent
in class com.trolltech.qt.gui.QGraphicsLineItem
public TileScene getScene()
public void setScene(TileScene scene)
scene
- the scene to set