CESE 1.4.7

com.simulogic.dataview.plots
Class ChannelAttribute

java.lang.Object
  extended by com.simulogic.dataview.plots.ChannelAttribute

public class ChannelAttribute
extends java.lang.Object

This class contains attributes that affect visual appearance of the channel


Field Summary
static java.awt.Color[] fillColors
          Default fill colors table
static int HIDDEN_CHANNEL
          Attribute of the hidden channel
static int NORMAL_CHANNEL
          Attribute of the normal (default) channel
static java.awt.Color[] outlineColors
          Default outline colors table
 
Constructor Summary
ChannelAttribute()
          Creates new ChannelAttributes
ChannelAttribute(java.awt.Color color, int symbol, int visiblity)
          Creates new ChannelAttributes
 
Method Summary
 java.awt.Color getColor()
          Getter for property color
 java.awt.Color getFillColor()
          Getter for property fill color
 double getSpace()
          Getter for property space.
 java.awt.BasicStroke getStroke()
          Getter for property stroke.
 PlotSymbol getSymbol()
          Getter for property symbol.
 int getVisiblity()
          Getter for property visiblity.
 boolean isHidden()
          Returns true if this channel has hidden attribute turned on
 boolean isNormal()
          Returns true if this channel has normal (default) attribute turned on
 boolean isSelected()
          Returns true if this channel is selected
 void setColor(java.awt.Color color)
          Setter for property color
 void setFillColor(java.awt.Color color)
          Setter for property fill color
 void setIndexedColor(int i)
          Sets color from the fixed outline color pallete
 void setIndexedFillColor(int i)
          Sets color from the fixed fill color pallete
 void setIndexedSymbol(int i)
          Sets symbol from the fixed symbol pallete
 void setSelected(boolean selected)
          Setter for property selected.
 void setSpace(double space)
          Setter for property space.
 void setStroke(java.awt.BasicStroke stroke)
          Setter for property stroke.
 void setSymbol(PlotSymbol symbol)
          Setter for property symbol.
 void setVisiblity(int visiblity)
          Setter for property visiblity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NORMAL_CHANNEL

public static final int NORMAL_CHANNEL
Attribute of the normal (default) channel

See Also:
Constant Field Values

HIDDEN_CHANNEL

public static final int HIDDEN_CHANNEL
Attribute of the hidden channel

See Also:
Constant Field Values

outlineColors

public static final java.awt.Color[] outlineColors
Default outline colors table


fillColors

public static final java.awt.Color[] fillColors
Default fill colors table

Constructor Detail

ChannelAttribute

public ChannelAttribute()
Creates new ChannelAttributes


ChannelAttribute

public ChannelAttribute(java.awt.Color color,
                        int symbol,
                        int visiblity)
Creates new ChannelAttributes

Parameters:
color - color of the channel
symbol - symbol for the symbol plot
visiblity - visiblity of the channel
Method Detail

isNormal

public boolean isNormal()
Returns true if this channel has normal (default) attribute turned on

Returns:
true if channel is normal

isHidden

public boolean isHidden()
Returns true if this channel has hidden attribute turned on

Returns:
true if channel is hidden

setIndexedColor

public void setIndexedColor(int i)
Sets color from the fixed outline color pallete

Parameters:
i - index in the pallete

setIndexedFillColor

public void setIndexedFillColor(int i)
Sets color from the fixed fill color pallete

Parameters:
i - index in the pallete

setIndexedSymbol

public void setIndexedSymbol(int i)
Sets symbol from the fixed symbol pallete

Parameters:
i - index in the pallete

getColor

public java.awt.Color getColor()
Getter for property color

Returns:
Value of property color

setColor

public void setColor(java.awt.Color color)
Setter for property color

Parameters:
color - New value of property color

getFillColor

public java.awt.Color getFillColor()
Getter for property fill color

Returns:
Value of property fill color

setFillColor

public void setFillColor(java.awt.Color color)
Setter for property fill color

Parameters:
color - New value of property fill color

getSymbol

public PlotSymbol getSymbol()
Getter for property symbol.

Returns:
Value of property symbol.

setSymbol

public void setSymbol(PlotSymbol symbol)
Setter for property symbol.

Parameters:
symbol - New value of property symbol.

getSpace

public double getSpace()
Getter for property space.

Returns:
Value of property space.

setSpace

public void setSpace(double space)
Setter for property space.

Parameters:
space - New value of property space.

getVisiblity

public int getVisiblity()
Getter for property visiblity.

Returns:
Value of property visiblity.

setVisiblity

public void setVisiblity(int visiblity)
Setter for property visiblity.

Parameters:
visiblity - New value of property visiblity.

getStroke

public java.awt.BasicStroke getStroke()
Getter for property stroke.

Returns:
Value of property stroke.

setStroke

public void setStroke(java.awt.BasicStroke stroke)
Setter for property stroke.

Parameters:
stroke - New value of property stroke.

isSelected

public boolean isSelected()
Returns true if this channel is selected

Returns:
true if channel is selected

setSelected

public void setSelected(boolean selected)
Setter for property selected.

Parameters:
selected - Value of property selected.

CESE 1.4.7

Copyright (c) 1999 - 2007 Cell Electrophysiology Simulation Environment (CESE). All rights reserved.