|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Qt.FillRule>
com.trolltech.qt.core.Qt.FillRule
public static enum Qt.FillRule
Specifies which method should be used to fill the paths and polygons.
Enum Constant Summary | |
---|---|
OddEvenFill
Specifies that the region is filled using the odd even fill rule. |
|
WindingFill
Specifies that the region is filled using the non zero winding rule. |
Method Summary | |
---|---|
static Qt.FillRule |
resolve(int value)
|
int |
value()
|
static Qt.FillRule |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Qt.FillRule[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Qt.FillRule OddEvenFill
Specifies that the region is filled using the odd even fill rule. With this rule, we determine whether a point is inside the shape by using the following method. Draw a horizontal line from the point to a location outside the shape, and count the number of intersections. If the number of intersections is an odd number, the point is inside the shape. This mode is the default.
public static final Qt.FillRule WindingFill
Specifies that the region is filled using the non zero winding rule. With this rule, we determine whether a point is inside the shape by using the following method. Draw a horizontal line from the point to a location outside the shape. Determine whether the direction of the line at each intersection point is up or down. The winding number is determined by summing the direction of each intersection. If the number is non zero, the point is inside the shape. This fill mode can also in most cases be considered as the intersection of closed shapes.
Method Detail |
---|
public static final Qt.FillRule[] values()
for(Qt.FillRule c : Qt.FillRule.values()) System.out.println(c);
public static Qt.FillRule valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int value()
value
in interface QtEnumerator
public static Qt.FillRule resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |