|
@@ -330,29 +330,19 @@ public class LayeredNode implements LayeredGraphNode {
|
|
|
@Override
|
|
|
public boolean isSelected(LayoutType layout) {
|
|
|
if (layout == LayoutType.TOP_BOTTOM_LEFT) {
|
|
|
- boolean tmp = layouts[0].selected;
|
|
|
- layouts[0].selected = false;
|
|
|
- return tmp;
|
|
|
+ return layouts[0].selected;
|
|
|
}
|
|
|
if (layout == LayoutType.TOP_BOTTOM_RIGHT) {
|
|
|
- boolean tmp = layouts[1].selected;
|
|
|
- layouts[1].selected = false;
|
|
|
- return tmp;
|
|
|
+ return layouts[1].selected;
|
|
|
}
|
|
|
if (layout == LayoutType.BOTTOM_TOP_LEFT) {
|
|
|
- boolean tmp = layouts[2].selected;
|
|
|
- layouts[2].selected = false;
|
|
|
- return tmp;
|
|
|
+ return layouts[2].selected;
|
|
|
}
|
|
|
if (layout == LayoutType.BOTTOM_TOP_RIGHT) {
|
|
|
- boolean tmp = layouts[3].selected;
|
|
|
- layouts[3].selected = false;
|
|
|
- return tmp;
|
|
|
+ return layouts[3].selected;
|
|
|
}
|
|
|
if (layout == LayoutType.COMBINED) {
|
|
|
- boolean tmp = combined.selected;
|
|
|
- combined.selected = false;
|
|
|
- return tmp;
|
|
|
+ return combined.selected;
|
|
|
}
|
|
|
return false;
|
|
|
}
|