public class ChannelControl extends Panel implements ItemListener, AdjustmentListener, ActionListener
Modifier and Type | Class and Description |
---|---|
protected class |
ChannelControl.ChannelColorCanvas
Canvas to select the display color of a channel.
|
protected class |
ChannelControl.ChannelColorChooser
Panel to select the display color or colormap of the current channel.
|
protected class |
ChannelControl.ChannelSelectorOverlay
Contains a radio button and a check button for each channel to select the
current channel and toggle display of this channel.
|
Panel.AccessibleAWTPanel
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
static String |
BUTTON_ACTIVATE_COLOR_CHOOSER |
static String |
BUTTON_DEACTIVATE_COLOR_CHOOSER |
static int |
DEFAULT_DISPLAY_MODE
Display mode to use by default.
|
static String |
DISPLAY_MODE_PREF
ImageJ preferences key to use for storing last used display mode.
|
static String[] |
displayModes |
static int |
ONE_CHANNEL_COLOR |
static int |
ONE_CHANNEL_GRAY |
static int |
OVERLAY |
static int |
TILED |
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
ChannelControl(Image5DWindow win) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
adjustmentValueChanged(AdjustmentEvent e)
Executed if scrollbar has been moved.
|
void |
channelChanged(int newChannel)
Called by ChannelSelectorOverlay if current channel has been changed.
|
int |
getCurrentChannel() |
int |
getDisplayMode() |
Dimension |
getMinimumSize() |
int |
getNChannels() |
Dimension |
getPreferredSize() |
boolean |
isDisplayGrayInTiles() |
void |
itemStateChanged(ItemEvent e) |
void |
setDisplayGrayInTiles(boolean displayGrayInTiles) |
void |
setDisplayMode(int mode)
Sets the displayMode as seen in the channelControl.
|
void |
setNChannels(int nChannels) |
void |
updateChannelSelector()
Updates nChannels, currentChannel and colors of channels from values in
Image5D.
|
void |
updateSelectorDisplay() |
addNotify, getAccessibleContext
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, isValidateRoot, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final int ONE_CHANNEL_GRAY
public static final int ONE_CHANNEL_COLOR
public static final int OVERLAY
public static final int TILED
public static final String[] displayModes
public static final int DEFAULT_DISPLAY_MODE
public static final String DISPLAY_MODE_PREF
public static final String BUTTON_ACTIVATE_COLOR_CHOOSER
public static final String BUTTON_DEACTIVATE_COLOR_CHOOSER
public ChannelControl(Image5DWindow win)
public int getNChannels()
public void setNChannels(int nChannels)
public int getCurrentChannel()
public Dimension getMinimumSize()
getMinimumSize
in class Container
public Dimension getPreferredSize()
getPreferredSize
in class Container
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void updateSelectorDisplay()
public void setDisplayMode(int mode)
public int getDisplayMode()
public void setDisplayGrayInTiles(boolean displayGrayInTiles)
public boolean isDisplayGrayInTiles()
public void adjustmentValueChanged(AdjustmentEvent e)
adjustmentValueChanged
in interface AdjustmentListener
public void channelChanged(int newChannel)
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void updateChannelSelector()
Copyright © 2015–2021 Fiji. All rights reserved.