/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
final AquaPainter<JRSUIState> painter = AquaPainter.create(JRSUIStateFactory.getSplitPaneDivider());
super(ui);
}
/**
* Property change event, presumably from the JSplitPane, will message
* updateOrientation if necessary.
*/
// need to regenerate the buttons, since we bake the orientation into them
if (rightButton != null) {
}
if (leftButton != null) {
}
}
}
super.propertyChange(e);
}
public int getMaxDividerSize() {
return 10;
}
/**
* Paints the divider.
*/
int x = 0;
int y = 0;
//System.err.println("Size = " + size + " orientation horiz = " + horizontal);
// size determines orientation
final int maxSize = getMaxDividerSize();
boolean doPaint = true;
if (horizontal) {
y = diff / 2;
}
} else {
x = diff / 2;
}
}
if (doPaint) {
}
super.paint(g); // Ends up at Container.paint, which paints our JButton children
}
}
return createButtonForDirection(getDirection(true));
}
return createButtonForDirection(getDirection(false));
}
static final LazyKeyedSingleton<Integer, Image> directionArrows = new LazyKeyedSingleton<Integer, Image>() {
return AquaUtils.generateLightenedImage(arrowImage.getScaledInstance(w, h, Image.SCALE_SMOOTH), 50);
}
};
// separate static, because the divider needs to be serializable
// see <rdar://problem/7590946> JSplitPane is not serializable when using Aqua look and feel
button.setFocusPainted(false);
button.setRequestFocusEnabled(false);
button.setFocusable(false);
return button;
}
}
}
final int maxSize = getMaxDividerSize();
if (!splitPane.isOneTouchExpandable()) {
return;
}
final int blockSize = Math.min(getDividerSize(), kMaxPopupArrowSize); // make it 1 less than divider, or kMaxPopupArrowSize
// put them at the right or the bottom
int yPosition = 0;
}
} else {
int xPosition = 0;
}
}
}
}
}
private static final RecyclableSingleton<HorizontalSplitDividerGradientPainter> instance = new RecyclableSingletonFromDefaultConstructor<HorizontalSplitDividerGradientPainter>(HorizontalSplitDividerGradientPainter.class);
}
}
public boolean isBorderOpaque() {
return true;
}
public void paintBorder(final Component c, final Graphics g, final int x, final int y, final int width, final int height) {
if (!(g instanceof Graphics2D)) return;
}
}
}