- All Implemented Interfaces:
QtObjectInterface
,QtSignalBlockerInterface
,QtSignalEmitterInterface
,QtThreadAffineInterface
,QGraphicsItem
,QGraphicsLayoutItem
public final class QLegend extends QGraphicsWidget
Displays the legend of a chart
Java wrapper for Qt class QtCharts::QLegend
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QLegend.MarkerShape
Java wrapper for Qt enum QtCharts::QLegend::MarkerShapeNested classes/interfaces inherited from class io.qt.core.QObject
QObject.MultiSignal, QObject.PrivateSignal0, QObject.PrivateSignal1<A>, QObject.PrivateSignal2<A,B>, QObject.PrivateSignal3<A,B,C>, QObject.PrivateSignal4<A,B,C,D>, QObject.PrivateSignal5<A,B,C,D,E>, QObject.PrivateSignal6<A,B,C,D,E,F>, QObject.PrivateSignal7<A,B,C,D,E,F,G>, QObject.PrivateSignal8<A,B,C,D,E,F,G,H>, QObject.PrivateSignal9<A,B,C,D,E,F,G,H,I>, QObject.QDeclarativeConstructor, QObject.Signal0, QObject.Signal1<A>, QObject.Signal1Default1<A>, QObject.Signal2<A,B>, QObject.Signal2Default1<A,B>, QObject.Signal2Default2<A,B>, QObject.Signal3<A,B,C>, QObject.Signal3Default1<A,B,C>, QObject.Signal3Default2<A,B,C>, QObject.Signal3Default3<A,B,C>, QObject.Signal4<A,B,C,D>, QObject.Signal4Default1<A,B,C,D>, QObject.Signal4Default2<A,B,C,D>, QObject.Signal4Default3<A,B,C,D>, QObject.Signal4Default4<A,B,C,D>, QObject.Signal5<A,B,C,D,E>, QObject.Signal5Default1<A,B,C,D,E>, QObject.Signal5Default2<A,B,C,D,E>, QObject.Signal5Default3<A,B,C,D,E>, QObject.Signal5Default4<A,B,C,D,E>, QObject.Signal5Default5<A,B,C,D,E>, QObject.Signal6<A,B,C,D,E,F>, QObject.Signal6Default1<A,B,C,D,E,F>, QObject.Signal6Default2<A,B,C,D,E,F>, QObject.Signal6Default3<A,B,C,D,E,F>, QObject.Signal6Default4<A,B,C,D,E,F>, QObject.Signal6Default5<A,B,C,D,E,F>, QObject.Signal6Default6<A,B,C,D,E,F>, QObject.Signal7<A,B,C,D,E,F,G>, QObject.Signal7Default1<A,B,C,D,E,F,G>, QObject.Signal7Default2<A,B,C,D,E,F,G>, QObject.Signal7Default3<A,B,C,D,E,F,G>, QObject.Signal7Default4<A,B,C,D,E,F,G>, QObject.Signal7Default5<A,B,C,D,E,F,G>, QObject.Signal7Default6<A,B,C,D,E,F,G>, QObject.Signal7Default7<A,B,C,D,E,F,G>, QObject.Signal8<A,B,C,D,E,F,G,H>, QObject.Signal8Default1<A,B,C,D,E,F,G,H>, QObject.Signal8Default2<A,B,C,D,E,F,G,H>, QObject.Signal8Default3<A,B,C,D,E,F,G,H>, QObject.Signal8Default4<A,B,C,D,E,F,G,H>, QObject.Signal8Default5<A,B,C,D,E,F,G,H>, QObject.Signal8Default6<A,B,C,D,E,F,G,H>, QObject.Signal8Default7<A,B,C,D,E,F,G,H>, QObject.Signal8Default8<A,B,C,D,E,F,G,H>, QObject.Signal9<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default1<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default2<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default3<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default4<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default5<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default6<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default7<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default8<A,B,C,D,E,F,G,H,I>, QObject.Signal9Default9<A,B,C,D,E,F,G,H,I>, QObject.SignalConfiguration
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
Nested classes/interfaces inherited from interface io.qt.widgets.QGraphicsLayoutItem
QGraphicsLayoutItem.Impl, QGraphicsLayoutItem.MemberAccess
-
Field Summary
Fields Modifier and Type Field Description QObject.Signal1<@QtPrimitiveType Boolean>
backgroundVisibleChanged
QObject.Signal1<QColor>
borderColorChanged
QObject.Signal1<QColor>
colorChanged
QObject.Signal1<QFont>
fontChanged
QObject.Signal1<QColor>
labelColorChanged
QObject.Signal1<QLegend.MarkerShape>
markerShapeChanged
QObject.Signal1<@QtPrimitiveType Boolean>
reverseMarkersChanged
QObject.Signal1<@QtPrimitiveType Boolean>
showToolTipsChanged
static QMetaObject
staticMetaObject
This variable stores the meta-object for the class.Fields inherited from class io.qt.widgets.QGraphicsObject
childrenChanged, enabledChanged, heightChanged, opacityChanged, parentChanged, rotationChanged, scaleChanged, visibleChanged, widthChanged, xChanged, yChanged, zChanged
-
Constructor Summary
Constructors Modifier Constructor Description protected
QLegend(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Methods inherited from class io.qt.widgets.QGraphicsWidget
actions, addAction, addActions, adjustSize, autoFillBackground, boundingRect, changeEvent, close, closeEvent, contentsMargins, contentsRect, effectiveSizeHint, effectiveSizeHint, event, focusInEvent, focusNextPrevChild, focusOutEvent, focusPolicy, focusWidget, font, geometry, getContentsMargins, getWindowFrameMargins, grabKeyboardEvent, grabMouseEvent, grabShortcut, grabShortcut, graphicsItem, hideEvent, hoverLeaveEvent, hoverMoveEvent, initStyleOption, insertAction, insertActions, isActiveWindow, isLayout, itemChange, layout, layoutDirection, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, moveEvent, ownedByLayout, paintWindowFrame, paintWindowFrame, palette, parentLayoutItem, polishEvent, preferredHeight, preferredSize, preferredWidth, propertyChange, rect, releaseShortcut, removeAction, resize, resize, resizeEvent, sceneEvent, setAttribute, setAttribute, setAutoFillBackground, setContentsMargins, setContentsMargins, setFocusPolicy, setFont, setGeometry, setGeometry, setGraphicsItem, setLayout, setLayoutDirection, setMaximumHeight, setMaximumSize, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumSize, setMinimumWidth, setOwnedByLayout, setPalette, setParentLayoutItem, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setShortcutAutoRepeat, setShortcutAutoRepeat, setShortcutEnabled, setShortcutEnabled, setSizePolicy, setSizePolicy, setSizePolicy, setStyle, setTabOrder, setWindowFlags, setWindowFlags, setWindowFrameMargins, setWindowFrameMargins, setWindowTitle, shape, showEvent, size, sizeHint, sizeHint, sizePolicy, style, testAttribute, type, ungrabKeyboardEvent, ungrabMouseEvent, unsetLayoutDirection, unsetWindowFrameMargins, updateGeometry, windowFlags, windowFrameEvent, windowFrameGeometry, windowFrameMargins, windowFrameRect, windowFrameSectionAt, windowTitle, windowType
Methods inherited from class io.qt.widgets.QGraphicsObject
acceptDrops, acceptedMouseButtons, acceptHoverEvents, acceptTouchEvents, addToIndex, advance, boundingRegion, boundingRegionGranularity, cacheMode, childItems, childrenBoundingRect, clearFocus, clipPath, collidesWithItem, collidesWithItem, collidesWithPath, collidesWithPath, collidingItems, collidingItems, commonAncestorItem, contains, contextMenuEvent, cursor, data, deviceTransform, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveOpacity, ensureVisible, ensureVisible, ensureVisible, ensureVisible, ensureVisible, ensureVisible, ensureVisible, extension, filtersChildEvents, flags, focusItem, focusProxy, focusScopeItem, grabGesture, grabGesture, grabGesture, grabKeyboard, grabMouse, graphicsEffect, group, handlesChildEvents, hasCursor, hasFocus, hide, hoverEnterEvent, inputMethodEvent, inputMethodHints, inputMethodQuery, installSceneEventFilter, isActive, isAncestorOf, isBlockedByModalPanel, isClipped, isEnabled, isObscured, isObscured, isObscured, isObscuredBy, isPanel, isSelected, isUnderMouse, isVisible, isVisibleTo, isWidget, isWindow, itemTransform, keyPressEvent, keyReleaseEvent, 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, mousePressEvent, mouseReleaseEvent, moveBy, opacity, opaqueArea, paint, panel, panelModality, parentItem, parentObject, parentWidget, pos, prepareGeometryChange, removeFromIndex, removeSceneEventFilter, resetTransform, rotation, scale, scene, sceneBoundingRect, sceneEventFilter, scenePos, sceneTransform, scroll, setAcceptDrops, setAcceptedMouseButtons, setAcceptedMouseButtons, setAcceptHoverEvents, setAcceptTouchEvents, setActive, setBoundingRegionGranularity, setCacheMode, setCacheMode, setCursor, setData, setEnabled, setExtension, setFiltersChildEvents, setFlag, setFlag, setFlags, setFlags, setFocus, setFocus, setFocusProxy, setGraphicsEffect, setGroup, setHandlesChildEvents, setInputMethodHints, setInputMethodHints, setOpacity, setPanelModality, setParentItem, setPos, setPos, setRotation, setScale, setSelected, setToolTip, setTransform, setTransform, setTransformations, setTransformOriginPoint, setTransformOriginPoint, setVisible, setX, setY, setZValue, show, stackBefore, supportsExtension, toGraphicsObject, toolTip, topLevelItem, topLevelWidget, toString, transform, transformations, transformOriginPoint, ungrabGesture, ungrabKeyboard, ungrabMouse, unsetCursor, update, update, update, updateMicroFocus, wheelEvent, window, x, y, zValue
Methods inherited from class io.qt.core.QObject
blockSignals, childEvent, children, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectNotify, customEvent, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnect, disconnectNotify, disposeLater, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, emit, emit, emit, emit, emit, emit, emit, emit, emit, eventFilter, findChild, findChild, findChild, findChild, findChild, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, findChildren, inherits, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, parent, property, qt_metacast, receivers, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, startTimer, thread, timerEvent, tr, tr, tr
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class. -
backgroundVisibleChanged
-
borderColorChanged
-
colorChanged
-
fontChanged
-
labelColorChanged
-
markerShapeChanged
-
reverseMarkersChanged
-
showToolTipsChanged
-
-
Constructor Details
-
QLegend
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
alignment
-
attachToChart
-
borderColor
-
brush
-
color
-
detachFromChart
-
legendFont
-
isAttachedToChart
-
isBackgroundVisible
-
labelBrush
-
labelColor
-
markerShape
-
markers
Overloaded function for
markers(io.qt.charts.QAbstractSeries)
withseries = null
. -
markers
-
pen
-
reverseMarkers
-
setAlignment
Overloaded function for
setAlignment(io.qt.core.Qt.Alignment)
. -
setAlignment
-
setBackgroundVisible
Overloaded function for
setBackgroundVisible(boolean)
withvisible = true
. -
setBackgroundVisible
-
setBorderColor
-
setBrush
-
setColor
-
setLegendFont
-
setLabelBrush
-
setLabelColor
-
setMarkerShape
-
setPen
-
setReverseMarkers
Overloaded function for
setReverseMarkers(boolean)
withreverseMarkers = true
. -
setReverseMarkers
-
setShowToolTips
-
showToolTips
-
paint
@QtUninvokable public void paint(QPainter painter, QStyleOptionGraphicsItem option, QWidget widget)- Specified by:
paint
in interfaceQGraphicsItem
- Overrides:
paint
in classQGraphicsWidget
-