Package adams.gui.flow.tree
Class Renderer.DisabledIcon
- java.lang.Object
-
- adams.gui.flow.tree.Renderer.ActorIcon
-
- adams.gui.flow.tree.Renderer.DisabledIcon
-
- All Implemented Interfaces:
Icon
- Enclosing class:
- Renderer
public static class Renderer.DisabledIcon extends Renderer.ActorIcon
A wrapper for icons in the tree to make them look disabled (light gray background).- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
-
Fields inherited from class adams.gui.flow.tree.Renderer.ActorIcon
m_DebugOn, m_Deprecated, m_Execution, m_ForwardsInput, m_HasInput, m_HasOutput, m_HasSubActors, m_Icon, m_ScaleFactor
-
-
Constructor Summary
Constructors Constructor Description DisabledIcon(Renderer.ActorIcon icon)
Initializes the icon.DisabledIcon(ImageIcon icon, double scaleFactor, ActorExecution execution, boolean debugOn, boolean hasInput, boolean hasOutput, boolean hasSubActors, boolean forwardsInput, boolean deprecated)
Initializes the icon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
paintBackground(Graphics g, int x, int y, int w, int h)
Pains the background of the icon.-
Methods inherited from class adams.gui.flow.tree.Renderer.ActorIcon
getDebugOn, getExecution, getForwardsInput, getIcon, getIconHeight, getIconWidth, getScaleFactor, hasInput, hasOutput, hasSubActors, isDeprecated, paintIcon, setExecution, toString
-
-
-
-
Constructor Detail
-
DisabledIcon
public DisabledIcon(Renderer.ActorIcon icon)
Initializes the icon.- Parameters:
icon
- the actual icon
-
DisabledIcon
public DisabledIcon(ImageIcon icon, double scaleFactor, ActorExecution execution, boolean debugOn, boolean hasInput, boolean hasOutput, boolean hasSubActors, boolean forwardsInput, boolean deprecated)
Initializes the icon.- Parameters:
icon
- the actual iconscaleFactor
- the scale factor (1.0 = default size)execution
- how to paint the visual cuesdebugOn
- whether the actor has debugging enabledhasInput
- whether the actor accepts inputhasOutput
- whether the actor generates outputhasSubActors
- whether the actor manages actorsforwardsInput
- whether the actor forwards the input to its sub-actorsdeprecated
- whether the actor is deprecated
-
-
Method Detail
-
paintBackground
protected void paintBackground(Graphics g, int x, int y, int w, int h)
Pains the background of the icon.- Overrides:
paintBackground
in classRenderer.ActorIcon
- Parameters:
g
- the graphics contextx
- the x positiony
- the y positionw
- the width of the iconh
- the height of the icon
-
-