Qt Jambi Home

com.trolltech.qt.core
Enum Qt.PenStyle

java.lang.Object
  extended by java.lang.Enum<Qt.PenStyle>
      extended by com.trolltech.qt.core.Qt.PenStyle
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable<Qt.PenStyle>
Enclosing interface:
Qt

public static enum Qt.PenStyle
extends java.lang.Enum<Qt.PenStyle>
implements QtEnumerator

This enum type defines the pen styles that can be drawn using QPainter. The styles are:

Qt::SolidLineQt::DashLineQt::DotLine
Qt::DashDotLineQt::DashDotDotLineQt::CustomDashLine

See Also:
QPen

Enum Constant Summary
CustomDashLine
          A custom pattern defined using QPainterPathStroker::setDashPattern().
DashDotDotLine
          One dash, two dots, one dash, two dots.
DashDotLine
          Alternate dots and dashes.
DashLine
          Dashes separated by a few pixels.
DotLine
          Dots separated by a few pixels.
MPenStyle
          Internal.
NoPen
          no line at all.
SolidLine
          A plain line.
 
Method Summary
static Qt.PenStyle resolve(int value)
           
 int value()
          This function should return an integer value for the enum values of the enumeration that implements this interface.
static Qt.PenStyle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Qt.PenStyle[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

NoPen

public static final Qt.PenStyle NoPen

no line at all. For example, QPainter::drawRect() fills but does not draw any boundary line.


SolidLine

public static final Qt.PenStyle SolidLine

A plain line.


DashLine

public static final Qt.PenStyle DashLine

Dashes separated by a few pixels.


DotLine

public static final Qt.PenStyle DotLine

Dots separated by a few pixels.


DashDotLine

public static final Qt.PenStyle DashDotLine

Alternate dots and dashes.


DashDotDotLine

public static final Qt.PenStyle DashDotDotLine

One dash, two dots, one dash, two dots.


CustomDashLine

public static final Qt.PenStyle CustomDashLine

A custom pattern defined using QPainterPathStroker::setDashPattern().


MPenStyle

public static final Qt.PenStyle MPenStyle
Internal.

Method Detail

values

public static Qt.PenStyle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Qt.PenStyle c : Qt.PenStyle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Qt.PenStyle valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public int value()
Description copied from interface: QtEnumerator
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 Qt.PenStyle resolve(int value)

Qt Jambi Home