com.imagero.swing.taskpane
Class ArrowIcon

java.lang.Object
  extended bycom.imagero.swing.taskpane.ArrowIcon
All Implemented Interfaces:
javax.swing.Icon, TaskPaneIcon

public class ArrowIcon
extends java.lang.Object
implements TaskPaneIcon

ArrowIcon for TaskPane.


Field Summary
static int DOWN
           
static int HORIZONTAL
           
static int UP
           
static int VERTICAL
           
 
Constructor Summary
ArrowIcon()
           
 
Method Summary
 void flip()
          same as setExpanded(!
 void flipAxis()
           
 int getAxis()
           
 java.awt.Color getBackground()
           
 java.awt.Color getCirleColor()
           
 int getDirection()
           
 java.awt.Color getForeground()
          get foreground color
 int getIconHeight()
           
 int getIconWidth()
           
 java.awt.Color getShadowColor()
           
 boolean isContentOpaque()
           
 boolean isExpanded()
          get expanded state of TaskPaneIcon
 boolean isOpaque()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void setAxis(int axis)
           
 void setBackground(java.awt.Color background)
           
 void setCirleColor(java.awt.Color cirleColor)
           
 void setContentOpaque(boolean contentOpaque)
           
 void setDirection(int direction)
           
 void setExpanded(boolean expanded)
          change expanded state of TaskPaneIcon (e.g if expanded - arrow shows up)
 void setForeground(java.awt.Color foreground)
          get foreground color
 void setOpaque(boolean opaque)
           
 void setShadowColor(java.awt.Color shadowColor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UP

public static final int UP
See Also:
Constant Field Values

DOWN

public static final int DOWN
See Also:
Constant Field Values

VERTICAL

public static final int VERTICAL
See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
See Also:
Constant Field Values
Constructor Detail

ArrowIcon

public ArrowIcon()
Method Detail

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

getBackground

public java.awt.Color getBackground()

setBackground

public void setBackground(java.awt.Color background)

getCirleColor

public java.awt.Color getCirleColor()

setCirleColor

public void setCirleColor(java.awt.Color cirleColor)

getShadowColor

public java.awt.Color getShadowColor()

setShadowColor

public void setShadowColor(java.awt.Color shadowColor)

getForeground

public java.awt.Color getForeground()
Description copied from interface: TaskPaneIcon
get foreground color

Specified by:
getForeground in interface TaskPaneIcon

setForeground

public void setForeground(java.awt.Color foreground)
Description copied from interface: TaskPaneIcon
get foreground color

Specified by:
setForeground in interface TaskPaneIcon

flip

public void flip()
Description copied from interface: TaskPaneIcon
same as setExpanded(!isExpanded());

Specified by:
flip in interface TaskPaneIcon

setExpanded

public void setExpanded(boolean expanded)
Description copied from interface: TaskPaneIcon
change expanded state of TaskPaneIcon (e.g if expanded - arrow shows up)

Specified by:
setExpanded in interface TaskPaneIcon

isExpanded

public boolean isExpanded()
Description copied from interface: TaskPaneIcon
get expanded state of TaskPaneIcon

Specified by:
isExpanded in interface TaskPaneIcon

flipAxis

public void flipAxis()

getAxis

public int getAxis()

setAxis

public void setAxis(int axis)

getDirection

public int getDirection()

setDirection

public void setDirection(int direction)

isOpaque

public boolean isOpaque()

setOpaque

public void setOpaque(boolean opaque)

isContentOpaque

public boolean isContentOpaque()
Specified by:
isContentOpaque in interface TaskPaneIcon

setContentOpaque

public void setContentOpaque(boolean contentOpaque)
Specified by:
setContentOpaque in interface TaskPaneIcon