|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.controls.ArrowIcon
public final class ArrowIcon
An icon that paints an arrow.
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 |
---|
public ArrowIcon(int scale, int dir)
scale
- the size of the arrow. Must be greater than zero.dir
- the direction, SwingConstants.NORTH
, SwingConstants.EAST
, SwingConstants.SOUTH
, or SwingConstants.WEST
.java.lang.IllegalArgumentException
- if dir is not one of the compass directions, or scale is less than or equal to zero.Method Detail |
---|
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
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.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |