Package org.jvnet.substance.api.SubstanceConstants

Examples of org.jvnet.substance.api.SubstanceConstants.ScrollPaneButtonPolicyKind


      BoundedRangeModel model = SubstanceScrollBarUI.this.scrollbar
          .getModel();
      Rectangle thumbR = SubstanceScrollBarUI.this.getThumbBounds();
      int thumbMin = 0, thumbMax = 0, thumbPos;

      ScrollPaneButtonPolicyKind buttonPolicy = SubstanceCoreUtilities
          .getScrollPaneButtonsPolicyKind(SubstanceScrollBarUI.this.scrollbar);

      if (SubstanceScrollBarUI.this.scrollbar.getOrientation() == JScrollBar.VERTICAL) {
        switch (buttonPolicy) {
        case OPPOSITE:
View Full Code Here


  @Override
  protected void paintTrack(Graphics g, JComponent c, Rectangle trackBounds) {
    Graphics2D graphics = (Graphics2D) g.create();

    // System.out.println("Track");
    ScrollPaneButtonPolicyKind buttonPolicy = SubstanceCoreUtilities
        .getScrollPaneButtonsPolicyKind(this.scrollbar);
    SubstanceScrollButton compTopState = null;
    SubstanceScrollButton compBottomState = null;
    if (this.decrButton.isShowing() && this.incrButton.isShowing()
        && this.mySecondDecreaseButton.isShowing()
View Full Code Here

   * javax.swing.plaf.basic.BasicScrollBarUI#layoutVScrollbar(javax.swing.
   * JScrollBar)
   */
  @Override
  protected void layoutVScrollbar(JScrollBar sb) {
    ScrollPaneButtonPolicyKind buttonPolicy = SubstanceCoreUtilities
        .getScrollPaneButtonsPolicyKind(this.scrollbar);
    this.mySecondDecreaseButton.setBounds(0, 0, 0, 0);
    this.mySecondIncreaseButton.setBounds(0, 0, 0, 0);
    switch (buttonPolicy) {
    case OPPOSITE:
View Full Code Here

   */
  @Override
  protected void layoutHScrollbar(JScrollBar sb) {
    this.mySecondDecreaseButton.setBounds(0, 0, 0, 0);
    this.mySecondIncreaseButton.setBounds(0, 0, 0, 0);
    ScrollPaneButtonPolicyKind buttonPolicy = SubstanceCoreUtilities
        .getScrollPaneButtonsPolicyKind(this.scrollbar);
    switch (buttonPolicy) {
    case OPPOSITE:
      super.layoutHScrollbar(sb);
      break;
View Full Code Here

TOP

Related Classes of org.jvnet.substance.api.SubstanceConstants.ScrollPaneButtonPolicyKind

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.