com.imagero.gui.flowin.tp
Class ArrowIcon

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

public class ArrowIcon
extends java.lang.Object
implements TaskPaneIcon


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()
          Returns the icon's height.
 int getIconWidth()
          Returns the icon's width.
 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)
          Draw the icon at the specified location.
 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

DOWN

public static final int DOWN
See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
See Also:
Constant Field Values

UP

public static final int UP
See Also:
Constant Field Values

VERTICAL

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

ArrowIcon

public ArrowIcon()
Method Detail

flip

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

Specified by:
flip in interface TaskPaneIcon

flipAxis

public void flipAxis()

getAxis

public int getAxis()

getBackground

public java.awt.Color getBackground()

getCirleColor

public java.awt.Color getCirleColor()

getDirection

public int getDirection()

getForeground

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

Specified by:
getForeground in interface TaskPaneIcon

getIconHeight

public int getIconHeight()
Description copied from interface: javax.swing.Icon
Returns the icon's height.

Specified by:
getIconHeight in interface javax.swing.Icon
Returns:
an int specifying the fixed height of the icon.

getIconWidth

public int getIconWidth()
Description copied from interface: javax.swing.Icon
Returns the icon's width.

Specified by:
getIconWidth in interface javax.swing.Icon
Returns:
an int specifying the fixed width of the icon.

getShadowColor

public java.awt.Color getShadowColor()

isContentOpaque

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

isExpanded

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

Specified by:
isExpanded in interface TaskPaneIcon

isOpaque

public boolean isOpaque()

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Description copied from interface: javax.swing.Icon
Draw the icon at the specified location. Icon implementations may use the Component argument to get properties useful for painting, e.g. the foreground or background color.

Specified by:
paintIcon in interface javax.swing.Icon

setAxis

public void setAxis(int axis)

setBackground

public void setBackground(java.awt.Color background)

setCirleColor

public void setCirleColor(java.awt.Color cirleColor)

setContentOpaque

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

setDirection

public void setDirection(int direction)

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

setForeground

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

Specified by:
setForeground in interface TaskPaneIcon

setOpaque

public void setOpaque(boolean opaque)

setShadowColor

public void setShadowColor(java.awt.Color shadowColor)