Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.gui
Class QGraphicsView.ViewportAnchor

    java.lang.Object
      java.lang.Enum
          com.trolltech.qt.gui.QGraphicsView.ViewportAnchor

All Implemented Interfaces:
  QtEnumerator, java.io.Serializable, java.lang.Comparable

Enclosing class:
  QGraphicsView

    public static final class QGraphicsView.ViewportAnchor

extends java.lang.Enum
implements QtEnumerator

This enums describe the possible anchors that `QGraphicsView` can use when the user resizes the view or when the view is transformed.

See also:
  `resizeAnchor`, and `transformationAnchor`.

See Also:
  Serialized Form

Field Summary
`static QGraphicsView.ViewportAnchor` | `AnchorUnderMouse` The point under the mouse is used as the anchor.
`static QGraphicsView.ViewportAnchor` | `AnchorViewCenter` The scene point at the center of the view is used as the anchor.
`static QGraphicsView.ViewportAnchor` | `NoAnchor` No anchor, i.e.

Method Summary
`static QGraphicsView.ViewportAnchor` | `resolve(int value)` Returns the ViewportAnchor constant with the specified `int`.
`int` | `value()` This function should return an integer value for the enum values of the enumeration that implements this interface.
`static QGraphicsView.ViewportAnchor` | `valueOf(java.lang.String name)`
`static QGraphicsView.ViewportAnchor[]` | `values()`

Methods inherited from class java.lang.Enum
`clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf`

Methods inherited from class java.lang.Object
`getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### NoAnchor

    public static final QGraphicsView.ViewportAnchor NoAnchor

  No anchor, i.e. the view leaves the scene's position unchanged.

### AnchorViewCenter

    public static final QGraphicsView.ViewportAnchor AnchorViewCenter

  The scene point at the center of the view is used as the anchor.

### AnchorUnderMouse

    public static final QGraphicsView.ViewportAnchor AnchorUnderMouse

  The point under the mouse is used as the anchor.

Method Detail

### values

    public static QGraphicsView.ViewportAnchor[] values()

### valueOf

    public static QGraphicsView.ViewportAnchor valueOf(java.lang.String name)

### value

    public int value()

  This function should return an integer value for the enum values of the enumeration that implements this interface.

  Specified by:
    `value` in interface `QtEnumerator`

### resolve

    public static QGraphicsView.ViewportAnchor resolve(int value)

  Returns the ViewportAnchor constant with the specified `int`.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD