Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


oracle.ide.controls
Class ArrowIcon

java.lang.Object
  extended by oracle.ide.controls.ArrowIcon

All Implemented Interfaces:
javax.swing.Icon

public final class ArrowIcon
extends java.lang.Object
implements javax.swing.Icon

An icon that paints an arrow.

Since:
11.1.1

Constructor Summary
ArrowIcon(int scale, int dir)
          Constructs an ArrowIcon of the specified size and direction (which must be SwingConstants.NORTH, EAST, SOUTH, or WEST).

 

Method Summary
 int getIconHeight()
          Returns the height of the arrow in pixels.
 int getIconWidth()
          Returns the width of the arrow in pixels.
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
          Paints the icon.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ArrowIcon

public ArrowIcon(int scale,
                 int dir)
Constructs an ArrowIcon of the specified size and direction (which must be SwingConstants.NORTH, EAST, SOUTH, or WEST).
Parameters:
scale - the size of the arrow. Must be greater than zero.
dir - the direction, SwingConstants.NORTH, SwingConstants.EAST, SwingConstants.SOUTH, or SwingConstants.WEST.
Throws:
java.lang.IllegalArgumentException - if dir is not one of the compass directions, or scale is less than or equal to zero.

Method Detail

getIconHeight

public int getIconHeight()
Returns the height of the arrow in pixels.
Specified by:
getIconHeight in interface javax.swing.Icon
Returns:
the height of the arrow in pixels.

getIconWidth

public int getIconWidth()
Returns the width of the arrow in pixels.
Specified by:
getIconWidth in interface javax.swing.Icon
Returns:
the widge of the arrow in pixels.

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Paints the icon.
Specified by:
paintIcon in interface javax.swing.Icon
Parameters:
c - component in which to paint.
g - graphics context in which to paint.
x - x-coordinate to paint at.
y - y-coordinate to paint at.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.2)

E13403-10


Copyright © 1997, 2013, Oracle. All rights reserved.