Java Code Examples for

The following are Jave code examples for showing how to use STRIKE_THRU_TEXT_FLAG of the class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: nativehtml   File:   View Source Code Vote up 5 votes
static int getPaintFlags(CssStyleDeclaration style) {
  switch (style.getEnum(CssProperty.TEXT_DECORATION)) {
    case UNDERLINE:
      return Paint.UNDERLINE_TEXT_FLAG;
    case LINE_THROUGH:
      return Paint.STRIKE_THRU_TEXT_FLAG;
      return 0;