Package org.biojava.nbio.structure.gui
Class JmolViewerImpl
- java.lang.Object
-
- org.biojava.nbio.structure.gui.JmolViewerImpl
-
- All Implemented Interfaces:
StructureViewer
public class JmolViewerImpl extends Object implements StructureViewer
-
-
Constructor Summary
Constructors Constructor Description JmolViewerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clear the current displayColor
getColor()
Selection
getSelection()
void
repaint()
void
setColor(Color red)
Apply this color to the current Selectionvoid
setSelection(Selection selection)
void
setStructure(Structure structure)
void
setStyle(RenderStyle wireframe)
Apply this style to the current selectionvoid
setTitle(String label)
void
setZoom(int i)
Set the Zoom level
-
-
-
Field Detail
-
viewer
public static final String viewer
- See Also:
- Constant Field Values
-
adapter
public static final String adapter
- See Also:
- Constant Field Values
-
smartAdapter
public static final String smartAdapter
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JmolViewerImpl
public JmolViewerImpl()
-
-
Method Detail
-
setStructure
public void setStructure(Structure structure)
- Specified by:
setStructure
in interfaceStructureViewer
-
clear
public void clear()
Description copied from interface:StructureViewer
Clear the current display- Specified by:
clear
in interfaceStructureViewer
-
getColor
public Color getColor()
- Specified by:
getColor
in interfaceStructureViewer
-
getSelection
public Selection getSelection()
- Specified by:
getSelection
in interfaceStructureViewer
-
repaint
public void repaint()
- Specified by:
repaint
in interfaceStructureViewer
-
setColor
public void setColor(Color red)
Description copied from interface:StructureViewer
Apply this color to the current Selection- Specified by:
setColor
in interfaceStructureViewer
-
setSelection
public void setSelection(Selection selection)
- Specified by:
setSelection
in interfaceStructureViewer
-
setStyle
public void setStyle(RenderStyle wireframe)
Description copied from interface:StructureViewer
Apply this style to the current selection- Specified by:
setStyle
in interfaceStructureViewer
- Parameters:
wireframe
- renderstyle
-
setZoom
public void setZoom(int i)
Description copied from interface:StructureViewer
Set the Zoom level- Specified by:
setZoom
in interfaceStructureViewer
-
-