List of usage examples for javax.swing SwingConstants SOUTH
int SOUTH
To view the source code for javax.swing SwingConstants SOUTH.
Click Source Link
From source file:org.executequery.base.DockedTabContainer.java
private TabComponent getTabComponent(String title) { String tabTitle = title.toUpperCase(); int[] positions = { SwingConstants.NORTH, SwingConstants.SOUTH, SwingConstants.CENTER }; for (int tabPosition : positions) { List<TabComponent> tabs = getOpenTabs(tabPosition); if (tabs != null) { for (TabComponent tab : tabs) { if (StringUtils.startsWithIgnoreCase(tab.getTitle(), tabTitle)) { return tab; }/*from w ww . jav a 2 s .c om*/ } } } return null; }
From source file:org.executequery.base.DockedTabContainer.java
/** * Indicates whether the tab pane in the specified * position is visible./*from ww w. j a v a 2 s . c o m*/ * * @return <code>true | false</code> */ public boolean isTabPaneVisible(int position) { switch (position) { case SwingConstants.NORTH: case SwingConstants.NORTH_WEST: case SwingConstants.NORTH_EAST: return (northTabPane != null); case SwingConstants.SOUTH: case SwingConstants.SOUTH_WEST: case SwingConstants.SOUTH_EAST: return (southTabPane != null); } return (northTabPane != null || southTabPane != null); }
From source file:unikn.dbis.univis.visualization.graph.VGraph.java
/** * @param source Source where the edge is starting. * @param target Target where the edge is ending. *///from w ww .j a v a 2 s .c o m public void createEdges(VGraphCell source, VGraphCell target) { DefaultEdge edge = new DefaultEdge(); if (layout.getOrientation() == SwingConstants.NORTH) { edge.setSource(source.getChildAt(1)); edge.setTarget(target.getChildAt(0)); } else if (layout.getOrientation() == SwingConstants.WEST) { edge.setSource(source.getChildAt(3)); edge.setTarget(target.getChildAt(2)); } else if (layout.getOrientation() == SwingConstants.SOUTH) { edge.setSource(source.getChildAt(0)); edge.setTarget(target.getChildAt(1)); } else if (layout.getOrientation() == SwingConstants.EAST) { edge.setSource(source.getChildAt(2)); edge.setTarget(target.getChildAt(3)); } GraphConstants.setLineEnd(edge.getAttributes(), GraphConstants.ARROW_CLASSIC); GraphConstants.setEndFill(edge.getAttributes(), true); cache.insert(edge); }
From source file:unikn.dbis.univis.visualization.graph.VGraph.java
public void rotateRight() { if ((SwingConstants.NORTH) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.EAST); } else if ((SwingConstants.EAST) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.SOUTH); } else if ((SwingConstants.SOUTH) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.WEST); } else if ((SwingConstants.WEST) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.NORTH); }//from ww w .j a v a2 s.c o m rotateGraph(); }
From source file:unikn.dbis.univis.visualization.graph.VGraph.java
public void rotateLeft() { if ((SwingConstants.NORTH) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.WEST); } else if ((SwingConstants.WEST) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.SOUTH); } else if ((SwingConstants.SOUTH) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.EAST); } else if ((SwingConstants.EAST) == getLayoutOrientation()) { setLayoutOrientation(SwingConstants.NORTH); }//from ww w . j a v a 2 s. co m rotateGraph(); }