Package org.eclipse.zest.core.widgets
Class ZestStyles
java.lang.Object
org.eclipse.zest.core.widgets.ZestStyles
Style constants used in Zest.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Style constant to indicate that connections should be drawn with dashed lines.static final int
Style constant to indicate that connections should be drawn with dash-dotted lines.static final int
Style indicating that connections should show their direction by default.static final int
Style constant to indicate that connections should be drawn with dotted lines.static final int
Style constant to indicate that connections should be drawn with solid lines (this is the default).static final int
Disallows the default multitouch gesturesstatic final int
Style constant indicating that invisible nodes should be ignored for layouts.static final int
Style constant indicating that node labels should be cached.static final int
Style to specify that the node should contain a fisheye label when the mouse moves over it.static final int
Style to specify that the node should not show its text (only its image).static final int
Style constant indiciating the graph should not be animated.static final int
Style constant indiciating the graph should not be animated during fisheye.static final int
Style constant indiciating the graph should not be animated during layout or refresh.static final int
Style constant indiciating that nodes should not be resized on layout.static final int
A constant known to be zero (0), used in operations which take bit flags to indicate that "no bits are set". -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkStyle
(int style, int styleToCheck) Bitwise ANDs the styleToCheck integer with the given style.static boolean
validateConnectionStyle
(int styleToValidate) Validates the given style for connections to see if it is legal.
-
Field Details
-
NONE
public static final int NONEA constant known to be zero (0), used in operations which take bit flags to indicate that "no bits are set".- See Also:
-
IGNORE_INVISIBLE_LAYOUT
public static final int IGNORE_INVISIBLE_LAYOUTStyle constant indicating that invisible nodes should be ignored for layouts.- See Also:
-
NODES_CACHE_LABEL
public static final int NODES_CACHE_LABELStyle constant indicating that node labels should be cached. This is important under GTK+ because font drawing is slower than Windows.- See Also:
-
NODES_FISHEYE
public static final int NODES_FISHEYEStyle to specify that the node should contain a fisheye label when the mouse moves over it. By default the fisheye node is just the label with larger text.- See Also:
-
NODES_HIDE_TEXT
public static final int NODES_HIDE_TEXTStyle to specify that the node should not show its text (only its image). This with the NODES_FISHEYE style should help with large graphs (since the fisheye style will show the text).- See Also:
-
NODES_NO_LAYOUT_RESIZE
public static final int NODES_NO_LAYOUT_RESIZEStyle constant indiciating that nodes should not be resized on layout.- See Also:
-
NODES_NO_LAYOUT_ANIMATION
public static final int NODES_NO_LAYOUT_ANIMATIONStyle constant indiciating the graph should not be animated during layout or refresh.- See Also:
-
NODES_NO_FISHEYE_ANIMATION
public static final int NODES_NO_FISHEYE_ANIMATIONStyle constant indiciating the graph should not be animated during fisheye.- See Also:
-
NODES_NO_ANIMATION
public static final int NODES_NO_ANIMATIONStyle constant indiciating the graph should not be animated.- See Also:
-
CONNECTIONS_DIRECTED
public static final int CONNECTIONS_DIRECTEDStyle indicating that connections should show their direction by default.- See Also:
-
CONNECTIONS_SOLID
public static final int CONNECTIONS_SOLIDStyle constant to indicate that connections should be drawn with solid lines (this is the default).- See Also:
-
CONNECTIONS_DASH
public static final int CONNECTIONS_DASHStyle constant to indicate that connections should be drawn with dashed lines.- See Also:
-
CONNECTIONS_DOT
public static final int CONNECTIONS_DOTStyle constant to indicate that connections should be drawn with dotted lines.- See Also:
-
CONNECTIONS_DASH_DOT
public static final int CONNECTIONS_DASH_DOTStyle constant to indicate that connections should be drawn with dash-dotted lines.- See Also:
-
GESTURES_DISABLED
public static final int GESTURES_DISABLEDDisallows the default multitouch gestures- Since:
- 1.14
- See Also:
-
-
Constructor Details
-
ZestStyles
public ZestStyles()
-
-
Method Details
-
checkStyle
public static boolean checkStyle(int style, int styleToCheck) Bitwise ANDs the styleToCheck integer with the given style.- Parameters:
style
-styleToCheck
-- Returns:
- boolean if styleToCheck is part of the style
-
validateConnectionStyle
public static boolean validateConnectionStyle(int styleToValidate) Validates the given style for connections to see if it is legal. Returns false if not.- Parameters:
styleToValidate
- the style to check.- Returns:
- true iff the given style is legal.
-