|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--jadex.swing.map.LocusShow | +--jadex.swing.map.LocusDisplay
An implementation of MapPointDisplay for displaying Loci.
Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
Field Summary | |
protected java.awt.Color |
highLightColor
|
protected java.awt.Color |
nColor
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
protected |
LocusDisplay()
This constructor can only be used by classes in the same package |
|
LocusDisplay(MapRange r)
Initialize the total range by the constructor. |
Method Summary | |
void |
doSearch(java.lang.String pattern)
Search loci with names containg pattern. |
void |
doZooming()
Actual zooming method. |
LocusControl |
getLocusControl()
Get the LocusControl used by this display. |
DisplayModel |
getModel()
Get the displaymodel. |
LocusLayout |
getNameLayout()
Get the Layout for Names. |
DisplayPopup |
getPopup()
Get the JPopupMenu used by this Display. |
float |
getVerticalPosition()
Get the position of the Chromosome line. |
boolean |
isConnectShown()
Get the flag of connecting lines. |
static void |
main(java.lang.String[] args)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
Do nothing. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Do nothing. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Do nothing. |
void |
mouseExited(java.awt.event.MouseEvent e)
Do nothing. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Do nothing. |
void |
mousePressed(java.awt.event.MouseEvent e)
Showing popup menu. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Showing popup menu. |
void |
paintComponent(java.awt.Graphics g)
All painting activities are here. |
void |
setConnectShown(boolean b)
The connecting line can be turn on or off by this method. |
protected void |
setLocusUI(LocusUI[] ui)
loci will be shown by this method. |
void |
setModel(DisplayModel m)
set locus model, which is the data class of locus display. |
void |
setMouseInName(java.lang.String name)
Set the name for lightening up label and line when mouse is in. |
void |
setNameLayout(LocusLayout l)
Set the Layout for the name labels for LocusUI. |
void |
setNameLayout(java.lang.String name)
Set up a NameLayout by their names. |
void |
setPopup(javax.swing.JPopupMenu pop)
Set up a JPopupMenu for controlling this locus display. |
void |
setRange(MapRange r)
Set up the displaying MapRange. |
protected void |
setTotalLocus(MapPoint[] t)
Set the total loci in a specific range. |
void |
setZoom(java.awt.geom.Rectangle2D.Float zoom)
Set a rectangel for zooming. |
Methods inherited from class jadex.swing.map.LocusShow |
addPoint, propertyChange, setMapCartoon |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, paramString, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jadex.swing.util.Zoomable |
addMouseListener, addMouseMotionListener, repaint, setCursor |
Field Detail |
protected java.awt.Color nColor
protected java.awt.Color highLightColor
Constructor Detail |
protected LocusDisplay()
public LocusDisplay(MapRange r)
r
- the total MapRange to be displayed.Method Detail |
public void setModel(DisplayModel m)
setModel
in class LocusShow
m
- the DataModel to for this display.public LocusControl getLocusControl()
getLocusControl
in class LocusShow
public void setPopup(javax.swing.JPopupMenu pop)
setPopup
in class LocusShow
public DisplayPopup getPopup()
public void setNameLayout(LocusLayout l)
l
- a LocusLayout will be used for layout names for the displayed LocusUIs.public void setNameLayout(java.lang.String name)
setNameLayout
in interface MapPointDisplay
name
- the name of the LayoutModel. Now only two names are supported,
columnLayout and smartLayout.public void setConnectShown(boolean b)
setConnectShown
in interface MapPointDisplay
b
- true for turning on, false for turning off the connecting lines.public boolean isConnectShown()
isConnectShown
in interface MapPointDisplay
public void setRange(MapRange r)
setRange
in interface MapPointDisplay
r
- the MapRange to be displayed.public DisplayModel getModel()
protected void setLocusUI(LocusUI[] ui)
ui
- the LocusUI data to be displayed.public LocusLayout getNameLayout()
getNameLayout
in interface MapPointDisplay
public void setMouseInName(java.lang.String name)
setMouseInName
in interface MapPointDisplay
name
- the name of the LocusUI where mouse is in.protected void setTotalLocus(MapPoint[] t)
t
- the total MapPoints in the specified Range.public float getVerticalPosition()
getVerticalPosition
in interface Zoomable
public void setZoom(java.awt.geom.Rectangle2D.Float zoom)
setZoom
in interface Zoomable
zoom
- the Rectangnle for zooming.public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
javax.swing.JComponent
JComponent.paint(java.awt.Graphics)
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void doSearch(java.lang.String pattern)
doSearch
in class LocusShow
pattern
- the searching key.public void mouseDragged(java.awt.event.MouseEvent e)
public void mouseMoved(java.awt.event.MouseEvent e)
public void doZooming()
doZooming
in interface Zoomable
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |