Java Code Examples for com.google.gwt.dom.client.Style.Cursor#NW_RESIZE
The following examples show how to use
com.google.gwt.dom.client.Style.Cursor#NW_RESIZE .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TimeGrid.java From unitime with Apache License 2.0 | 6 votes |
private Cursor cursor(double x, double y) { if (x <= 6) { if (y <= 6) return Cursor.NW_RESIZE; else if (y >= getHeight() - 6) return Cursor.SW_RESIZE; else return Cursor.W_RESIZE; } else if (x >= getWidth() - 6) { if (y <= 6) return Cursor.NE_RESIZE; else if (y >= getHeight() - 6) return Cursor.SE_RESIZE; else return Cursor.E_RESIZE; } else if (y <= 6) { return Cursor.N_RESIZE; } else if (y >= getHeight() - 6) { return Cursor.S_RESIZE; } else { return Cursor.MOVE; } }
Example 2
Source File: TimeGrid.java From unitime with Apache License 2.0 | 5 votes |
private Cursor transform(Cursor cursor) { if (iRTL) { switch (cursor) { case E_RESIZE: return Cursor.W_RESIZE; case W_RESIZE: return Cursor.E_RESIZE; case NE_RESIZE: return Cursor.NW_RESIZE; case NW_RESIZE: return Cursor.NE_RESIZE; case SE_RESIZE: return Cursor.SW_RESIZE; case SW_RESIZE: return Cursor.SE_RESIZE; } } return cursor; }