Class ZestStyles

java.lang.Object
org.eclipse.zest.core.widgets.ZestStyles

public final class ZestStyles extends Object
Style constants used in Zest.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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 gestures
    static 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • NONE

      public static final int NONE
      A 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_LAYOUT
      Style constant indicating that invisible nodes should be ignored for layouts.
      See Also:
    • NODES_CACHE_LABEL

      public static final int NODES_CACHE_LABEL
      Style 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_FISHEYE
      Style 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_TEXT
      Style 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_RESIZE
      Style constant indiciating that nodes should not be resized on layout.
      See Also:
    • NODES_NO_LAYOUT_ANIMATION

      public static final int NODES_NO_LAYOUT_ANIMATION
      Style 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_ANIMATION
      Style constant indiciating the graph should not be animated during fisheye.
      See Also:
    • NODES_NO_ANIMATION

      public static final int NODES_NO_ANIMATION
      Style constant indiciating the graph should not be animated.
      See Also:
    • CONNECTIONS_DIRECTED

      public static final int CONNECTIONS_DIRECTED
      Style indicating that connections should show their direction by default.
      See Also:
    • CONNECTIONS_SOLID

      public static final int CONNECTIONS_SOLID
      Style constant to indicate that connections should be drawn with solid lines (this is the default).
      See Also:
    • CONNECTIONS_DASH

      public static final int CONNECTIONS_DASH
      Style constant to indicate that connections should be drawn with dashed lines.
      See Also:
    • CONNECTIONS_DOT

      public static final int CONNECTIONS_DOT
      Style constant to indicate that connections should be drawn with dotted lines.
      See Also:
    • CONNECTIONS_DASH_DOT

      public static final int CONNECTIONS_DASH_DOT
      Style constant to indicate that connections should be drawn with dash-dotted lines.
      See Also:
    • GESTURES_DISABLED

      public static final int GESTURES_DISABLED
      Disallows 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.