/** * 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; }
/** * 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; }