Class RasmolColors

    • Constructor Detail

      • RasmolColors

        public RasmolColors()
    • Method Detail

      • getAtomColor

        public Color getAtomColor​(IAtom atom)
        Returns the Rasmol color for the given atom's element.
        Specified by:
        getAtomColor in interface IAtomColorer
        Parameters:
        atom - IAtom to get a color for
        Returns:
        the atom's color according to this coloring scheme.
      • getAtomColor

        public Color getAtomColor​(IAtom atom,
                                  Color defaultColor)
        Returns the Rasmol color for the given atom's element, or defaults to the given color if no color is defined.
        Specified by:
        getAtomColor in interface IAtomColorer
        Parameters:
        atom - IAtom to get a color for
        defaultColor - Color returned if this scheme does not define a color for the passed IAtom
        Returns:
        the atom's color according to this coloring scheme.