UNPKG

biojs-vis-pdbviewer

Version:

A BioJS 2.0 component to view protein structures

27 lines (26 loc) 868 B
Clazz.declarePackage ("JSV.common"); Clazz.load (["java.util.EventObject"], "JSV.common.PeakPickEvent", null, function () { c$ = Clazz.decorateAsClass (function () { this.coord = null; this.peakInfo = null; Clazz.instantialize (this, arguments); }, JSV.common, "PeakPickEvent", java.util.EventObject); Clazz.makeConstructor (c$, function (source, coord, peakInfo) { Clazz.superConstructor (this, JSV.common.PeakPickEvent, [source]); this.coord = coord; this.peakInfo = (peakInfo == null ? null : peakInfo); }, "~O,JSV.common.Coordinate,JSV.common.PeakInfo"); Clazz.defineMethod (c$, "getCoord", function () { return this.coord; }); Clazz.defineMethod (c$, "getPeakInfo", function () { return this.peakInfo; }); Clazz.overrideMethod (c$, "toString", function () { return (this.peakInfo == null ? null : this.peakInfo.toString ()); }); });