예제 #1
0
 /**
  * Tests whether or not the node allows the user to change its horizontal size, according to the
  * {@link ResizeKind} specified in the VSM.
  *
  * @return <code>true</code> if the node allow the user to change its horizontal size.
  */
 public boolean allowsHorizontalResize() {
   ResizeKind allowed = node.getResizeKind();
   return allowed == ResizeKind.NSEW_LITERAL || allowed == ResizeKind.EAST_WEST_LITERAL;
 }
예제 #2
0
 /**
  * Tests whether or not the node allows the user to change its vertical size, according to the
  * {@link ResizeKind} specified in the VSM.
  *
  * @return <code>true</code> if the node allow the user to change its vertical size.
  */
 public boolean allowsVerticalResize() {
   ResizeKind allowed = node.getResizeKind();
   return allowed == ResizeKind.NSEW_LITERAL || allowed == ResizeKind.NORTH_SOUTH_LITERAL;
 }