protected JideSplitPaneDivider createSplitPaneDivider() { return new JideSplitPaneDivider(this); }
private void installListeners() { if (_jideSplitPane != null) { if (_mouseHandler == null) { _mouseHandler = createMouseHandler(); } _jideSplitPane.addMouseListener(_mouseHandler); _jideSplitPane.addMouseMotionListener(_mouseHandler); addMouseListener(_mouseHandler); addMouseMotionListener(_mouseHandler); _jideSplitPane.addPropertyChangeListener(this); } }
/** * Messages dragDividerTo with the new location for the mouse event. * * @param e the mouse event. */ protected void continueDrag(MouseEvent e) { dragDividerTo(positionForMouseEvent(e)); }
super.paintComponent(g); Border border = getBorder(); Dimension size = getSize(); if (isOpaque()) { g.setColor(getBackground()); g.fillRect(0, 0, size.width, size.height);
_leftButton = createLeftOneTouchButton(); if (_leftButton != null) { _leftButton.addActionListener(new OneTouchActionHandler(true)); add(_leftButton); _rightButton = createRightOneTouchButton(); if (_rightButton != null) { _rightButton.addActionListener(new OneTouchActionHandler(false)); add(_rightButton); remove(_leftButton); _leftButton = null; remove(_rightButton); _rightButton = null;
@Override public void paint(Graphics g) { if (_jideSplitPane != null) { g.setColor(JideSplitPaneDivider.this.getBackground()); if (isOpaque()) { g.fillRect(0, 0, this.getWidth(), this.getHeight()); g.setColor(getDarkShadowColor()); int size = _triangleSize; for (int i = 0; i < size; i++) { g.setColor(getDarkShadowColor()); int size = _triangleSize; for (int i = 0; i < size; i++) {
/** * Messages finishDraggingTo with the new location for the mouse event. * * @param e the mouse event. */ protected void completeDrag(MouseEvent e) { finishDraggingTo(positionForMouseEvent(e)); } } // End of BasicJideSplitPaneDivider.DragController
@Override public void paint(Graphics g) { if (_jideSplitPane != null) { g.setColor(JideSplitPaneDivider.this.getBackground()); if (isOpaque()) { g.fillRect(0, 0, this.getWidth(), this.getHeight()); g.setColor(getDarkShadowColor()); int size = _triangleSize; int j = 0; g.setColor(getDarkShadowColor()); int size = _triangleSize; int j = 0;
protected void completeDrag(int x, int y) { finishDraggingTo(getNeededLocation(x, y)); }
protected void continueDrag(int newX, int newY) { dragDividerTo(getNeededLocation(newX, newY)); }