Tabnine Logo
BevelArrowIcon
Code IndexAdd Tabnine to your IDE (free)

How to use
BevelArrowIcon
in
org.jfree.ui

Best Java code snippets using org.jfree.ui.BevelArrowIcon (Showing top 12 results out of 315)

origin: org.jfree/com.springsource.org.jfree

/**
 * Paints the icon at the specified position.  Supports the Icon interface.
 *
 * @param c .
 * @param g .
 * @param x .
 * @param y .
 */
public void paintIcon(final Component c, 
           final Graphics g, 
           final int x, 
           final int y) {
  switch (this.direction) {
    case DOWN: drawDownArrow(g, x, y); break;
    case   UP: drawUpArrow(g, x, y);   break;
  }
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Standard constructor - builds an icon with the specified attributes.
 *
 * @param edge1  the color of edge1.
 * @param edge2  the color of edge2.
 * @param fill  the fill color.
 * @param size  the size of the arrow icon.
 * @param direction  the direction that the arrow points.
 */
public BevelArrowIcon(final Color edge1, 
           final Color edge2, 
           final Color fill, 
           final int size, 
           final int direction) {
  init(edge1, edge2, fill, size, direction);
}
origin: jfree/jcommon

this.ascendingLabel.setHorizontalAlignment(SwingConstants.LEADING);
this.ascendingLabel.setHorizontalTextPosition(SwingConstants.LEFT);
this.ascendingLabel.setIcon(new BevelArrowIcon(BevelArrowIcon.DOWN, false, false));
this.descendingLabel.setIcon(new BevelArrowIcon(BevelArrowIcon.UP, false, false));
this.ascendingButton.setHorizontalAlignment(SwingConstants.LEADING);
this.ascendingButton.setHorizontalTextPosition(SwingConstants.LEFT);
this.ascendingButton.setIcon(new BevelArrowIcon(BevelArrowIcon.DOWN, false, false));
this.ascendingButton.setPressedIcon(new BevelArrowIcon(BevelArrowIcon.DOWN, false, true));
this.descendingButton.setHorizontalAlignment(SwingConstants.LEADING);
this.descendingButton.setHorizontalTextPosition(SwingConstants.LEFT);
this.descendingButton.setIcon(new BevelArrowIcon(BevelArrowIcon.UP, false, false));
this.descendingButton.setPressedIcon(new BevelArrowIcon(BevelArrowIcon.UP, false, true));
origin: org.jfree/com.springsource.org.jfree

this.ascendingLabel.setHorizontalAlignment(SwingConstants.LEADING);
this.ascendingLabel.setHorizontalTextPosition(SwingConstants.LEFT);
this.ascendingLabel.setIcon(new BevelArrowIcon(BevelArrowIcon.DOWN, false, false));
this.descendingLabel.setIcon(new BevelArrowIcon(BevelArrowIcon.UP, false, false));
this.ascendingButton.setHorizontalAlignment(SwingConstants.LEADING);
this.ascendingButton.setHorizontalTextPosition(SwingConstants.LEFT);
this.ascendingButton.setIcon(new BevelArrowIcon(BevelArrowIcon.DOWN, false, false));
this.ascendingButton.setPressedIcon(new BevelArrowIcon(BevelArrowIcon.DOWN, false, true));
this.descendingButton.setHorizontalAlignment(SwingConstants.LEADING);
this.descendingButton.setHorizontalTextPosition(SwingConstants.LEFT);
this.descendingButton.setIcon(new BevelArrowIcon(BevelArrowIcon.UP, false, false));
this.descendingButton.setPressedIcon(new BevelArrowIcon(BevelArrowIcon.UP, false, true));
origin: jfree/jcommon

/**
 * Paints the icon at the specified position.  Supports the Icon interface.
 *
 * @param c .
 * @param g .
 * @param x .
 * @param y .
 */
public void paintIcon(final Component c, 
           final Graphics g, 
           final int x, 
           final int y) {
  switch (this.direction) {
    case DOWN: drawDownArrow(g, x, y); break;
    case   UP: drawUpArrow(g, x, y);   break;
  }
}
origin: org.jfree/jcommon

/**
 * Standard constructor - builds an icon with the specified attributes.
 *
 * @param edge1  the color of edge1.
 * @param edge2  the color of edge2.
 * @param fill  the fill color.
 * @param size  the size of the arrow icon.
 * @param direction  the direction that the arrow points.
 */
public BevelArrowIcon(final Color edge1, 
           final Color edge2, 
           final Color fill, 
           final int size, 
           final int direction) {
  init(edge1, edge2, fill, size, direction);
}
origin: org.jfree/jcommon

this.ascendingLabel.setHorizontalAlignment(SwingConstants.LEADING);
this.ascendingLabel.setHorizontalTextPosition(SwingConstants.LEFT);
this.ascendingLabel.setIcon(new BevelArrowIcon(BevelArrowIcon.DOWN, false, false));
this.descendingLabel.setIcon(new BevelArrowIcon(BevelArrowIcon.UP, false, false));
this.ascendingButton.setHorizontalAlignment(SwingConstants.LEADING);
this.ascendingButton.setHorizontalTextPosition(SwingConstants.LEFT);
this.ascendingButton.setIcon(new BevelArrowIcon(BevelArrowIcon.DOWN, false, false));
this.ascendingButton.setPressedIcon(new BevelArrowIcon(BevelArrowIcon.DOWN, false, true));
this.descendingButton.setHorizontalAlignment(SwingConstants.LEADING);
this.descendingButton.setHorizontalTextPosition(SwingConstants.LEFT);
this.descendingButton.setIcon(new BevelArrowIcon(BevelArrowIcon.UP, false, false));
this.descendingButton.setPressedIcon(new BevelArrowIcon(BevelArrowIcon.UP, false, true));
origin: org.jfree/jcommon

/**
 * Paints the icon at the specified position.  Supports the Icon interface.
 *
 * @param c .
 * @param g .
 * @param x .
 * @param y .
 */
public void paintIcon(final Component c, 
           final Graphics g, 
           final int x, 
           final int y) {
  switch (this.direction) {
    case DOWN: drawDownArrow(g, x, y); break;
    case   UP: drawUpArrow(g, x, y);   break;
  }
}
origin: jfree/jcommon

/**
 * Standard constructor - builds an icon with the specified attributes.
 *
 * @param edge1  the color of edge1.
 * @param edge2  the color of edge2.
 * @param fill  the fill color.
 * @param size  the size of the arrow icon.
 * @param direction  the direction that the arrow points.
 */
public BevelArrowIcon(final Color edge1, 
           final Color edge2, 
           final Color fill, 
           final int size, 
           final int direction) {
  init(edge1, edge2, fill, size, direction);
}
origin: jfree/jcommon

if (isRaisedView) {
  if (isPressedView) {
    init(UIManager.getColor("controlLtHighlight"),
       UIManager.getColor("controlDkShadow"),
       UIManager.getColor("controlShadow"),
    init(UIManager.getColor("controlHighlight"),
       UIManager.getColor("controlShadow"),
       UIManager.getColor("control"),
    init(UIManager.getColor("controlDkShadow"),
       UIManager.getColor("controlLtHighlight"),
       UIManager.getColor("controlShadow"),
    init(UIManager.getColor("controlShadow"),
       UIManager.getColor("controlHighlight"),
       UIManager.getColor("control"),
origin: org.jfree/jcommon

if (isRaisedView) {
  if (isPressedView) {
    init(UIManager.getColor("controlLtHighlight"),
       UIManager.getColor("controlDkShadow"),
       UIManager.getColor("controlShadow"),
    init(UIManager.getColor("controlHighlight"),
       UIManager.getColor("controlShadow"),
       UIManager.getColor("control"),
    init(UIManager.getColor("controlDkShadow"),
       UIManager.getColor("controlLtHighlight"),
       UIManager.getColor("controlShadow"),
    init(UIManager.getColor("controlShadow"),
       UIManager.getColor("controlHighlight"),
       UIManager.getColor("control"),
origin: org.jfree/com.springsource.org.jfree

if (isRaisedView) {
  if (isPressedView) {
    init(UIManager.getColor("controlLtHighlight"),
       UIManager.getColor("controlDkShadow"),
       UIManager.getColor("controlShadow"),
    init(UIManager.getColor("controlHighlight"),
       UIManager.getColor("controlShadow"),
       UIManager.getColor("control"),
    init(UIManager.getColor("controlDkShadow"),
       UIManager.getColor("controlLtHighlight"),
       UIManager.getColor("controlShadow"),
    init(UIManager.getColor("controlShadow"),
       UIManager.getColor("controlHighlight"),
       UIManager.getColor("control"),
org.jfree.uiBevelArrowIcon

Javadoc

An arrow icon that can point up or down (usually used to indicate the sort direction in a table).

This class (and also SortButtonRenderer) is based on original code by Nobuo Tamemasa (version 1.0, 26-Feb-1999) posted on www.codeguru.com.

Most used methods

  • <init>
    Standard constructor - builds an icon with the specified attributes.
  • drawDownArrow
    Draws the arrow pointing down.
  • drawUpArrow
    Draws the arrow pointing up.
  • init
    Initialises the attributes of the arrow icon.

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • compareTo (BigDecimal)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • BoxLayout (javax.swing)
  • JLabel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now