From: hansonr Date: Sat, 25 Jul 2015 06:57:16 +0000 (+0100) Subject: JAL-1807 - Bob's last(?) before leaving Dundee -- adds fast file loading X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=36d803e4a1f98728e91e80de5fa0b95e0cadb0d4;p=jalviewjs.git JAL-1807 - Bob's last(?) before leaving Dundee -- adds fast file loading using j2s/core/corejalview.z.js created by buildSite.xml --- diff --git a/buildSite.xml b/buildSite.xml index e5c75c2..9d98c85 100644 --- a/buildSite.xml +++ b/buildSite.xml @@ -17,6 +17,13 @@ + ...adding package.js from ${project.path}/package + + + + + + ...adding to /j2s all src property and css files -- adjust as necessary @@ -41,7 +48,7 @@ ...replacing JavaObject with Clazz._O - ...removing all $fz references for sub/superclass common private function names + ...removing all $fz references for sub/superclass common private function names (not recommended, actually -- see note in Bob's log) ...changing Clazz.pu$h() to Clazz.pu$h(self.c$) (only a partial fix) @@ -71,394 +78,27 @@ --> - - - - - - - - ......Creating core${call-core.name}.js - - - - - + swingjs/JSPlainDocument.js + swingjs/JSAbstractDocument.js + swingjs/JSDocumentEvent.js + swingjs/JSPosition.js + swingjs/api/HTML5CanvasContext2D.js + javax/swing/DefaultListCellRenderer.js + javax/swing/ListCellRenderer.js + javax/swing/border/EmptyBorder.js + jssun/swing/DefaultLookup.js + javax/swing/plaf/DimensionUIResource.js + javax/swing/plaf/InsetsUIResource.js + swingjs/plaf/JSEventHandler.js + JU/AjaxURLStreamHandlerFactory.js + java/net/URLStreamHandlerFactory.js + JU/AjaxURLStreamHandler.js + java/net/URLStreamHandler.js + JU/AjaxURLConnection.js + java/net/URLConnection.js + java/net/UnknownServiceException.js + + jalview/bin/JalviewLite.js + javax/swing/JButton.js + jalview/util/MessageManager.js + java/util/logging/Logger.js + java/util/logging/LogRecord.js + java/util/logging/Level.js + java/text/MessageFormat.js + java/util/PropertyResourceBundle.js + jalview/javascript/JalviewLiteJsApi.js + jalview/api/StructureSelectionManagerProvider.js + awt2swing/Util.js + jalview/analysis/SequenceIdMatcher.js + jalview/appletgui/AlignFrame.js + awt2swing/Canvas.js + awt2swing/Panel.js + jalview/api/AlignViewControllerGuiI.js + jalview/appletgui/EmbmenuFrame.js + awt2swing/Frame.js + awt2swing/Label.js + awt2swing/PopupMenu.js + jalview/util/Platform.js + awt2swing/CheckboxMenuItem.js + awt2swing/Menu.js + awt2swing/MenuBar.js + awt2swing/MenuItem.js + jalview/analysis/AlignmentSorter.js + jalview/datamodel/SequenceI.js + jalview/datamodel/ASequenceI.js + jalview/util/Comparison.js + jalview/util/QuickSort.js + jalview/analysis/AnnotationSorter.js + jalview/analysis/AlignmentUtils.js + jalview/analysis/CodonComparator.js + jalview/datamodel/AlignedCodonFrame.js + jalview/datamodel/Mapping.js + jalview/datamodel/AlignedCodon.js + jalview/datamodel/IncompleteCodonException.js + jalview/datamodel/SequenceFeature.js + jalview/util/MapList.js + jalview/util/MappingUtils.js + jalview/commands/EditCommand.js + jalview/commands/CommandI.js + jalview/analysis/AlignSeq.js + jalview/schemes/ResidueProperties.js + jalview/analysis/scoremodels/FeatureScoreModel.js + jalview/api/analysis/ScoreModelI.js + jalview/api/analysis/ViewBasedAnalysisI.js + jalview/analysis/scoremodels/PIDScoreModel.js + jalview/schemes/ScoreMatrix.js + jalview/analysis/scoremodels/PairwiseSeqScoreModel.js + jalview/datamodel/Sequence.js + jalview/datamodel/ASequence.js + jalview/jsdev/RegExp.js + com/stevesoft/pat/Regex.js + com/stevesoft/pat/RegRes.js + com/stevesoft/pat/UniValidator.js + com/stevesoft/pat/Validator.js + com/stevesoft/pat/patInf.js + com/stevesoft/pat/patInt.js + jalview/jsdev/api/RegExpInterface.js + com/stevesoft/pat/NoPattern.js + com/stevesoft/pat/Pattern.js + com/stevesoft/pat/MessageManager.js + com/stevesoft/pat/Pthings.js + com/stevesoft/pat/Any.js + com/stevesoft/pat/BackG.js + com/stevesoft/pat/BackMatch.js + com/stevesoft/pat/Backup.js + com/stevesoft/pat/Boundary.js + com/stevesoft/pat/Bracket.js + com/stevesoft/pat/Or.js + com/stevesoft/pat/CaseMgr.js + com/stevesoft/pat/Ctrl.js + com/stevesoft/pat/Custom.js + com/stevesoft/pat/PatternSub.js + com/stevesoft/pat/CustomEndpoint.js + com/stevesoft/pat/DotMulti.js + com/stevesoft/pat/End.js + com/stevesoft/pat/FastMulti.js + com/stevesoft/pat/RegSyntaxError.js + com/stevesoft/pat/RegSyntax.js + com/stevesoft/pat/Group.js + com/stevesoft/pat/Multi.js + com/stevesoft/pat/Multi_stage2.js + com/stevesoft/pat/NullPattern.js + com/stevesoft/pat/OrMark.js + com/stevesoft/pat/SubMark.js + com/stevesoft/pat/Prop.js + com/stevesoft/pat/Bits.js + com/stevesoft/pat/Range.js + com/stevesoft/pat/oneChar.js + com/stevesoft/pat/RegOpt.js + com/stevesoft/pat/FastBracket.js + java/util/BitSet.js + com/stevesoft/pat/ReplaceRule.js + com/stevesoft/pat/Transformer.js + com/stevesoft/pat/Replacer.js + com/stevesoft/pat/AmpersandRule.js + com/stevesoft/pat/ChangeRule.js + com/stevesoft/pat/SpecialRule.js + com/stevesoft/pat/PopRule.js + com/stevesoft/pat/PushRule.js + com/stevesoft/pat/RuleHolder.js + com/stevesoft/pat/StringBufferLike.js + com/stevesoft/pat/BasicStringBufferLike.js + com/stevesoft/pat/WantMoreTextReplaceRule.js + com/stevesoft/pat/wrap/StringWrap.js + com/stevesoft/pat/StringLike.js + com/stevesoft/pat/wrap/StringBufferWrap.js + com/stevesoft/pat/TransPat.js + com/stevesoft/pat/Rthings.js + com/stevesoft/pat/Skip.js + com/stevesoft/pat/Skipped.js + com/stevesoft/pat/Start.js + com/stevesoft/pat/StrPos.js + com/stevesoft/pat/lookAhead.js + com/stevesoft/pat/parsePerl.js + com/stevesoft/pat/StringRule.js + jalview/datamodel/AlignmentAnnotation.js + jalview/analysis/Rna.js + jalview/analysis/SecStrConsensus.js + jalview/analysis/WUSSParseException.js + java/util/Stack.js + jalview/datamodel/Annotation.js + jalview/datamodel/GraphLine.js + jalview/datamodel/DBRefEntry.js + jalview/datamodel/DBRefSource.js + jalview/datamodel/PDBEntry.js + jalview/util/StringUtils.js + java/util/regex/Pattern.js + java/util/regex/Matcher.js + java/util/regex/MatchResult.js + jalview/util/Format.js + jalview/util/ReverseListIterator.js + jalview/commands/OrderCommand.js + jalview/datamodel/AlignmentOrder.js + jalview/datamodel/ColumnSelection.js + jalview/util/ShiftList.js + jalview/viewmodel/annotationfilter/AnnotationFilterParameter.js + jalview/datamodel/SearchResults.js + jalview/datamodel/SequenceGroup.js + jalview/datamodel/AnnotatedCollectionI.js + jalview/datamodel/SequenceCollectionI.js + jalview/analysis/AAFrequency.js + jalview/analysis/CodingUtils.js + jalview/analysis/Conservation.js + jalview/datamodel/Alignment.js + jalview/datamodel/AlignmentI.js + jalview/datamodel/HiddenSequences.js + java/util/LinkedHashSet.js + java/util/LinkedHashMap.js + jalview/datamodel/CigarArray.js + jalview/datamodel/CigarBase.js + jalview/datamodel/CigarCigar.js + jalview/datamodel/CigarSimple.js + jalview/datamodel/SeqCigar.js + jalview/analysis/SeqsetUtils.js + jalview/datamodel/FeatureProperties.js + jalview/util/DBRefUtils.js + java/util/TreeMap.js + jalview/appletgui/AlignViewport.js + jalview/structure/CommandListener.js + jalview/structure/SelectionSource.js + jalview/structure/VamsasSource.js + jalview/viewmodel/AlignmentViewport.js + jalview/api/AlignViewportI.js + jalview/api/ViewStyleI.js + jalview/viewmodel/styles/ViewStyle.js + jalview/workers/AlignCalcManager.js + jalview/api/AlignCalcManagerI.js + java/util/ArrayDeque.js + java/util/Deque.js + jalview/datamodel/AlignmentView.js + jalview/schemes/Blosum62ColourScheme.js + jalview/schemes/ResidueColourScheme.js + jalview/schemes/ColourSchemeI.js + jalview/schemes/PIDColourScheme.js + jalview/workers/ComplementConsensusThread.js + jalview/workers/ConsensusThread.js + jalview/api/AlignCalcWorkerI.js + jalview/workers/AlignCalcWorker.js + jalview/workers/ConservationThread.js + jalview/workers/StrucConsensusThread.js + jalview/analysis/StructureFrequency.js + jalview/schemes/ColourSchemeProperty.js + jalview/schemes/BuriedColourScheme.js + jalview/schemes/ScoreColourScheme.js + jalview/schemes/ClustalxColourScheme.js + jalview/schemes/Consensus.js + jalview/schemes/HelixColourScheme.js + jalview/schemes/HydrophobicColourScheme.js + jalview/schemes/NucleotideColourScheme.js + jalview/schemes/PurinePyrimidineColourScheme.js + jalview/schemes/RNAHelicesColour.js + jalview/util/ColorUtils.js + jalview/schemes/StrandColourScheme.js + jalview/schemes/TCoffeeColourScheme.js + jalview/schemes/TaylorColourScheme.js + jalview/schemes/TurnColourScheme.js + jalview/schemes/UserColourScheme.js + jalview/schemes/ZappoColourScheme.js + jalview/structure/StructureSelectionManager.js + MCview/PDBfile.js + jalview/io/AlignFile.js + jalview/io/FileParse.js + jalview/io/AppletFormatAdapter.js + jalview/io/IdentifyFile.js + jalview/jsdev/GenericFileAdapter.js + java/util/zip/GZIPInputStream.js + java/util/zip/InflaterInputStream.js + JU/InflaterInputStream.js + java/util/zip/CRC32.js + JU/CRC32.js + JU/Checksum.js + java/util/zip/CheckedInputStream.js + java/util/zip/Inflater.js + JU/Inflater.js + JU/ZStream.js + JU/Adler32.js + JU/Inflate.js + JU/GZIPHeader.js + JU/InfBlocks.js + JU/InfTree.js + JU/InfCodes.js + java/io/ByteArrayOutputStream.js + java/io/OutputStream.js + java/util/zip/ZipException.js + MCview/Atom.js + MCview/PDBChain.js + MCview/Bond.js + MCview/Residue.js + jalview/structure/AtomSpec.js + jalview/structure/SecondaryStructureListener.js + jalview/structure/SequenceListener.js + jalview/structure/StructureListener.js + jalview/structure/StructureMapping.js + jalview/structure/VamsasListener.js + jalview/appletgui/AlignmentPanel.js + jalview/api/AlignmentViewPanel.js + jalview/api/OOMHandlerI.js + awt2swing/Scrollbar.js + javax/swing/JScrollBar.js + java/awt/Adjustable.js + java/awt/event/AdjustmentEvent.js + jalview/appletgui/AnnotationLabels.js + awt2swing/Checkbox.js + jalview/appletgui/CutAndPasteTransfer.js + awt2swing/Button.js + awt2swing/TextArea.js + javax/swing/JTextArea.js + jalview/api/ComplexAlignFile.js + jalview/appletgui/AppletJmol.js + jalview/appletgui/JVDialog.js + jalview/appletgui/SplitFrame.js + java/awt/GridLayout.js + jalview/io/AnnotationFile.js + jalview/io/NewickFile.js + jalview/datamodel/SequenceNode.js + jalview/datamodel/BinaryNode.js + jalview/appletgui/EditNameDialog.js + awt2swing/TextField.js + java/awt/event/TextEvent.js + jalview/appletgui/PaintRefresher.js + jalview/appletgui/Tooltip.js + jalview/util/ParseHtmlBodyAndLinks.js + jalview/appletgui/AnnotationPanel.js + jalview/renderer/AwtRenderPanelI.js + jalview/appletgui/UserDefinedColours.js + jalview/appletgui/AnnotationColourChooser.js + awt2swing/Choice.js + javax/swing/JComboBox.js + javax/swing/event/ListDataListener.js + javax/swing/DefaultComboBoxModel.js + javax/swing/AbstractListModel.js + javax/swing/ListModel.js + javax/swing/event/ListDataEvent.js + javax/swing/MutableComboBoxModel.js + javax/swing/ComboBoxModel.js + jalview/schemes/AnnotationColourGradient.js + jalview/schemes/FollowerColourScheme.js + jalview/renderer/AnnotationRenderer.js + jalview/appletgui/FeatureColourChooser.js + jalview/schemes/GraduatedColor.js + jalview/appletgui/FeatureRenderer.js + jalview/renderer/seqfeatures/FeatureRenderer.js + jalview/viewmodel/seqfeatures/FeatureRendererModel.js + jalview/api/FeatureRenderer.js + java/util/concurrent/ConcurrentHashMap.js + jalview/viewmodel/seqfeatures/FeatureRendererSettings.js + jalview/viewmodel/seqfeatures/FeaturesDisplayed.js + jalview/api/FeaturesDisplayedI.js + java/awt/AlphaComposite.js + java/awt/Composite.js + jssun/java2d/SunCompositeContext.js + java/awt/CompositeContext.js + java/awt/image/BufferedImage.js + java/awt/Image.js + java/awt/image/DirectColorModel.js + java/awt/image/PackedColorModel.js + java/awt/image/Raster.js + java/awt/image/MultiPixelPackedSampleModel.js + java/awt/image/SampleModel.js + java/awt/image/DataBuffer.js + jssun/java2d/StateTrackable.js + jssun/java2d/StateTrackableDelegate.js + jssun/java2d/StateTracker.js + java/awt/image/DataBufferByte.js + java/awt/image/DataBufferInt.js + java/awt/image/RasterFormatException.js + java/awt/image/SinglePixelPackedSampleModel.js + jssun/awt/image/OffScreenImageSource.js + java/awt/image/WritableRaster.js + jssun/java2d/loops/CompositeType.js + awt2swing/ScrollPane.js + javax/swing/JScrollPane.js + javax/swing/ScrollPaneConstants.js + javax/swing/ScrollPaneLayout.js + jalview/io/FeaturesFile.js + jalview/datamodel/SequenceDummy.js + java/awt/event/MouseAdapter.js + jalview/appletgui/FeatureSettings.js + jalview/api/FeatureSettingsControllerI.js + jalview/appletgui/IdPanel.js + jalview/appletgui/APopupMenu.js + jalview/analysis/AlignmentAnnotationUtils.js + jalview/appletgui/SliderPanel.js + jalview/commands/ChangeCaseCommand.js + jalview/io/SequenceAnnotationReport.js + jalview/util/UrlLink.js + jalview/appletgui/IdCanvas.js + jalview/appletgui/IdwidthAdjuster.js + jalview/appletgui/ScalePanel.js + jalview/appletgui/SeqPanel.js + jalview/structure/SelectionListener.js + jalview/appletgui/SeqCanvas.js + jalview/appletgui/SequenceRenderer.js + jalview/api/SequenceRenderer.js + jalview/appletgui/AnnotationColumnChooser.js + jalview/appletgui/AnnotationRowFilter.js + jalview/appletgui/TitledPanel.js + java/awt/CardLayout.js + java/io/ObjectStreamField.js + jalview/appletgui/Finder.js + jalview/analysis/Finder.js + java/awt/event/KeyAdapter.js + jalview/appletgui/FontChooser.js + jalview/appletgui/OverviewPanel.js + jalview/appletgui/PCAPanel.js + jalview/appletgui/RotatableCanvas.js + jalview/api/RotatableCanvasI.js + jalview/math/RotatableMatrix.js + jalview/viewmodel/PCAModel.js + jalview/analysis/PCA.js + jalview/datamodel/BinarySequence.js + jalview/math/Matrix.js + jalview/datamodel/SequencePoint.js + jalview/appletgui/PairwiseAlignPanel.js + jalview/appletgui/RedundancyPanel.js + jalview/appletgui/TreePanel.js + jalview/analysis/NJTree.js + jalview/datamodel/NodeTransformI.js + jalview/appletgui/TreeCanvas.js + jalview/commands/RemoveGapColCommand.js + jalview/commands/RemoveGapsCommand.js + jalview/commands/SlideSequencesCommand.js + jalview/commands/TrimRegionCommand.js + jalview/controller/AlignViewController.js + jalview/api/AlignViewControllerI.js + jalview/analysis/Grouping.js + jalview/io/AlignmentProperties.js + jalview/schemes/RNAHelicesColourChooser.js + jalview/schemes/RNAInteractionColourScheme.js + java/net/URLEncoder.js + jalview/io/JnetAnnotationMaker.js + jalview/javascript/JSFunctionExec.js + netscape/javascript/JSException.js + netscape/javascript/JSObject.js + jalview/javascript/JsSelectionSender.js + jalview/javascript/JsCallBack.js + jalview/javascript/MouseOverListener.js + jalview/javascript/MouseOverStructureListener.js + jalview/ext/jmol/JmolCommands.js + jalview/structure/StructureMappingcommandSet.js + java/util/Properties.js + jssun/util/ResourceBundleEnumeration.js + jalview/io/FastaFile.js + swingjs/plaf/JSMenuBarUI.js + swingjs/plaf/JSMenuUI.js + swingjs/plaf/JSMenuItemUI.js + swingjs/plaf/JSCheckBoxMenuItemUI.js + swingjs/plaf/JSCheckBoxUI.js + swingjs/plaf/JSLabelUI.js + swingjs/plaf/JSPopupMenuUI.js + swingjs/plaf/JSPopupMenuSeparatorUI.js + swingjs/plaf/JSScrollBarUI.js + swingjs/JSImagekit.js + swingjs/JSImage.js + jssun/awt/image/IntegerInterleavedRaster.js + jssun/awt/image/IntegerComponentRaster.js + jssun/awt/image/SunWritableRaster.js + jssun/awt/image/DataStealer.js + "/> + - - - - - - - - ......Generating core${call-core.name}.z.js - - - - + - - ......Creating JSmol.${call-min.minname}.js - - - - - - - + + + + ......Creating core${call-core.name}.js + + + + + + + + + + + + ......Generating core${call-core.name}.z.js + + + + + + diff --git a/site/j2s/awt2swing/Scrollbar.js b/site/j2s/awt2swing/Scrollbar.js index 58f1258..6e376e3 100644 --- a/site/j2s/awt2swing/Scrollbar.js +++ b/site/j2s/awt2swing/Scrollbar.js @@ -5,4 +5,8 @@ Clazz.defineMethod (c$, "addChangeListener", function (l) { this.addAdjustmentListener (l); }, "javax.swing.event.ChangeListener"); +Clazz.defineMethod (c$, "removeChangeListener", +function (l) { +this.removeAdjustmentListener (l); +}, "javax.swing.event.ChangeListener"); }); diff --git a/site/j2s/core/coreswingjs.js b/site/j2s/core/coreswingjs.js index 3699911..fecb71b 100644 --- a/site/j2s/core/coreswingjs.js +++ b/site/j2s/core/coreswingjs.js @@ -24627,6 +24627,7 @@ c$ = Clazz_p0p (); Clazz_declarePackage ("java.awt"); Clazz_load (null, "java.awt.Font", ["java.awt.font.TextAttribute", "java.awt.geom.AffineTransform", "swingjs.JSToolkit"], function () { c$ = Clazz_decorateAsClass (function () { +this.fm = null; this.family = null; this.name = null; this.style = 0; @@ -24637,6 +24638,14 @@ this.nonIdentityTx = false; this.hash = 0; Clazz_instantialize (this, arguments); }, java.awt, "Font"); +Clazz_defineMethod (c$, "getFontMetrics", +function () { +return this.fm; +}); +Clazz_defineMethod (c$, "setFontMetrics", +function (fm) { +this.fm = fm; +}, "java.awt.FontMetrics"); Clazz_makeConstructor (c$, function (name, style, size) { this.name = (name != null) ? name : "Default"; @@ -24645,13 +24654,6 @@ this.size = size; this.pointSize = size; }, "~S,~N,~N"); Clazz_makeConstructor (c$, - function (name, style, sizePts) { -this.name = (name != null) ? name : "Default"; -this.style = (style & -4) == 0 ? style : 0; -this.size = Clazz_doubleToInt (sizePts + 0.5); -this.pointSize = sizePts; -}, "~S,~N,~N"); -Clazz_makeConstructor (c$, function (font) { this.name = font.name; this.style = font.style; @@ -24819,12 +24821,16 @@ var attributes = Clazz_newArray (-1, [java.awt.font.TextAttribute.FAMILY, java. return attributes; }); Clazz_defineMethod (c$, "deriveFont", -function (style, size) { -return new java.awt.Font (this.name, style, size); +function (style, sizePts) { +var f = new java.awt.Font (this.name, style, Clazz_doubleToInt (sizePts + 0.5)); +f.pointSize = sizePts; +return f; }, "~N,~N"); Clazz_defineMethod (c$, "deriveFont", -function (size) { -return new java.awt.Font (this.name, this.style, size); +function (sizePts) { +var f = new java.awt.Font (this.name, this.style, Clazz_doubleToInt (sizePts + 0.5)); +f.pointSize = sizePts; +return f; }, "~N"); Clazz_defineMethod (c$, "deriveFont", function (style) { @@ -28656,7 +28662,7 @@ return true; }return clipRect.intersects (x, y, width, height); }, "~N,~N,~N,~N"); Clazz_declarePackage ("jssun.font"); -Clazz_load (["java.awt.FontMetrics", "java.util.Hashtable"], "jssun.font.FontDesignMetrics", ["java.lang.IndexOutOfBoundsException", "java.awt.Toolkit", "swingjs.JSToolkit"], function () { +Clazz_load (["java.awt.FontMetrics", "java.util.Hashtable"], "jssun.font.FontDesignMetrics", ["java.lang.Character", "$.IndexOutOfBoundsException", "java.awt.Toolkit", "swingjs.JSToolkit"], function () { c$ = Clazz_decorateAsClass (function () { this.ascent = 0; this.descent = 0; @@ -28747,6 +28753,17 @@ if (this.height < 0) { this.height = this.getAscent () + Clazz_floatToInt (jssun.font.FontDesignMetrics.roundingUpValue + this.descent + this.leading); }return this.height; }); +Clazz_defineMethod (c$, "charWidth", +function (codePoint) { +if (!Character.isValidCodePoint (codePoint)) { +codePoint = 0xffff; +}if (codePoint < 256) { +return this.getWidths ()[codePoint]; +} else { +var buffer = Clazz_newCharArray (2, '\0'); +var len = Character.toChars (codePoint, buffer, 0); +return this.charsWidth (buffer, 0, len); +}}, "~N"); Clazz_pu$h(self.c$); c$ = Clazz_decorateAsClass (function () { this.key = null; @@ -28778,7 +28795,7 @@ Clazz_defineStatics (c$, "recentIndex", 0); }); Clazz_declarePackage ("java.awt"); -Clazz_load (["java.awt.font.FontRenderContext"], "java.awt.FontMetrics", ["java.lang.Character"], function () { +Clazz_load (["java.awt.font.FontRenderContext"], "java.awt.FontMetrics", null, function () { c$ = Clazz_decorateAsClass (function () { this.font = null; Clazz_instantialize (this, arguments); @@ -28795,18 +28812,6 @@ Clazz_defineMethod (c$, "getFontRenderContext", function () { return java.awt.FontMetrics.DEFAULT_FRC; }); -Clazz_defineMethod (c$, "getLeading", -function () { -return 0; -}); -Clazz_defineMethod (c$, "getAscent", -function () { -return this.font.getSize (); -}); -Clazz_defineMethod (c$, "getDescent", -function () { -return 0; -}); Clazz_defineMethod (c$, "getHeight", function () { return this.getLeading () + this.getAscent () + this.getDescent (); @@ -28819,39 +28824,10 @@ Clazz_defineMethod (c$, "getMaxDescent", function () { return this.getDescent (); }); -Clazz_defineMethod (c$, "getMaxDecent", -function () { -return this.getMaxDescent (); -}); Clazz_defineMethod (c$, "getMaxAdvance", function () { -return -1; +return this.charWidth ('M'); }); -Clazz_defineMethod (c$, "charWidth", -function (codePoint) { -if (!Character.isValidCodePoint (codePoint)) { -codePoint = 0xffff; -}if (codePoint < 256) { -return this.getWidths ()[codePoint]; -} else { -var buffer = Clazz_newCharArray (2, '\0'); -var len = Character.toChars (codePoint, buffer, 0); -return this.charsWidth (buffer, 0, len); -}}, "~N"); -Clazz_defineMethod (c$, "charWidth", -function (ch) { -if (ch.charCodeAt (0) < 256) { -return this.getWidths ()[ch.charCodeAt (0)]; -}var data = Clazz_newCharArray (-1, [ch]); -return this.charsWidth (data, 0, 1); -}, "~S"); -Clazz_defineMethod (c$, "stringWidth", -function (str) { -var len = str.length; -var data = Clazz_newCharArray (len, '\0'); -str.getChars (0, len, data, 0); -return this.charsWidth (data, 0, len); -}, "~S"); Clazz_defineMethod (c$, "charsWidth", function (data, off, len) { return this.stringWidth ( String.instantialize (data, off, len)); @@ -28860,14 +28836,6 @@ Clazz_defineMethod (c$, "bytesWidth", function (data, off, len) { return this.stringWidth ( String.instantialize (data, 0, off, len)); }, "~A,~N,~N"); -Clazz_defineMethod (c$, "getWidths", -function () { -var widths = Clazz_newIntArray (256, 0); -for (var ch = String.fromCharCode (0); ch.charCodeAt (0) < 256; ch = String.fromCharCode (ch.charCodeAt (0) + 1)) { -widths[ch.charCodeAt (0)] = this.charWidth (ch); -} -return widths; -}); Clazz_overrideMethod (c$, "toString", function () { return this.getClass ().getName () + "[font=" + this.getFont () + "ascent=" + this.getAscent () + ", descent=" + this.getDescent () + ", height=" + this.getHeight () + "]"; @@ -49607,7 +49575,7 @@ lines[pt] = text.substring (i, len); return lines; }, "~S,~S"); Clazz_declarePackage ("swingjs"); -Clazz_load (["jssun.awt.SunToolkit"], "swingjs.JSToolkit", ["java.io.BufferedInputStream", "$.ByteArrayInputStream", "$.InputStream", "java.lang.Boolean", "$.Thread", "java.util.Hashtable", "JU.AU", "$.Rdr", "$.SB", "java.awt.Dimension", "java.awt.image.ColorModel", "javax.swing.UIManager", "jssun.awt.AppContext", "swingjs.JSComponentPeer", "$.JSImage", "swingjs.api.Interface"], function () { +Clazz_load (["jssun.awt.SunToolkit"], "swingjs.JSToolkit", ["java.io.BufferedInputStream", "$.ByteArrayInputStream", "$.InputStream", "java.lang.Boolean", "$.Thread", "java.util.Hashtable", "JU.AU", "$.Rdr", "$.SB", "java.awt.Dimension", "java.awt.image.ColorModel", "javax.swing.UIManager", "jssun.awt.AppContext", "swingjs.JSComponentPeer", "swingjs.api.Interface"], function () { c$ = Clazz_decorateAsClass (function () { this.imageKit = null; Clazz_instantialize (this, arguments); @@ -49752,9 +49720,12 @@ return font.getName (); }, "java.awt.Font"); Clazz_overrideMethod (c$, "getFontMetrics", function (font) { -var fm = swingjs.JSToolkit.getInstance ("swingjs.JSFontMetrics"); -fm.setFont (font); -return fm; +var fm = font.getFontMetrics (); +if (fm == null) { +fm = swingjs.JSToolkit.getInstance ("swingjs.JSFontMetrics"); +(fm).setFont (font); +font.setFontMetrics (fm); +}return fm; }, "java.awt.Font"); c$.getCSSColor = Clazz_defineMethod (c$, "getCSSColor", function (c) { @@ -49977,11 +49948,7 @@ throw e; }, "java.net.URL"); Clazz_defineMethod (c$, "createImage", function (data, imageoffset, imagelength) { -if (data == null) { -var width = imageoffset; -var height = imagelength; -return new swingjs.JSImage (null, width, height); -}return this.getImagekit ().createImageFromBytes (data, imageoffset, imagelength); +return this.getImagekit ().createImageFromBytes (data, imageoffset, imagelength); }, "~A,~N,~N"); Clazz_overrideMethod (c$, "checkImage", function (image, width, height, observer) { @@ -50084,8 +50051,9 @@ Clazz_superConstructor (this, swingjs.JSEvent, [t, 1201, r, null, false]); Clazz_declarePackage ("swingjs"); Clazz_load (["java.awt.FontMetrics"], "swingjs.JSFontMetrics", ["swingjs.JSToolkit"], function () { c$ = Clazz_decorateAsClass (function () { -this.widths = null; +this.fwidths = null; this.iwidths = null; +this.FIRST_PRINTABLE = 32; Clazz_instantialize (this, arguments); }, swingjs, "JSFontMetrics", java.awt.FontMetrics); Clazz_makeConstructor (c$, @@ -50110,12 +50078,12 @@ return Clazz_doubleToInt (this.font.getSize () / 4) + 1; }); Clazz_defineMethod (c$, "charWidth", function (pt) { -return (pt.charCodeAt (0) < 256 ? Clazz_floatToInt (this.getWidthsFloat ()[pt.charCodeAt (0)]) : this.stringWidth ("" + pt)); -}, "~S"); -Clazz_defineMethod (c$, "charWidth", -function (pt) { -return (pt < 256 ? Clazz_floatToInt (this.getWidthsFloat ()[pt]) : this.stringWidth ("" + String.fromCharCode (pt))); -}, "~N"); +{ +var spt; +return ((pt + 0 == pt ? pt : (pt = (spt = pt).charCodeAt(0))) < 256 ? +Clazz_floatToInt(this.getWidthsFloat()[pt]) +: this.stringWidth(isChar ? spt : String.fromCharCode (pt))); +}}, "~N"); Clazz_overrideMethod (c$, "stringWidth", function (s) { return Clazz_floatToInt (swingjs.JSToolkit.getStringWidth (null, this.font, s)); @@ -50125,19 +50093,19 @@ function () { if (this.iwidths != null) return this.iwidths; this.iwidths = Clazz_newIntArray (256, 0); this.getWidthsFloat (); -for (var ch = 0; ch < 256; ch++) { -this.iwidths[ch] = Clazz_floatToInt (this.widths[ch]); +for (var ch = this.FIRST_PRINTABLE; ch < 256; ch++) { +this.iwidths[ch] = Clazz_floatToInt (this.fwidths[ch]); } return this.iwidths; }); Clazz_defineMethod (c$, "getWidthsFloat", function () { -if (this.widths != null) return this.widths; -this.widths = Clazz_newFloatArray (256, 0); -for (var ch = 0; ch < 256; ch++) { -this.widths[ch] = swingjs.JSToolkit.getStringWidth (null, this.font, "" + String.fromCharCode (ch)); +if (this.fwidths != null) return this.fwidths; +this.fwidths = Clazz_newFloatArray (256, 0); +for (var ch = this.FIRST_PRINTABLE; ch < 256; ch++) { +this.fwidths[ch] = swingjs.JSToolkit.getStringWidth (null, this.font, "" + String.fromCharCode (ch)); } -return this.widths; +return this.fwidths; }); }); Clazz_declarePackage ("swingjs"); diff --git a/site/j2s/core/coreswingjs.z.js b/site/j2s/core/coreswingjs.z.js index 033e4d8..c4485ff 100644 --- a/site/j2s/core/coreswingjs.z.js +++ b/site/j2s/core/coreswingjs.z.js @@ -1,24 +1,24 @@ -(function(J,la,ta,ua,A,va,p,j,n,k,q,E,wa,g,F,z,H,x,M,t,I,r,L,y,v,w,ma,D,C,K,B,U,xa,u,R,na,Q,V,N,O,aa,ya,oa,pa,W,X,ca,da,ea,fa,ga,Y,ha,qa,S,ra,za,c,d,G,Aa,P){(function(a){a._Loader.registerPackages("java",["io","lang","lang.reflect","util"]);var b=java.util;a._Loader.ignore("net.sf.j2s.ajax.HttpRequest java.util.MapEntry.Type java.lang.Runtime java.security.AccessController java.security.PrivilegedExceptionAction java.io.File java.io.FileInputStream java.io.FileWriter java.io.OutputStreamWriter java.util.concurrent.Executors".split(" ")); +(function(J,la,ta,ua,A,va,p,j,n,k,q,E,wa,g,F,z,H,x,M,t,I,r,L,y,w,v,ma,D,C,K,B,U,xa,u,Q,na,R,V,N,O,aa,ya,oa,pa,W,X,ca,da,ea,fa,ga,Y,ha,qa,S,ra,za,c,d,G,Aa,P){(function(a){a._Loader.registerPackages("java",["io","lang","lang.reflect","util"]);var b=java.util;a._Loader.ignore("net.sf.j2s.ajax.HttpRequest java.util.MapEntry.Type java.lang.Runtime java.security.AccessController java.security.PrivilegedExceptionAction java.io.File java.io.FileInputStream java.io.FileWriter java.io.OutputStreamWriter java.util.concurrent.Executors".split(" ")); Math.rint=Math.round;Math.log10||(Math.log10=function(a){return Math.log(a)/2.302585092994046});if(a._supportsNativeObject)for(var e=0;ethis&&0this&&0>>1&1431655765;a=(a&858993459)+(a>>>2&858993459);a=a+(a>>>4)&252645135;a+=a>>>8;return a+(a>>>16)&63},"Number");Integer.bitCount=Integer.prototype.bitCount;c(Integer,"numberOfLeadingZeros",function(a){if(0==a)return 32;var b=1;0==a>>>16&&(b+=16,a<<=16);0==a>>>24&&(b+=8,a<<=8);0==a>>>28&&(b+=4,a<<=4);0==a>>>30&&(b+=2,a<<=2);return b-(a>>>31)},"Number");Integer.numberOfLeadingZeros= Integer.prototype.numberOfLeadingZeros;c(Integer,"numberOfTrailingZeros",function(a){if(0==a)return 32;var b=31,e=a<<16;0!=e&&(b-=16,a=e);e=a<<8;0!=e&&(b-=8,a=e);e=a<<4;0!=e&&(b-=4,a=e);e=a<<2;0!=e&&(b-=2,a=e);return b-(a<<1>>>31)},"Number");Integer.numberOfTrailingZeros=Integer.prototype.numberOfTrailingZeros;c(Integer,"parseIntRadix",function(a,b){if(null==a)throw new NumberFormatException("null");if(2>b)throw new NumberFormatException("radix "+b+" less than Character.MIN_RADIX");if(36=c)&&(0a){var b=a&16777215;return(a>>24&255)._numberToString(16)+(b="000000"+b._numberToString(16)).substring(b.length-6)}return a._numberToString(16)};Integer.toOctalString=Integer.prototype.toOctalString=function(a){a.valueOf&&(a=a.valueOf());return a._numberToString(8)}; Integer.toBinaryString=Integer.prototype.toBinaryString=function(a){a.valueOf&&(a=a.valueOf());return a._numberToString(2)};Integer.decodeRaw=c(Integer,"decodeRaw",function(a){0<=a.indexOf(".")&&(a="");var b=a.startsWith("-")?1:0;a=a.replace(/\#/,"0x").toLowerCase();b=a.startsWith("0x",b)?16:a.startsWith("0",b)?8:10;a=Number(a)&4294967295;return 8==b?parseInt(a,8):a},"~S");Integer.decode=c(Integer,"decode",function(a){a=Integer.decodeRaw(a);if(isNaN(a)||aInteger.MAX_VALUE)throw new NumberFormatException("Invalid Integer"); -return new Integer(a)},"~S");d(Integer,"hashCode",function(){return this.valueOf()});java.lang.Long=Long=function(){k(this,arguments)};R(Long,"Long",Number,Comparable,null,!0);Long.prototype.valueOf=function(){return 0};Long.toString=Long.prototype.toString=function(){return 0!=arguments.length?""+arguments[0]:this===Long?"class java.lang.Long":""+this.valueOf()};O(Long,function(a){null==a&&(a=0);a="number"==typeof a?Math.round(a):Integer.parseIntRadix(a,10);this.valueOf=function(){return a}});Long.TYPE= +return new Integer(a)},"~S");d(Integer,"hashCode",function(){return this.valueOf()});java.lang.Long=Long=function(){k(this,arguments)};Q(Long,"Long",Number,Comparable,null,!0);Long.prototype.valueOf=function(){return 0};Long.toString=Long.prototype.toString=function(){return 0!=arguments.length?""+arguments[0]:this===Long?"class java.lang.Long":""+this.valueOf()};O(Long,function(a){null==a&&(a=0);a="number"==typeof a?Math.round(a):Integer.parseIntRadix(a,10);this.valueOf=function(){return a}});Long.TYPE= Long.prototype.TYPE=Long;c(Long,"parseLong",function(a,b){return Integer.parseInt(a,b||10)});Long.parseLong=Long.prototype.parseLong;d(Long,"$valueOf",function(a){return new Long(a)});Long.$valueOf=Long.prototype.$valueOf;d(Long,"equals",function(a){return null==a||!j(a,Long)?!1:a.valueOf()==this.valueOf()},"Object");Long.toHexString=Long.prototype.toHexString=function(a){return a.toString(16)};Long.toOctalString=Long.prototype.toOctalString=function(a){return a.toString(8)};Long.toBinaryString=Long.prototype.toBinaryString= -function(a){return a.toString(2)};Long.decode=c(Long,"decode",function(a){a=Integer.decodeRaw(a);if(isNaN(a))throw new NumberFormatException("Invalid Long");return new Long(a)},"~S");java.lang.Short=Short=function(){k(this,arguments)};R(Short,"Short",Number,Comparable,null,!0);Short.prototype.valueOf=function(){return 0};Short.toString=Short.prototype.toString=function(){return 0!=arguments.length?""+arguments[0]:this===Short?"class java.lang.Short":""+this.valueOf()};O(Short,function(a){null==a&& +function(a){return a.toString(2)};Long.decode=c(Long,"decode",function(a){a=Integer.decodeRaw(a);if(isNaN(a))throw new NumberFormatException("Invalid Long");return new Long(a)},"~S");java.lang.Short=Short=function(){k(this,arguments)};Q(Short,"Short",Number,Comparable,null,!0);Short.prototype.valueOf=function(){return 0};Short.toString=Short.prototype.toString=function(){return 0!=arguments.length?""+arguments[0]:this===Short?"class java.lang.Short":""+this.valueOf()};O(Short,function(a){null==a&& (a=0);"number"!=typeof a&&(a=Integer.parseIntRadix(a,10));a=a.shortValue();this.valueOf=function(){return a}});Short.MIN_VALUE=Short.prototype.MIN_VALUE=-32768;Short.MAX_VALUE=Short.prototype.MAX_VALUE=32767;Short.TYPE=Short.prototype.TYPE=Short;c(Short,"parseShortRadix",function(a,b){return Integer.parseIntRadix(a,b).shortValue()},"String, Number");Short.parseShortRadix=Short.prototype.parseShortRadix;c(Short,"parseShort",function(a){return Short.parseShortRadix(a,10)},"String");Short.parseShort= Short.prototype.parseShort;d(Short,"$valueOf",function(a){return new Short(a)});Short.$valueOf=Short.prototype.$valueOf;d(Short,"equals",function(a){return null==a||!j(a,Short)?!1:a.valueOf()==this.valueOf()},"Object");Short.toHexString=Short.prototype.toHexString=function(a){return a.toString(16)};Short.toOctalString=Short.prototype.toOctalString=function(a){return a.toString(8)};Short.toBinaryString=Short.prototype.toBinaryString=function(a){return a.toString(2)};Short.decode=c(Short,"decode",function(a){a= -Integer.decodeRaw(a);if(isNaN(a)||-32768>a||32767a||32767a||127a.indexOf(".")&&0>a.indexOf("e")&&(a+=".0");return a};java.lang.Float=Float=function(){k(this,arguments)};R(Float,"Float",Number,Comparable,null,!0);Float.prototype.valueOf=function(){return 0};Float.toString=Float.prototype.toString=function(){return 0!=arguments.length?a._floatToString(arguments[0]):this===Float?"class java.lang.Float":a._floatToString(this.valueOf())};O(Float, +-128>a||127a.indexOf(".")&&0>a.indexOf("e")&&(a+=".0");return a};java.lang.Float=Float=function(){k(this,arguments)};Q(Float,"Float",Number,Comparable,null,!0);Float.prototype.valueOf=function(){return 0};Float.toString=Float.prototype.toString=function(){return 0!=arguments.length?a._floatToString(arguments[0]):this===Float?"class java.lang.Float":a._floatToString(this.valueOf())};O(Float, function(a){null==a&&(a=0);"number"!=typeof a&&(a=Number(a));this.valueOf=function(){return a}});Float.serialVersionUID=Float.prototype.serialVersionUID=-0x2512365d24c31000;Float.MIN_VALUE=Float.prototype.MIN_VALUE=3.4028235E38;Float.MAX_VALUE=Float.prototype.MAX_VALUE=1.4E-45;Float.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY;Float.POSITIVE_INFINITY=Number.POSITIVE_INFINITY;Float.NaN=Number.NaN;Float.TYPE=Float.prototype.TYPE=Float;c(Float,"parseFloat",function(a){if(null==a)throw new NumberFormatException("null"); if("number"==typeof a)return a;var b=Number(a);if(isNaN(b))throw new NumberFormatException("Not a Number : "+a);return b},"String");Float.parseFloat=Float.prototype.parseFloat;d(Float,"$valueOf",function(a){return new Float(a)});Float.$valueOf=Float.prototype.$valueOf;c(Float,"isNaN",function(a){return isNaN(a)},"Number");Float.isNaN=Float.prototype.isNaN;c(Float,"isInfinite",function(a){return!isFinite(a)},"Number");Float.isInfinite=Float.prototype.isInfinite;d(Float,"equals",function(a){return null== -a||!j(a,Float)?!1:a.valueOf()==this.valueOf()},"Object");java.lang.Double=Double=function(){k(this,arguments)};R(Double,"Double",Number,Comparable,null,!0);Double.prototype.valueOf=function(){return 0};Double.toString=Double.prototype.toString=function(){return 0!=arguments.length?a._floatToString(arguments[0]):this===Double?"class java.lang.Double":a._floatToString(this.valueOf())};O(Double,function(a){null==a&&(a=0);"number"!=typeof a&&(a=Double.parseDouble(a));this.valueOf=function(){return a}}); +a||!j(a,Float)?!1:a.valueOf()==this.valueOf()},"Object");java.lang.Double=Double=function(){k(this,arguments)};Q(Double,"Double",Number,Comparable,null,!0);Double.prototype.valueOf=function(){return 0};Double.toString=Double.prototype.toString=function(){return 0!=arguments.length?a._floatToString(arguments[0]):this===Double?"class java.lang.Double":a._floatToString(this.valueOf())};O(Double,function(a){null==a&&(a=0);"number"!=typeof a&&(a=Double.parseDouble(a));this.valueOf=function(){return a}}); Double.serialVersionUID=Double.prototype.serialVersionUID=-0x7f4c3db5d6940400;Double.MIN_VALUE=Double.prototype.MIN_VALUE=4.9E-324;Double.MAX_VALUE=Double.prototype.MAX_VALUE=1.7976931348623157E308;Double.NEGATIVE_INFINITY=Number.NEGATIVE_INFINITY;Double.POSITIVE_INFINITY=Number.POSITIVE_INFINITY;Double.NaN=Number.NaN;Double.TYPE=Double.prototype.TYPE=Double;c(Double,"isNaN",function(a){return isNaN(a)},"Number");Double.isNaN=Double.prototype.isNaN;c(Double,"isInfinite",function(a){return!isFinite(a)}, "Number");Double.isInfinite=Double.prototype.isInfinite;c(Double,"parseDouble",function(a){if(null==a)throw new NumberFormatException("null");if("number"==typeof a)return a;var b=Number(a);if(isNaN(b))throw new NumberFormatException("Not a Number : "+a);return b},"String");Double.parseDouble=Double.prototype.parseDouble;c(Double,"$valueOf",function(a){return new Double(a)},"Number");Double.$valueOf=Double.prototype.$valueOf;d(Double,"equals",function(a){return null==a||!j(a,Double)?!1:a.valueOf()== this.valueOf()},"Object");Boolean=java.lang.Boolean=Boolean||function(){k(this,arguments)};if(a._supportsNativeObject)for(e=0;eb||0>e||e>a.length-b)throw new IndexOutOfBoundsException; if(0==e)return 0;var c=this.readByteAsInt();if(-1==c)return-1;a[b]=c;var f=1;try{for(;f=a)return 0;for(;0e)break;b-=e}return a-b},"~N");c(c$,"available",function(){return 0}); c(c$,"close",function(){});c(c$,"mark",function(){},"~N");c(c$,"reset",function(){throw new java.io.IOException("mark/reset not supported");});c(c$,"markSupported",function(){return!1});c(c$,"resetStream",function(){});x(c$,"SKIP_BUFFER_SIZE",2048,"skipBuffer",null)});n(["java.io.Reader"],"java.io.BufferedReader",["java.io.IOException","java.lang.IllegalArgumentException","$.IndexOutOfBoundsException","JU.SB"],function(){c$=q(function(){this.cb=this.$in=null;this.nextChar=this.nChars=0;this.markedChar= --1;this.readAheadLimit=0;this.markedSkipLF=this.skipLF=!1;k(this,arguments)},java.io,"BufferedReader",java.io.Reader);c(c$,"setSize",function(a){if(0>=a)throw new IllegalArgumentException("Buffer size <= 0");this.cb=Q(a,"\x00");this.nextChar=this.nChars=0},"~N");g(c$,function(a){r(this,java.io.BufferedReader,[a]);this.$in=a;this.setSize(8192)},"java.io.Reader");c(c$,"ensureOpen",function(){if(null==this.$in)throw new java.io.IOException("Stream closed");});c(c$,"fill",function(){var a;if(-1>=this.markedChar)a= -0;else{var b=this.nextChar-this.markedChar;b>=this.readAheadLimit?(this.markedChar=-2,a=this.readAheadLimit=0):(this.readAheadLimit<=this.cb.length?System.arraycopy(this.cb,this.markedChar,this.cb,0,b):(a=Q(this.readAheadLimit,"\x00"),System.arraycopy(this.cb,this.markedChar,a,0,b),this.cb=a),this.markedChar=0,this.nextChar=this.nChars=a=b)}do b=this.$in.read(this.cb,a,this.cb.length-a);while(0==b);0=this.nChars){if(e>= +-1;this.readAheadLimit=0;this.markedSkipLF=this.skipLF=!1;k(this,arguments)},java.io,"BufferedReader",java.io.Reader);c(c$,"setSize",function(a){if(0>=a)throw new IllegalArgumentException("Buffer size <= 0");this.cb=R(a,"\x00");this.nextChar=this.nChars=0},"~N");g(c$,function(a){r(this,java.io.BufferedReader,[a]);this.$in=a;this.setSize(8192)},"java.io.Reader");c(c$,"ensureOpen",function(){if(null==this.$in)throw new java.io.IOException("Stream closed");});c(c$,"fill",function(){var a;if(-1>=this.markedChar)a= +0;else{var b=this.nextChar-this.markedChar;b>=this.readAheadLimit?(this.markedChar=-2,a=this.readAheadLimit=0):(this.readAheadLimit<=this.cb.length?System.arraycopy(this.cb,this.markedChar,this.cb,0,b):(a=R(this.readAheadLimit,"\x00"),System.arraycopy(this.cb,this.markedChar,a,0,b),this.cb=a),this.markedChar=0,this.nextChar=this.nChars=a=b)}do b=this.$in.read(this.cb,a,this.cb.length-a);while(0==b);0=this.nChars){if(e>= this.cb.length&&-1>=this.markedChar&&!this.skipLF)return this.$in.read(a,b,e);this.fill()}if(this.nextChar>=this.nChars||this.skipLF&&(this.skipLF=!1,"\n"==this.cb[this.nextChar]&&(this.nextChar++,this.nextChar>=this.nChars&&this.fill(),this.nextChar>=this.nChars)))return-1;e=Math.min(e,this.nChars-this.nextChar);System.arraycopy(this.cb,this.nextChar,a,b,e);this.nextChar+=e;return e},"~A,~N,~N");c(c$,"read",function(a,b,e){this.ensureOpen();if(0>b||b>a.length||0>e||b+e>a.length||0>b+e)throw new IndexOutOfBoundsException; if(0==e)return 0;var c=this.read1(a,b,e);if(0>=c)return c;for(;c=f)break;c+=f}return c},"~A,~N,~N");c(c$,"readLine1",function(a){var b=null,e;this.ensureOpen();for(var c=a||this.skipLF;;){this.nextChar>=this.nChars&&this.fill();if(this.nextChar>=this.nChars)return null!=b&&0a)throw new IllegalArgumentException("skip value is negative");this.ensureOpen();for(var b=a;0=this.nChars&&this.fill(); @@ -157,7 +157,7 @@ function(){return!0});d(c$,"mark",function(a){if(0>a)throw new IllegalArgumentEx null)});x(c$,"INVALIDATED",-2,"UNMARKED",-1,"DEFAULT_CHAR_BUFFER_SIZE",8192,"DEFAULT_EXPECTED_LINE_LENGTH",80)});n(["java.io.InputStream"],"java.io.ByteArrayInputStream",["java.lang.IndexOutOfBoundsException","$.NullPointerException"],function(){c$=q(function(){this.buf=null;this.count=this.$mark=this.pos=0;k(this,arguments)},java.io,"ByteArrayInputStream",java.io.InputStream);g(c$,function(a){r(this,java.io.ByteArrayInputStream,[]);this.buf=a;this.pos=0;this.count=a.length},"~A");d(c$,"readByteAsInt", function(){return this.posb||0>e||e>a.length-b)throw new IndexOutOfBoundsException;if(this.pos>=this.count)return-1;var c=this.count-this.pos;e>c&&(e=c);if(0>=e)return 0;System.arraycopy(this.buf,this.pos,a,b,e);this.pos+=e;return e},"~A,~N,~N");d(c$,"skip",function(a){var b=this.count-this.pos;aa?0:a);this.pos+=b;return b},"~N");d(c$, "available",function(){return this.count-this.pos});d(c$,"markSupported",function(){return!0});d(c$,"mark",function(){this.$mark=this.pos},"~N");d(c$,"resetStream",function(){});d(c$,"reset",function(){this.pos=this.$mark});d(c$,"close",function(){})});n(["java.io.Closeable"],"java.io.Reader",["java.io.IOException","java.lang.IllegalArgumentException","$.NullPointerException"],function(){c$=q(function(){this.skipBuffer=this.lock=null;k(this,arguments)},java.io,"Reader",null,java.io.Closeable);g(c$, -function(a){if(null==a)throw new NullPointerException;this.lock=a},"~O");c(c$,"skip",function(a){if(0>a)throw new IllegalArgumentException("skip value is negative");var b=Math.min(a,8192);if(null==this.skipBuffer||this.skipBuffer.lengtha)throw new IllegalArgumentException("skip value is negative");var b=Math.min(a,8192);if(null==this.skipBuffer||this.skipBuffer.lengthb||b>a.length||0>e||b+e>a.length||0>b+e)throw new IndexOutOfBoundsException;if(0==e)return 0;if(this.next>=this.length)return-1;e=Math.min(this.length-this.next,e);this.str.getChars(this.next,this.next+e,a,b);this.next+=e;return e},"~A,~N,~N");d(c$,"skip",function(a){this.ensureOpen();if(this.next>=this.length)return 0;a=Math.min(this.length-this.next,a);a=Math.max(-this.next, a);this.next+=a;return a},"~N");d(c$,"ready",function(){this.ensureOpen();return!0});d(c$,"markSupported",function(){return!0});d(c$,"mark",function(a){if(0>a)throw new IllegalArgumentException("Read-ahead limit < 0");this.ensureOpen();this.$mark=this.next},"~N");d(c$,"reset",function(){this.ensureOpen();this.next=this.$mark});d(c$,"close",function(){this.str=null})});p("JU");n(null,"JU.Base64",["JU.SB"],function(){c$=t(JU,"Base64");c$.getBytes64=c(c$,"getBytes64",function(a){return JU.Base64.getBase64(a).toBytes(0, @@ -189,20 +189,20 @@ this.firstIndex,b,0,a);this.array=b;this.firstIndex=0;this.lastIndex=this.array. java.util.List);c(c$,"add",function(){throw new UnsupportedOperationException;},"~N,~O");c(c$,"add",function(a){this.add(this.size(),a);return!0},"~O");c(c$,"addAll",function(a,b){for(var e=b.iterator();e.hasNext();)this.add(a++,e.next());return!b.isEmpty()},"~N,java.util.Collection");d(c$,"clear",function(){this.removeRange(0,this.size())});d(c$,"equals",function(a){if(this===a)return!0;if(j(a,java.util.List)){if(a.size()!=this.size())return!1;var b=this.iterator();for(a=a.iterator();b.hasNext();){var e= b.next(),c=a.next();if(!(null==e?null==c:e.equals(c)))return!1}return!0}return!1},"~O");d(c$,"hashCode",function(){for(var a=1,b=this.iterator();b.hasNext();)var e=b.next(),a=31*a+(null==e?0:e.hashCode());return a});d(c$,"indexOf",function(a){var b=this.listIterator();if(null!=a)for(;b.hasNext();){if(a.equals(b.next()))return b.previousIndex()}else for(;b.hasNext();)if(null==b.next())return b.previousIndex();return-1},"~O");d(c$,"iterator",function(){return new java.util.AbstractListSimpleListIterator(this)}); d(c$,"lastIndexOf",function(a){var b=this.listIterator(this.size());if(null!=a)for(;b.hasPrevious();){if(a.equals(b.previous()))return b.nextIndex()}else for(;b.hasPrevious();)if(null==b.previous())return b.nextIndex();return-1},"~O");c(c$,"listIterator",function(a){a||(a=0);return new java.util.AbstractListFullListIterator(this,a)},"~N");c(c$,"remove",function(){throw new UnsupportedOperationException;},"~N");c(c$,"removeRange",function(a,b){for(var e=this.listIterator(a),c=a;c=this.start});c(c$,"next",function(){if(this.iterator.nextIndex()=this.start)return this.iterator.previous();throw new java.util.NoSuchElementException;});c(c$,"previousIndex",function(){var a=this.iterator.previousIndex(); -return a>=this.start?a-this.start:-1});c(c$,"remove",function(){this.iterator.remove();this.subList.sizeChanged(!1);this.end--});c(c$,"set",function(a){this.iterator.set(a)},"~O");c$=v();c$=v()});n(["java.util.Collection"],"java.util.AbstractCollection",["java.lang.StringBuilder","$.UnsupportedOperationException","java.lang.reflect.Array"],function(){c$=t(java.util,"AbstractCollection",null,java.util.Collection);g(c$,function(){});d(c$,"add",function(){throw new UnsupportedOperationException;},"~O"); +return a>=this.start?a-this.start:-1});c(c$,"remove",function(){this.iterator.remove();this.subList.sizeChanged(!1);this.end--});c(c$,"set",function(a){this.iterator.set(a)},"~O");c$=w();c$=w()});n(["java.util.Collection"],"java.util.AbstractCollection",["java.lang.StringBuilder","$.UnsupportedOperationException","java.lang.reflect.Array"],function(){c$=t(java.util,"AbstractCollection",null,java.util.Collection);g(c$,function(){});d(c$,"add",function(){throw new UnsupportedOperationException;},"~O"); d(c$,"addAll",function(a){var b=!1;for(a=a.iterator();a.hasNext();)this.add(a.next())&&(b=!0);return b},"java.util.Collection");d(c$,"clear",function(){for(var a=this.iterator();a.hasNext();)a.next(),a.remove()});d(c$,"contains",function(a){var b=this.iterator();if(null!=a)for(;b.hasNext();){if(a.equals(b.next()))return!0}else for(;b.hasNext();)if(null==b.next())return!0;return!1},"~O");d(c$,"containsAll",function(a){for(a=a.iterator();a.hasNext();)if(!this.contains(a.next()))return!1;return!0},"java.util.Collection"); d(c$,"isEmpty",function(){return 0==this.size()});d(c$,"remove",function(a){var b=this.iterator();if(null!=a)for(;b.hasNext();){if(a.equals(b.next()))return b.remove(),!0}else for(;b.hasNext();)if(null==b.next())return b.remove(),!0;return!1},"~O");d(c$,"removeAll",function(a){for(var b=!1,e=this.iterator();e.hasNext();)a.contains(e.next())&&(e.remove(),b=!0);return b},"java.util.Collection");d(c$,"retainAll",function(a){for(var b=!1,e=this.iterator();e.hasNext();)a.contains(e.next())||(e.remove(), b=!0);return b},"java.util.Collection");c(c$,"toArray",function(){for(var a=this.size(),b=0,e=this.iterator(),c=Array(a);bthis.threshold&&(this.rehash(),e=null==a?0:(a.hashCode()&2147483647)%this.elementData.length),this.createEntry(a,e,b),null;e=c.value;c.value=b;return e},"~O,~O");c(c$,"createEntry",function(a,b,e){a= new java.util.HashMap.Entry(a,e);a.next=this.elementData[b];return this.elementData[b]=a},"~O,~N,~O");c(c$,"putAll",function(a){if(!a.isEmpty()){var b=this.elementCount+a.size();b>this.threshold&&this.rehash(b);this.putAllHM(a)}},"java.util.Map");c(c$,"rehash",function(a){a=0==a?1:a<<1;for(var b=this.newElementArray(a),e=0;ee)throw new IllegalArgumentException("fromIndex("+b+") > toIndex("+e+")");if(0>b)throw new ArrayIndexOutOfBoundsException(b); if(e>a)throw new ArrayIndexOutOfBoundsException(e);},$fz.isPrivate=!0,$fz),"~N,~N,~N");c$.binarySearch=c(c$,"binarySearch",function(a,b){for(var e=0,c=a.length-1;e<=c;){var f=e+c>>1,l=a[f];if(lb)c=f-1;else return f}return-(e+1)},"~A,~N");c$.binarySearch=c(c$,"binarySearch",function(a,b){for(var e=0,c=a.length-1;e<=c;){var f=e+c>>1,l=a[f].compareTo(b);if(0>l)e=f+1;else if(0>1,d=e.compare(a[l],b);if(0>d)c=l+1;else if(0=a):!1},"~O");c$=v();x(c$,"NUM_KEYS",9,"VALS_PER_KEY",8,"INTKEY_RENDERING",0,"INTVAL_RENDER_DEFAULT",0,"INTVAL_RENDER_SPEED",1,"INTVAL_RENDER_QUALITY",2,"INTKEY_ANTIALIASING",1,"INTVAL_ANTIALIAS_DEFAULT",0,"INTVAL_ANTIALIAS_OFF",1,"INTVAL_ANTIALIAS_ON",2,"INTKEY_TEXT_ANTIALIASING",2,"INTVAL_TEXT_ANTIALIAS_DEFAULT", +B(9,8,null);c$=w();v(self.c$);c$=t(java.awt.RenderingHints,"LCDContrastKey",java.awt.RenderingHints.SunKey);d(c$,"isCompatibleValue",function(a){return j(a,Integer)?(a=a.intValue(),100<=a&&250>=a):!1},"~O");c$=w();x(c$,"NUM_KEYS",9,"VALS_PER_KEY",8,"INTKEY_RENDERING",0,"INTVAL_RENDER_DEFAULT",0,"INTVAL_RENDER_SPEED",1,"INTVAL_RENDER_QUALITY",2,"INTKEY_ANTIALIASING",1,"INTVAL_ANTIALIAS_DEFAULT",0,"INTVAL_ANTIALIAS_OFF",1,"INTVAL_ANTIALIAS_ON",2,"INTKEY_TEXT_ANTIALIASING",2,"INTVAL_TEXT_ANTIALIAS_DEFAULT", 0,"INTVAL_TEXT_ANTIALIAS_OFF",1,"INTVAL_TEXT_ANTIALIAS_ON",2,"INTVAL_TEXT_ANTIALIAS_GASP",3,"INTVAL_TEXT_ANTIALIAS_LCD_HRGB",4,"INTVAL_TEXT_ANTIALIAS_LCD_HBGR",5,"INTVAL_TEXT_ANTIALIAS_LCD_VRGB",6,"INTVAL_TEXT_ANTIALIAS_LCD_VBGR",7,"INTKEY_FRACTIONALMETRICS",3,"INTVAL_FRACTIONALMETRICS_DEFAULT",0,"INTVAL_FRACTIONALMETRICS_OFF",1,"INTVAL_FRACTIONALMETRICS_ON",2,"INTKEY_DITHERING",4,"INTVAL_DITHER_DEFAULT",0,"INTVAL_DITHER_DISABLE",1,"INTVAL_DITHER_ENABLE",2,"INTKEY_INTERPOLATION",5,"INTVAL_INTERPOLATION_NEAREST_NEIGHBOR", 0,"INTVAL_INTERPOLATION_BILINEAR",1,"INTVAL_INTERPOLATION_BICUBIC",2,"INTKEY_ALPHA_INTERPOLATION",6,"INTVAL_ALPHA_INTERPOLATION_DEFAULT",0,"INTVAL_ALPHA_INTERPOLATION_SPEED",1,"INTVAL_ALPHA_INTERPOLATION_QUALITY",2,"INTKEY_COLOR_RENDERING",7,"INTVAL_COLOR_RENDER_DEFAULT",0,"INTVAL_COLOR_RENDER_SPEED",1,"INTVAL_COLOR_RENDER_QUALITY",2,"INTKEY_STROKE_CONTROL",8,"INTVAL_STROKE_DEFAULT",0,"INTVAL_STROKE_NORMALIZE",1,"INTVAL_STROKE_PURE",2,"INTKEY_AATEXT_LCD_CONTRAST",100);c$.KEY_RENDERING=c$.prototype.KEY_RENDERING= new java.awt.RenderingHints.SunKey(0,"Global rendering quality key");c$.VALUE_RENDER_SPEED=c$.prototype.VALUE_RENDER_SPEED=new java.awt.RenderingHints.Value(java.awt.RenderingHints.KEY_RENDERING,1,"Fastest rendering methods");c$.VALUE_RENDER_QUALITY=c$.prototype.VALUE_RENDER_QUALITY=new java.awt.RenderingHints.Value(java.awt.RenderingHints.KEY_RENDERING,2,"Highest quality rendering methods");c$.VALUE_RENDER_DEFAULT=c$.prototype.VALUE_RENDER_DEFAULT=new java.awt.RenderingHints.Value(java.awt.RenderingHints.KEY_RENDERING, @@ -334,68 +334,68 @@ c$.unmodifiableSet=c(c$,"unmodifiableSet",function(a){if(null==a)throw new NullP "java.util.SortedSet");c$.frequency=c(c$,"frequency",function(a,b){if(null==a)throw new NullPointerException;if(a.isEmpty())return 0;for(var e=0,c=a.iterator();c.hasNext();){var f=c.next();(null==b?null==f:b.equals(f))&&e++}return e},"java.util.Collection,~O");c$.emptyList=c(c$,"emptyList",function(){return java.util.Collections.EMPTY_LIST});c$.emptySet=c(c$,"emptySet",function(){return java.util.Collections.EMPTY_SET});c$.emptyMap=c(c$,"emptyMap",function(){return java.util.Collections.EMPTY_MAP}); c$.checkedCollection=c(c$,"checkedCollection",function(a,b){return new java.util.Collections.CheckedCollection(a,b)},"java.util.Collection,Class");c$.checkedMap=c(c$,"checkedMap",function(a,b,e){return new java.util.Collections.CheckedMap(a,b,e)},"java.util.Map,Class,Class");c$.checkedList=c(c$,"checkedList",function(a,b){return j(a,java.util.RandomAccess)?new java.util.Collections.CheckedRandomAccessList(a,b):new java.util.Collections.CheckedList(a,b)},"java.util.List,Class");c$.checkedSet=c(c$, "checkedSet",function(a,b){return new java.util.Collections.CheckedSet(a,b)},"java.util.Set,Class");c$.checkedSortedMap=c(c$,"checkedSortedMap",function(a,b,e){return new java.util.Collections.CheckedSortedMap(a,b,e)},"java.util.SortedMap,Class,Class");c$.checkedSortedSet=c(c$,"checkedSortedSet",function(a,b){return new java.util.Collections.CheckedSortedSet(a,b)},"java.util.SortedSet,Class");c$.addAll=c(c$,"addAll",function(a,b){for(var e=!1,c=0;ca.size()){var e=a;a=b;b=e}for(e=a.iterator();e.hasNext();)if(b.contains(e.next()))return!1;return!0},"java.util.Collection,java.util.Collection");c$.checkType=c(c$,"checkType",function(a,b){if(!b.isInstance(a))throw new ClassCastException("Attempt to insert "+a.getClass()+" element into collection with element type "+b);return a},"~O,Class");c$.$Collections$1$=function(a){w(self.c$); -c$=q(function(){K(this,arguments);this.it=null;k(this,arguments)},java.util,"Collections$1",null,java.util.Enumeration);I(c$,function(){this.it=a.iterator()});c(c$,"hasMoreElements",function(){return this.it.hasNext()});c(c$,"nextElement",function(){return this.it.next()});c$=v()};w(self.c$);c$=q(function(){this.n=0;this.element=null;k(this,arguments)},java.util.Collections,"CopiesList",java.util.AbstractList,java.io.Serializable);g(c$,function(a,b){r(this,java.util.Collections.CopiesList,[]);if(0> -a)throw new IllegalArgumentException;this.n=a;this.element=b},"~N,~O");d(c$,"contains",function(a){return null==this.element?null==a:this.element.equals(a)},"~O");d(c$,"size",function(){return this.n});d(c$,"get",function(a){if(0<=a&&aa.size()){var e=a;a=b;b=e}for(e=a.iterator();e.hasNext();)if(b.contains(e.next()))return!1;return!0},"java.util.Collection,java.util.Collection");c$.checkType=c(c$,"checkType",function(a,b){if(!b.isInstance(a))throw new ClassCastException("Attempt to insert "+a.getClass()+" element into collection with element type "+b);return a},"~O,Class");c$.$Collections$1$=function(a){v(self.c$); +c$=q(function(){K(this,arguments);this.it=null;k(this,arguments)},java.util,"Collections$1",null,java.util.Enumeration);I(c$,function(){this.it=a.iterator()});c(c$,"hasMoreElements",function(){return this.it.hasNext()});c(c$,"nextElement",function(){return this.it.next()});c$=w()};v(self.c$);c$=q(function(){this.n=0;this.element=null;k(this,arguments)},java.util.Collections,"CopiesList",java.util.AbstractList,java.io.Serializable);g(c$,function(a,b){r(this,java.util.Collections.CopiesList,[]);if(0> +a)throw new IllegalArgumentException;this.n=a;this.element=b},"~N,~O");d(c$,"contains",function(a){return null==this.element?null==a:this.element.equals(a)},"~O");d(c$,"size",function(){return this.n});d(c$,"get",function(a){if(0<=a&&aa.length&&(a=a.getClass().getComponentType(),a=java.lang.reflect.Array.newInstance(a,b));for(;ea.length&&(a=a.getClass().getComponentType(),a=java.lang.reflect.Array.newInstance(a,b));for(;e>>48-a},"~N");c(c$,"nextBoolean",function(){return 0.5b;a=ea.size()?11:2*a.size()));var b;for(a=a.iterator();a.hasNext()&&((b=a.next())||1);)this.add(b)},"java.util.Collection");g(c$,function(a){r(this,java.util.HashSet,[]);this.backingMap=a},"java.util.HashMap");d(c$,"add",function(a){return null==this.backingMap.put(a, this)},"~O");d(c$,"clear",function(){this.backingMap.clear()});c(c$,"clone",function(){try{var a=this.cloneHM();a.backingMap=this.backingMap.clone();return a}catch(b){if(j(b,CloneNotSupportedException))return null;throw b;}});d(c$,"contains",function(a){return this.backingMap.containsKey(a)},"~O");d(c$,"isEmpty",function(){return this.backingMap.isEmpty()});c(c$,"iterator",function(){return this.backingMap.keySet().iterator()});d(c$,"remove",function(a){return null!=this.backingMap.remove(a)},"~O"); d(c$,"size",function(){return this.backingMap.size()});c(c$,"createBackingMap",function(a,b){return new java.util.HashMap(a,b)},"~N,~N")});p("jssun.awt");y(jssun.awt,"ComponentFactory");p("jssun.awt");y(jssun.awt,"WindowClosingListener");p("jssun.awt");y(jssun.awt,"WindowClosingSupport");p("java.awt");n(["java.awt.Container","java.util.ArrayList","$.Vector","java.awt.Color"],["java.awt.Window","$.FocusManager"],"java.lang.IllegalArgumentException java.util.Arrays java.applet.Applet java.awt.AWTEventMulticaster $.BorderLayout $.ComponentOrientation $.Cursor $.GraphicsEnvironment $.Point $.Toolkit java.awt.event.WindowEvent $.WindowFocusListener $.WindowListener $.WindowStateListener java.util.Locale $.ResourceBundle javax.swing.JComponent $.RootPaneContainer jssun.awt.AppContext swingjs.JSToolkit".split(" "), @@ -487,8 +487,8 @@ c.width);fa||1a&&java.util.Arrays.fill(this.elementData, a,this.elementCount,null),this.elementCount=a,this.modCount++)},"~N");d(c$,"size",function(){return this.elementCount});d(c$,"subList",function(a,b){return new java.util.Collections.SynchronizedRandomAccessList(u(this,java.util.Vector,"subList",[a,b]),this)},"~N,~N");c(c$,"toArray",function(){var a=Array(this.elementCount);System.arraycopy(this.elementData,0,a,0,this.elementCount);return a});c(c$,"toArray",function(a){this.elementCount>a.length&&(a=a.getClass().getComponentType(),a=java.lang.reflect.Array.newInstance(a, this.elementCount));System.arraycopy(this.elementData,0,a,0,this.elementCount);this.elementCountc||255a||255b||255< +return b.toString()});c(c$,"trimToSize",function(){this.elementData.length!=this.elementCount&&this.grow(this.elementCount)});c$.$Vector$1$=function(){v(self.c$);c$=q(function(){K(this,arguments);this.pos=0;k(this,arguments)},java.util,"Vector$1",null,java.util.Enumeration);d(c$,"hasMoreElements",function(){return this.posc||255a||255b||255< b)f=!0,l+=" Green";if(0>e||255b?this.setFloat(a[0],a[1],a[2],1):this.setColor4(a[0],a[1],a[2],255);break;case 4:b=a[0]+a[1]+a[2]+a[3],0b?this.setFloat(a[0],a[1],a[2], a[3]):this.setColor4(a[0],a[1],a[2],a[3])}return this});c(c$,"setColor4",function(a,b,e,c){this.value=(c&255)<<24|(a&255)<<16|(b&255)<<8|(e&255)<<0;java.awt.Color.testColorValueRange(a,b,e,c)},"~N,~N,~N,~N");c(c$,"setFloat",function(a,b,e,c){this.setColor4(A(255*a+0.5),A(255*b+0.5),A(255*e+0.5),A(255*c+0.5));this.frgbvalue=M(3,0);this.frgbvalue[0]=a;this.frgbvalue[1]=b;this.frgbvalue[2]=e;this.falpha=c},"~N,~N,~N,~N");c$.getColorF4=c(c$,"getColorF4",function(a,b,e,c){var f=new java.awt.Color;f.setFloat(a, b,e,c);return f},"~N,~N,~N,~N");c(c$,"getRed",function(){return this.getRGB()>>16&255});c(c$,"getGreen",function(){return this.getRGB()>>8&255});c(c$,"getBlue",function(){return this.getRGB()>>0&255});c(c$,"getAlpha",function(){return this.getRGB()>>24&255});c(c$,"getRGB",function(){return this.value});c(c$,"brighter",function(){var a=this.getRed(),b=this.getGreen(),e=this.getBlue(),c=A(3.333333333333333);if(0==a&&0==b&&0==e)return new java.awt.Color(c,c,c);0=s.x&&b+c<=s.x+s.width&&e>=s.y&&e+f<=s.y+s.height)return javax.swing.JComponent.recycleRectangle(m),2;if(0==d&&!(b+c<=s.x||e+f<=s.y||b>=s.x+s.width||e>=s.y+s.height))d=1}}javax.swing.JComponent.recycleRectangle(m);return d},"~N,~N,~N,~N,~N");c(c$,"checkIfChildObscuredBySibling",function(){return!0});c(c$,"setFlag",function(a,b){this.flags=b?this.flags|1<=c)return!1;var f=this.getX(),d=this.getY();return a>=f&&b>=d&&a+e<=f+this.getWidth()&&b+c<=d+this.getHeight()},"~N,~N,~N,~N");c$.intersect=c(c$,"intersect",function(a,b,e){var c=Math.max(a.getMinX(),b.getMinX()),f=Math.max(a.getMinY(),b.getMinY()),d=Math.min(a.getMaxX(),b.getMaxX());a=Math.min(a.getMaxY(),b.getMaxY());e.setFrame(c,f,d-c,a-f)},"java.awt.geom.Rectangle2D,java.awt.geom.Rectangle2D,java.awt.geom.Rectangle2D");c$.union=c(c$,"union",function(a,b,e){var c=Math.min(a.getMinX(),b.getMinX()), f=Math.min(a.getMinY(),b.getMinY()),d=Math.max(a.getMaxX(),b.getMaxX());a=Math.max(a.getMaxY(),b.getMaxY());e.setFrameFromDiagonal(c,f,d,a)},"java.awt.geom.Rectangle2D,java.awt.geom.Rectangle2D,java.awt.geom.Rectangle2D");c(c$,"add",function(a,b){var e=Math.min(this.getMinX(),a),c=Math.max(this.getMaxX(),a),f=Math.min(this.getMinY(),b),d=Math.max(this.getMaxY(),b);this.setRect(e,f,c-e,d-f)},"~N,~N");c(c$,"add",function(a){this.add(a.getX(),a.getY())},"java.awt.geom.Point2D");c(c$,"add",function(a){var b= Math.min(this.getMinX(),a.getMinX()),e=Math.max(this.getMaxX(),a.getMaxX()),c=Math.min(this.getMinY(),a.getMinY());a=Math.max(this.getMaxY(),a.getMaxY());this.setRect(b,c,e-b,a-c)},"java.awt.geom.Rectangle2D");c(c$,"getPathIterator",function(a){return new java.awt.geom.RectIterator(this,a)},"java.awt.geom.AffineTransform");c(c$,"getPathIterator",function(a){return new java.awt.geom.RectIterator(this,a)},"java.awt.geom.AffineTransform,~N");d(c$,"hashCode",function(){var a=java.lang.Double.doubleToLongBits(this.getX()), -a=a+37*java.lang.Double.doubleToLongBits(this.getY()),a=a+43*java.lang.Double.doubleToLongBits(this.getWidth()),a=a+47*java.lang.Double.doubleToLongBits(this.getHeight());return a^a>>32});d(c$,"equals",function(a){return a===this?!0:j(a,java.awt.geom.Rectangle2D)?this.getX()==a.getX()&&this.getY()==a.getY()&&this.getWidth()==a.getWidth()&&this.getHeight()==a.getHeight():!1},"~O");w(self.c$);c$=q(function(){this.height=this.width=this.y=this.x=0;k(this,arguments)},java.awt.geom.Rectangle2D,"Float", +a=a+37*java.lang.Double.doubleToLongBits(this.getY()),a=a+43*java.lang.Double.doubleToLongBits(this.getWidth()),a=a+47*java.lang.Double.doubleToLongBits(this.getHeight());return a^a>>32});d(c$,"equals",function(a){return a===this?!0:j(a,java.awt.geom.Rectangle2D)?this.getX()==a.getX()&&this.getY()==a.getY()&&this.getWidth()==a.getWidth()&&this.getHeight()==a.getHeight():!1},"~O");v(self.c$);c$=q(function(){this.height=this.width=this.y=this.x=0;k(this,arguments)},java.awt.geom.Rectangle2D,"Float", java.awt.geom.Rectangle2D);g(c$,function(a,b,e,c){r(this,java.awt.geom.Rectangle2D.Float,[]);0!=arguments.length&&this.setRect(a,b,e,c)},"~N,~N,~N,~N");c(c$,"getX",function(){return this.x});c(c$,"getY",function(){return this.y});c(c$,"getWidth",function(){return this.width});c(c$,"getHeight",function(){return this.height});d(c$,"isEmpty",function(){return 0>=this.width||0>=this.height});c(c$,"setRect",function(a,b,e,c){this.x=a;this.y=b;this.width=e;this.height=c},"~N,~N,~N,~N");c(c$,"setRect",function(a, b,e,c){this.x=a;this.y=b;this.width=e;this.height=c},"~N,~N,~N,~N");c(c$,"setRect",function(a){this.x=a.getX();this.y=a.getY();this.width=a.getWidth();this.height=a.getHeight()},"java.awt.geom.Rectangle2D");c(c$,"outcode",function(a,b){var e=0;0>=this.width?e|=5:athis.x+this.width&&(e|=4);0>=this.height?e|=10:bthis.y+this.height&&(e|=8);return e},"~N,~N");d(c$,"getBounds2D",function(){return new java.awt.geom.Rectangle2D.Float(this.x,this.y,this.width,this.height)}); d(c$,"createIntersection",function(a){var b;b=j(a,java.awt.geom.Rectangle2D.Float)?new java.awt.geom.Rectangle2D.Float:new java.awt.geom.Rectangle2D.Double;java.awt.geom.Rectangle2D.intersect(this,a,b);return b},"java.awt.geom.Rectangle2D");d(c$,"createUnion",function(a){var b;b=j(a,java.awt.geom.Rectangle2D.Float)?new java.awt.geom.Rectangle2D.Float:new java.awt.geom.Rectangle2D.Double;java.awt.geom.Rectangle2D.union(this,a,b);return b},"java.awt.geom.Rectangle2D");d(c$,"toString",function(){return this.getClass().getName()+ -"[x="+this.x+",y="+this.y+",w="+this.width+",h="+this.height+"]"});c$=v();w(self.c$);c$=q(function(){this.height=this.width=this.y=this.x=0;k(this,arguments)},java.awt.geom.Rectangle2D,"Double",java.awt.geom.Rectangle2D);g(c$,function(){r(this,java.awt.geom.Rectangle2D.Double,[])});g(c$,function(a,b,e,c){r(this,java.awt.geom.Rectangle2D.Double,[]);this.setRect(a,b,e,c)},"~N,~N,~N,~N");c(c$,"getX",function(){return this.x});c(c$,"getY",function(){return this.y});c(c$,"getWidth",function(){return this.width}); +"[x="+this.x+",y="+this.y+",w="+this.width+",h="+this.height+"]"});c$=w();v(self.c$);c$=q(function(){this.height=this.width=this.y=this.x=0;k(this,arguments)},java.awt.geom.Rectangle2D,"Double",java.awt.geom.Rectangle2D);g(c$,function(){r(this,java.awt.geom.Rectangle2D.Double,[])});g(c$,function(a,b,e,c){r(this,java.awt.geom.Rectangle2D.Double,[]);this.setRect(a,b,e,c)},"~N,~N,~N,~N");c(c$,"getX",function(){return this.x});c(c$,"getY",function(){return this.y});c(c$,"getWidth",function(){return this.width}); c(c$,"getHeight",function(){return this.height});d(c$,"isEmpty",function(){return 0>=this.width||0>=this.height});c(c$,"setRect",function(a,b,e,c){this.x=a;this.y=b;this.width=e;this.height=c},"~N,~N,~N,~N");c(c$,"setRect",function(a){this.x=a.getX();this.y=a.getY();this.width=a.getWidth();this.height=a.getHeight()},"java.awt.geom.Rectangle2D");c(c$,"outcode",function(a,b){var e=0;0>=this.width?e|=5:athis.x+this.width&&(e|=4);0>=this.height?e|=10:bthis.y+this.height&& (e|=8);return e},"~N,~N");d(c$,"getBounds2D",function(){return new java.awt.geom.Rectangle2D.Double(this.x,this.y,this.width,this.height)});d(c$,"createIntersection",function(a){var b=new java.awt.geom.Rectangle2D.Double;java.awt.geom.Rectangle2D.intersect(this,a,b);return b},"java.awt.geom.Rectangle2D");d(c$,"createUnion",function(a){var b=new java.awt.geom.Rectangle2D.Double;java.awt.geom.Rectangle2D.union(this,a,b);return b},"java.awt.geom.Rectangle2D");d(c$,"toString",function(){return this.getClass().getName()+ -"[x="+this.x+",y="+this.y+",w="+this.width+",h="+this.height+"]"});c$=v();x(c$,"OUT_LEFT",1,"OUT_TOP",2,"OUT_RIGHT",4,"OUT_BOTTOM",8)});p("java.awt.geom");n(["java.awt.Shape"],"java.awt.geom.RectangularShape",["java.lang.InternalError","java.awt.geom.FlatteningPathIterator"],function(){c$=t(java.awt.geom,"RectangularShape",null,[java.awt.Shape,Cloneable]);g(c$,function(){});c(c$,"getMinX",function(){return this.getX()});c(c$,"getMinY",function(){return this.getY()});c(c$,"getMaxX",function(){return this.getX()+ +"[x="+this.x+",y="+this.y+",w="+this.width+",h="+this.height+"]"});c$=w();x(c$,"OUT_LEFT",1,"OUT_TOP",2,"OUT_RIGHT",4,"OUT_BOTTOM",8)});p("java.awt.geom");n(["java.awt.Shape"],"java.awt.geom.RectangularShape",["java.lang.InternalError","java.awt.geom.FlatteningPathIterator"],function(){c$=t(java.awt.geom,"RectangularShape",null,[java.awt.Shape,Cloneable]);g(c$,function(){});c(c$,"getMinX",function(){return this.getX()});c(c$,"getMinY",function(){return this.getY()});c(c$,"getMaxX",function(){return this.getX()+ this.getWidth()});c(c$,"getMaxY",function(){return this.getY()+this.getHeight()});c(c$,"getCenterX",function(){return this.getX()+this.getWidth()/2});c(c$,"getCenterY",function(){return this.getY()+this.getHeight()/2});c(c$,"getFrame",function(){return new java.awt.geom.Rectangle2D.Double(this.getX(),this.getY(),this.getWidth(),this.getHeight())});c(c$,"setFrame",function(a,b){this.setFrame(a.getX(),a.getY(),b.getWidth(),b.getHeight())},"java.awt.geom.Point2D,java.awt.geom.Dimension2D");c(c$,"setFrame", function(a){this.setFrame(a.getX(),a.getY(),a.getWidth(),a.getHeight())},"java.awt.geom.Rectangle2D");c(c$,"setFrameFromDiagonal",function(a,b,e,c){if(ee;e++){var c=a[e];1E-5>Math.abs(c)?a[e]=java.awt.geo s)return a;f=-(s/f);0==d&&(d=f);if(af)return a}else if(a>b){if(0f*d){if(0!=(m=k:1>k)&&(null==f||0!=f[1]+(2*f[2]+3*f[3]*k)*k)){var p=1-k;a[j++]=d*p*p* p+3*m*k*p*p+3*s*k*k*p+g*k*k*k}}return j},"~A,~N,~B,~B,~A,~N,~N,~N,~N");c$.getTag=c(c$,"getTag",function(a,b,c){return a<=b?a=c?a>c?2:1:0},"~N,~N,~N");c$.inwards=c(c$,"inwards",function(a,b,c){switch(a){default:return!1;case -1:return 0<=b||0<=c;case 0:return!0;case 1:return 0>=b||0>=c}},"~N,~N,~N");c(c$,"intersects",function(a,b,c,h){if(0>=c||0>=h)return!1;var f=this.getX1(),d=this.getY1(),m=java.awt.geom.CubicCurve2D.getTag(f,a,a+c),s=java.awt.geom.CubicCurve2D.getTag(d,b,b+h);if(0==m&& -0==s)return!0;var g=this.getX2(),j=this.getY2(),k=java.awt.geom.CubicCurve2D.getTag(g,a,a+c),n=java.awt.geom.CubicCurve2D.getTag(j,b,b+h);if(0==k&&0==n)return!0;var p=this.getCtrlX1(),q=this.getCtrlY1(),r=this.getCtrlX2(),t=this.getCtrlY2(),u=java.awt.geom.CubicCurve2D.getTag(p,a,a+c),v=java.awt.geom.CubicCurve2D.getTag(q,b,b+h),w=java.awt.geom.CubicCurve2D.getTag(r,a,a+c),x=java.awt.geom.CubicCurve2D.getTag(t,b,b+h);if(0>m&&0>k&&0>u&&0>w||0>s&&0>n&&0>v&&0>x||0=m*k;x=0>=s*n;if(0==m&&0==k&&x||0==s&&0==n&&v)return!0;w=N(4,0);u=N(4,0);if(!x)return java.awt.geom.CubicCurve2D.fillEqn(w,0>s?b:b+h,d,q,t,j),m=java.awt.geom.CubicCurve2D.solveCubic(w,u),m=java.awt.geom.CubicCurve2D.evalCubic(u,m,!0,!0,null,f,p,r,g),2==m&&0>=java.awt.geom.CubicCurve2D.getTag(u[0],a,a+c)* -java.awt.geom.CubicCurve2D.getTag(u[1],a,a+c);if(!v)return java.awt.geom.CubicCurve2D.fillEqn(w,0>m?a:a+c,f,p,r,g),m=java.awt.geom.CubicCurve2D.solveCubic(w,u),m=java.awt.geom.CubicCurve2D.evalCubic(u,m,!0,!0,null,d,q,t,j),2==m&&0>=java.awt.geom.CubicCurve2D.getTag(u[0],b,b+h)*java.awt.geom.CubicCurve2D.getTag(u[1],b,b+h);var x=g-f,y=j-d,z=j*f-g*d,v=0==s?m:java.awt.geom.CubicCurve2D.getTag((z+x*(0>s?b:b+h))/y,a,a+c),k=0==n?k:java.awt.geom.CubicCurve2D.getTag((z+x*(0>n?b:b+h))/y,a,a+c);if(0>=v*k)return!0; -v=0>=v*m?s:n;java.awt.geom.CubicCurve2D.fillEqn(w,0>k?a:a+c,f,p,r,g);m=java.awt.geom.CubicCurve2D.solveCubic(w,u);m=java.awt.geom.CubicCurve2D.evalCubic(u,m,!0,!0,null,d,q,t,j);a=H(m+1,0);for(c=0;c=a[0]*a[1]||3<=m&&0>=a[2]*a[3]},"~N,~N,~N,~N");c(c$,"intersects",function(a){return this.intersects(a.getX(),a.getY(),a.getWidth(),a.getHeight())},"java.awt.geom.Rectangle2D");c(c$,"contains",function(a, +0==s)return!0;var g=this.getX2(),j=this.getY2(),k=java.awt.geom.CubicCurve2D.getTag(g,a,a+c),n=java.awt.geom.CubicCurve2D.getTag(j,b,b+h);if(0==k&&0==n)return!0;var p=this.getCtrlX1(),q=this.getCtrlY1(),r=this.getCtrlX2(),t=this.getCtrlY2(),u=java.awt.geom.CubicCurve2D.getTag(p,a,a+c),w=java.awt.geom.CubicCurve2D.getTag(q,b,b+h),v=java.awt.geom.CubicCurve2D.getTag(r,a,a+c),x=java.awt.geom.CubicCurve2D.getTag(t,b,b+h);if(0>m&&0>k&&0>u&&0>v||0>s&&0>n&&0>w&&0>x||0=m*k;x=0>=s*n;if(0==m&&0==k&&x||0==s&&0==n&&w)return!0;v=N(4,0);u=N(4,0);if(!x)return java.awt.geom.CubicCurve2D.fillEqn(v,0>s?b:b+h,d,q,t,j),m=java.awt.geom.CubicCurve2D.solveCubic(v,u),m=java.awt.geom.CubicCurve2D.evalCubic(u,m,!0,!0,null,f,p,r,g),2==m&&0>=java.awt.geom.CubicCurve2D.getTag(u[0],a,a+c)* +java.awt.geom.CubicCurve2D.getTag(u[1],a,a+c);if(!w)return java.awt.geom.CubicCurve2D.fillEqn(v,0>m?a:a+c,f,p,r,g),m=java.awt.geom.CubicCurve2D.solveCubic(v,u),m=java.awt.geom.CubicCurve2D.evalCubic(u,m,!0,!0,null,d,q,t,j),2==m&&0>=java.awt.geom.CubicCurve2D.getTag(u[0],b,b+h)*java.awt.geom.CubicCurve2D.getTag(u[1],b,b+h);var x=g-f,y=j-d,z=j*f-g*d,w=0==s?m:java.awt.geom.CubicCurve2D.getTag((z+x*(0>s?b:b+h))/y,a,a+c),k=0==n?k:java.awt.geom.CubicCurve2D.getTag((z+x*(0>n?b:b+h))/y,a,a+c);if(0>=w*k)return!0; +w=0>=w*m?s:n;java.awt.geom.CubicCurve2D.fillEqn(v,0>k?a:a+c,f,p,r,g);m=java.awt.geom.CubicCurve2D.solveCubic(v,u);m=java.awt.geom.CubicCurve2D.evalCubic(u,m,!0,!0,null,d,q,t,j);a=H(m+1,0);for(c=0;c=a[0]*a[1]||3<=m&&0>=a[2]*a[3]},"~N,~N,~N,~N");c(c$,"intersects",function(a){return this.intersects(a.getX(),a.getY(),a.getWidth(),a.getHeight())},"java.awt.geom.Rectangle2D");c(c$,"contains",function(a, b,c,h){return 0>=c||0>=h||!this.contains(a,b)||!this.contains(a+c,b)||!this.contains(a+c,b+h)||!this.contains(a,b+h)?!1:!(new java.awt.geom.Rectangle2D.Double(a,b,c,h)).intersectsLine(this.getX1(),this.getY1(),this.getX2(),this.getY2())},"~N,~N,~N,~N");c(c$,"contains",function(a){return this.contains(a.getX(),a.getY(),a.getWidth(),a.getHeight())},"java.awt.geom.Rectangle2D");d(c$,"getBounds",function(){return this.getBounds2D().getBounds()});c(c$,"getPathIterator",function(a){return swingjs.api.Interface.getInstance("java.awt.geom.CubicInterator", -!1).set(this,a)},"java.awt.geom.AffineTransform");c(c$,"getPathIterator",function(a,b){return new java.awt.geom.FlatteningPathIterator(this.getPathIterator(a),b)},"java.awt.geom.AffineTransform,~N");c(c$,"clone",function(){try{return u(this,java.awt.geom.CubicCurve2D,"clone",[])}catch(a){if(z(a,CloneNotSupportedException))throw new InternalError;throw a;}});w(self.c$);c$=q(function(){this.y2=this.x2=this.ctrly2=this.ctrlx2=this.ctrly1=this.ctrlx1=this.y1=this.x1=0;k(this,arguments)},java.awt.geom.CubicCurve2D, +!1).set(this,a)},"java.awt.geom.AffineTransform");c(c$,"getPathIterator",function(a,b){return new java.awt.geom.FlatteningPathIterator(this.getPathIterator(a),b)},"java.awt.geom.AffineTransform,~N");c(c$,"clone",function(){try{return u(this,java.awt.geom.CubicCurve2D,"clone",[])}catch(a){if(z(a,CloneNotSupportedException))throw new InternalError;throw a;}});v(self.c$);c$=q(function(){this.y2=this.x2=this.ctrly2=this.ctrlx2=this.ctrly1=this.ctrlx1=this.y1=this.x1=0;k(this,arguments)},java.awt.geom.CubicCurve2D, "Float",java.awt.geom.CubicCurve2D);g(c$,function(){r(this,java.awt.geom.CubicCurve2D.Float,[])});g(c$,function(a,b,c,h,f,d,m,s){r(this,java.awt.geom.CubicCurve2D.Float,[]);this.setCurve(a,b,c,h,f,d,m,s)},"~N,~N,~N,~N,~N,~N,~N,~N");d(c$,"getX1",function(){return this.x1});d(c$,"getY1",function(){return this.y1});d(c$,"getP1",function(){return new java.awt.geom.Point2D.Float(this.x1,this.y1)});d(c$,"getCtrlX1",function(){return this.ctrlx1});d(c$,"getCtrlY1",function(){return this.ctrly1});d(c$,"getCtrlP1", function(){return new java.awt.geom.Point2D.Float(this.ctrlx1,this.ctrly1)});d(c$,"getCtrlX2",function(){return this.ctrlx2});d(c$,"getCtrlY2",function(){return this.ctrly2});d(c$,"getCtrlP2",function(){return new java.awt.geom.Point2D.Float(this.ctrlx2,this.ctrly2)});d(c$,"getX2",function(){return this.x2});d(c$,"getY2",function(){return this.y2});d(c$,"getP2",function(){return new java.awt.geom.Point2D.Float(this.x2,this.y2)});c(c$,"setCurve",function(a,b,c,h,f,d,m,s){this.x1=a;this.y1=b;this.ctrlx1= c;this.ctrly1=h;this.ctrlx2=f;this.ctrly2=d;this.x2=m;this.y2=s},"~N,~N,~N,~N,~N,~N,~N,~N");c(c$,"setCurve",function(a,b,c,h,f,d,m,s){this.x1=a;this.y1=b;this.ctrlx1=c;this.ctrly1=h;this.ctrlx2=f;this.ctrly2=d;this.x2=m;this.y2=s},"~N,~N,~N,~N,~N,~N,~N,~N");d(c$,"getBounds2D",function(){var a=Math.min(Math.min(this.x1,this.x2),Math.min(this.ctrlx1,this.ctrlx2)),b=Math.min(Math.min(this.y1,this.y2),Math.min(this.ctrly1,this.ctrly2)),c=Math.max(Math.max(this.x1,this.x2),Math.max(this.ctrlx1,this.ctrlx2)), -h=Math.max(Math.max(this.y1,this.y2),Math.max(this.ctrly1,this.ctrly2));return new java.awt.geom.Rectangle2D.Float(a,b,c-a,h-b)});c$=v();w(self.c$);c$=q(function(){this.y2=this.x2=this.ctrly2=this.ctrlx2=this.ctrly1=this.ctrlx1=this.y1=this.x1=0;k(this,arguments)},java.awt.geom.CubicCurve2D,"Double",java.awt.geom.CubicCurve2D);g(c$,function(){r(this,java.awt.geom.CubicCurve2D.Double,[])});g(c$,function(a,b,c,h,f,d,m,s){r(this,java.awt.geom.CubicCurve2D.Double,[]);this.setCurve(a,b,c,h,f,d,m,s)},"~N,~N,~N,~N,~N,~N,~N,~N"); +h=Math.max(Math.max(this.y1,this.y2),Math.max(this.ctrly1,this.ctrly2));return new java.awt.geom.Rectangle2D.Float(a,b,c-a,h-b)});c$=w();v(self.c$);c$=q(function(){this.y2=this.x2=this.ctrly2=this.ctrlx2=this.ctrly1=this.ctrlx1=this.y1=this.x1=0;k(this,arguments)},java.awt.geom.CubicCurve2D,"Double",java.awt.geom.CubicCurve2D);g(c$,function(){r(this,java.awt.geom.CubicCurve2D.Double,[])});g(c$,function(a,b,c,h,f,d,m,s){r(this,java.awt.geom.CubicCurve2D.Double,[]);this.setCurve(a,b,c,h,f,d,m,s)},"~N,~N,~N,~N,~N,~N,~N,~N"); d(c$,"getX1",function(){return this.x1});d(c$,"getY1",function(){return this.y1});d(c$,"getP1",function(){return new java.awt.geom.Point2D.Double(this.x1,this.y1)});d(c$,"getCtrlX1",function(){return this.ctrlx1});d(c$,"getCtrlY1",function(){return this.ctrly1});d(c$,"getCtrlP1",function(){return new java.awt.geom.Point2D.Double(this.ctrlx1,this.ctrly1)});d(c$,"getCtrlX2",function(){return this.ctrlx2});d(c$,"getCtrlY2",function(){return this.ctrly2});d(c$,"getCtrlP2",function(){return new java.awt.geom.Point2D.Double(this.ctrlx2, this.ctrly2)});d(c$,"getX2",function(){return this.x2});d(c$,"getY2",function(){return this.y2});d(c$,"getP2",function(){return new java.awt.geom.Point2D.Double(this.x2,this.y2)});c(c$,"setCurve",function(a,b,c,h,f,d,m,s){this.x1=a;this.y1=b;this.ctrlx1=c;this.ctrly1=h;this.ctrlx2=f;this.ctrly2=d;this.x2=m;this.y2=s},"~N,~N,~N,~N,~N,~N,~N,~N");d(c$,"getBounds2D",function(){var a=Math.min(Math.min(this.x1,this.x2),Math.min(this.ctrlx1,this.ctrlx2)),b=Math.min(Math.min(this.y1,this.y2),Math.min(this.ctrly1, -this.ctrly2)),c=Math.max(Math.max(this.x1,this.x2),Math.max(this.ctrlx1,this.ctrlx2)),h=Math.max(Math.max(this.y1,this.y2),Math.max(this.ctrly1,this.ctrly2));return new java.awt.geom.Rectangle2D.Double(a,b,c-a,h-b)});c$=v();x(c$,"BELOW",-2,"LOWEDGE",-1,"INSIDE",0,"HIGHEDGE",1,"ABOVE",2)});p("java.awt.geom");n(["java.awt.geom.PathIterator"],"java.awt.geom.CubicIterator",["java.util.NoSuchElementException"],function(){c$=q(function(){this.affine=this.cubic=null;this.index=0;k(this,arguments)},java.awt.geom, +this.ctrly2)),c=Math.max(Math.max(this.x1,this.x2),Math.max(this.ctrlx1,this.ctrlx2)),h=Math.max(Math.max(this.y1,this.y2),Math.max(this.ctrly1,this.ctrly2));return new java.awt.geom.Rectangle2D.Double(a,b,c-a,h-b)});c$=w();x(c$,"BELOW",-2,"LOWEDGE",-1,"INSIDE",0,"HIGHEDGE",1,"ABOVE",2)});p("java.awt.geom");n(["java.awt.geom.PathIterator"],"java.awt.geom.CubicIterator",["java.util.NoSuchElementException"],function(){c$=q(function(){this.affine=this.cubic=null;this.index=0;k(this,arguments)},java.awt.geom, "CubicIterator",null,java.awt.geom.PathIterator);g(c$,function(){});g(c$,function(a,b){this.set(a,b)},"java.awt.geom.CubicCurve2D,java.awt.geom.AffineTransform");c(c$,"set",function(a,b){this.cubic=a;this.affine=b;return this},"java.awt.geom.CubicCurve2D,java.awt.geom.AffineTransform");d(c$,"getWindingRule",function(){return 1});d(c$,"isDone",function(){return 1m)return 0;m=Math.sqrt(m);0>h&&(m=-m);h=(h+m)/-2;b[d++]=h/c;0!=h&&(b[d++]=f/h)}return d},"~A,~A");c(c$,"contains",function(a,b){var c=this.getX1(),h=this.getY1(),f=this.getCtrlX(),d=this.getCtrlY(),m=this.getX2(),s=this.getY2(),g=c-2*f+m,j=h-2*d+s,m=m-c,s=s-h,k=((a-c)*j-(b-h)*g)/(m*j-s*g);if(0>k||1=f&&a=c&&a=d&&b=h&&b=k:1>k)&&(null==f||0!=f[1]+2*f[2]*k)){var n=1-k;a[g++]=d*n*n+2*m*k*n+s*k*k}}return g},"~A,~N,~B,~B,~A,~N,~N,~N");c$.getTag=c(c$,"getTag",function(a,b,c){return a<=b?a=c?a>c?2:1:0},"~N,~N,~N"); c$.inwards=c(c$,"inwards",function(a,b,c){switch(a){default:return!1;case -1:return 0<=b||0<=c;case 0:return!0;case 1:return 0>=b||0>=c}},"~N,~N,~N");c(c$,"intersects",function(a,b,c,h){if(0>=c||0>=h)return!1;var f=this.getX1(),d=this.getY1(),m=java.awt.geom.QuadCurve2D.getTag(f,a,a+c),s=java.awt.geom.QuadCurve2D.getTag(d,b,b+h);if(0==m&&0==s)return!0;var g=this.getX2(),j=this.getY2(),k=java.awt.geom.QuadCurve2D.getTag(g,a,a+c),n=java.awt.geom.QuadCurve2D.getTag(j,b,b+h);if(0==k&&0==n)return!0;var p= -this.getCtrlX(),q=this.getCtrlY(),r=java.awt.geom.QuadCurve2D.getTag(p,a,a+c),t=java.awt.geom.QuadCurve2D.getTag(q,b,b+h);if(0>m&&0>k&&0>r||0>s&&0>n&&0>t||0=m*k,v=0>=s*n;if(0==m&&0==k&&v||0==s&&0==n&&u)return!0;t=N(3,0);r=N(3,0);if(!v)return java.awt.geom.QuadCurve2D.fillEqn(t, +this.getCtrlX(),q=this.getCtrlY(),r=java.awt.geom.QuadCurve2D.getTag(p,a,a+c),t=java.awt.geom.QuadCurve2D.getTag(q,b,b+h);if(0>m&&0>k&&0>r||0>s&&0>n&&0>t||0=m*k,w=0>=s*n;if(0==m&&0==k&&w||0==s&&0==n&&u)return!0;t=N(3,0);r=N(3,0);if(!w)return java.awt.geom.QuadCurve2D.fillEqn(t, 0>s?b:b+h,d,q,j),2==java.awt.geom.QuadCurve2D.solveQuadratic(t,r)&&2==java.awt.geom.QuadCurve2D.evalQuadratic(r,2,!0,!0,null,f,p,g)&&0>=java.awt.geom.QuadCurve2D.getTag(r[0],a,a+c)*java.awt.geom.QuadCurve2D.getTag(r[1],a,a+c);if(!u)return java.awt.geom.QuadCurve2D.fillEqn(t,0>m?a:a+c,f,p,g),2==java.awt.geom.QuadCurve2D.solveQuadratic(t,r)&&2==java.awt.geom.QuadCurve2D.evalQuadratic(r,2,!0,!0,null,d,q,j)&&0>=java.awt.geom.QuadCurve2D.getTag(r[0],b,b+h)*java.awt.geom.QuadCurve2D.getTag(r[1],b,b+h); -var v=g-f,w=j-d,x=j*f-g*d,u=0==s?m:java.awt.geom.QuadCurve2D.getTag((x+v*(0>s?b:b+h))/w,a,a+c),k=0==n?k:java.awt.geom.QuadCurve2D.getTag((x+v*(0>n?b:b+h))/w,a,a+c);if(0>=u*k)return!0;u=0>=u*m?s:n;java.awt.geom.QuadCurve2D.fillEqn(t,0>k?a:a+c,f,p,g);a=java.awt.geom.QuadCurve2D.solveQuadratic(t,r);java.awt.geom.QuadCurve2D.evalQuadratic(r,a,!0,!0,null,d,q,j);k=java.awt.geom.QuadCurve2D.getTag(r[0],b,b+h);return 0>=u*k},"~N,~N,~N,~N");c(c$,"intersects",function(a){return this.intersects(a.getX(),a.getY(), +var w=g-f,v=j-d,x=j*f-g*d,u=0==s?m:java.awt.geom.QuadCurve2D.getTag((x+w*(0>s?b:b+h))/v,a,a+c),k=0==n?k:java.awt.geom.QuadCurve2D.getTag((x+w*(0>n?b:b+h))/v,a,a+c);if(0>=u*k)return!0;u=0>=u*m?s:n;java.awt.geom.QuadCurve2D.fillEqn(t,0>k?a:a+c,f,p,g);a=java.awt.geom.QuadCurve2D.solveQuadratic(t,r);java.awt.geom.QuadCurve2D.evalQuadratic(r,a,!0,!0,null,d,q,j);k=java.awt.geom.QuadCurve2D.getTag(r[0],b,b+h);return 0>=u*k},"~N,~N,~N,~N");c(c$,"intersects",function(a){return this.intersects(a.getX(),a.getY(), a.getWidth(),a.getHeight())},"java.awt.geom.Rectangle2D");c(c$,"contains",function(a,b,c,h){return 0>=c||0>=h?!1:this.contains(a,b)&&this.contains(a+c,b)&&this.contains(a+c,b+h)&&this.contains(a,b+h)},"~N,~N,~N,~N");c(c$,"contains",function(a){return this.contains(a.getX(),a.getY(),a.getWidth(),a.getHeight())},"java.awt.geom.Rectangle2D");d(c$,"getBounds",function(){return this.getBounds2D().getBounds()});c(c$,"getPathIterator",function(a){return new java.awt.geom.QuadIterator(this,a)},"java.awt.geom.AffineTransform"); -c(c$,"getPathIterator",function(a,b){return new java.awt.geom.FlatteningPathIterator(this.getPathIterator(a),b)},"java.awt.geom.AffineTransform,~N");c(c$,"clone",function(){try{return u(this,java.awt.geom.QuadCurve2D,"clone",[])}catch(a){if(z(a,CloneNotSupportedException))throw new InternalError;throw a;}});w(self.c$);c$=q(function(){this.y2=this.x2=this.ctrly=this.ctrlx=this.y1=this.x1=0;k(this,arguments)},java.awt.geom.QuadCurve2D,"Float",java.awt.geom.QuadCurve2D);g(c$,function(){r(this,java.awt.geom.QuadCurve2D.Float, +c(c$,"getPathIterator",function(a,b){return new java.awt.geom.FlatteningPathIterator(this.getPathIterator(a),b)},"java.awt.geom.AffineTransform,~N");c(c$,"clone",function(){try{return u(this,java.awt.geom.QuadCurve2D,"clone",[])}catch(a){if(z(a,CloneNotSupportedException))throw new InternalError;throw a;}});v(self.c$);c$=q(function(){this.y2=this.x2=this.ctrly=this.ctrlx=this.y1=this.x1=0;k(this,arguments)},java.awt.geom.QuadCurve2D,"Float",java.awt.geom.QuadCurve2D);g(c$,function(){r(this,java.awt.geom.QuadCurve2D.Float, [])});g(c$,function(a,b,c,h,f,d){r(this,java.awt.geom.QuadCurve2D.Float,[]);this.setCurve(a,b,c,h,f,d)},"~N,~N,~N,~N,~N,~N");d(c$,"getX1",function(){return this.x1});d(c$,"getY1",function(){return this.y1});d(c$,"getP1",function(){return new java.awt.geom.Point2D.Float(this.x1,this.y1)});d(c$,"getCtrlX",function(){return this.ctrlx});d(c$,"getCtrlY",function(){return this.ctrly});d(c$,"getCtrlPt",function(){return new java.awt.geom.Point2D.Float(this.ctrlx,this.ctrly)});d(c$,"getX2",function(){return this.x2}); d(c$,"getY2",function(){return this.y2});d(c$,"getP2",function(){return new java.awt.geom.Point2D.Float(this.x2,this.y2)});c(c$,"setCurve",function(a,b,c,h,f,d){this.x1=a;this.y1=b;this.ctrlx=c;this.ctrly=h;this.x2=f;this.y2=d},"~N,~N,~N,~N,~N,~N");c(c$,"setCurve",function(a,b,c,h,f,d){this.x1=a;this.y1=b;this.ctrlx=c;this.ctrly=h;this.x2=f;this.y2=d},"~N,~N,~N,~N,~N,~N");d(c$,"getBounds2D",function(){var a=Math.min(Math.min(this.x1,this.x2),this.ctrlx),b=Math.min(Math.min(this.y1,this.y2),this.ctrly), -c=Math.max(Math.max(this.x1,this.x2),this.ctrlx),h=Math.max(Math.max(this.y1,this.y2),this.ctrly);return new java.awt.geom.Rectangle2D.Float(a,b,c-a,h-b)});c$=v();w(self.c$);c$=q(function(){this.y2=this.x2=this.ctrly=this.ctrlx=this.y1=this.x1=0;k(this,arguments)},java.awt.geom.QuadCurve2D,"Double",java.awt.geom.QuadCurve2D);g(c$,function(){r(this,java.awt.geom.QuadCurve2D.Double,[])});g(c$,function(a,b,c,h,f,d){r(this,java.awt.geom.QuadCurve2D.Double,[]);this.setCurve(a,b,c,h,f,d)},"~N,~N,~N,~N,~N,~N"); +c=Math.max(Math.max(this.x1,this.x2),this.ctrlx),h=Math.max(Math.max(this.y1,this.y2),this.ctrly);return new java.awt.geom.Rectangle2D.Float(a,b,c-a,h-b)});c$=w();v(self.c$);c$=q(function(){this.y2=this.x2=this.ctrly=this.ctrlx=this.y1=this.x1=0;k(this,arguments)},java.awt.geom.QuadCurve2D,"Double",java.awt.geom.QuadCurve2D);g(c$,function(){r(this,java.awt.geom.QuadCurve2D.Double,[])});g(c$,function(a,b,c,h,f,d){r(this,java.awt.geom.QuadCurve2D.Double,[]);this.setCurve(a,b,c,h,f,d)},"~N,~N,~N,~N,~N,~N"); d(c$,"getX1",function(){return this.x1});d(c$,"getY1",function(){return this.y1});d(c$,"getP1",function(){return new java.awt.geom.Point2D.Double(this.x1,this.y1)});d(c$,"getCtrlX",function(){return this.ctrlx});d(c$,"getCtrlY",function(){return this.ctrly});d(c$,"getCtrlPt",function(){return new java.awt.geom.Point2D.Double(this.ctrlx,this.ctrly)});d(c$,"getX2",function(){return this.x2});d(c$,"getY2",function(){return this.y2});d(c$,"getP2",function(){return new java.awt.geom.Point2D.Double(this.x2, -this.y2)});c(c$,"setCurve",function(a,b,c,h,f,d){this.x1=a;this.y1=b;this.ctrlx=c;this.ctrly=h;this.x2=f;this.y2=d},"~N,~N,~N,~N,~N,~N");d(c$,"getBounds2D",function(){var a=Math.min(Math.min(this.x1,this.x2),this.ctrlx),b=Math.min(Math.min(this.y1,this.y2),this.ctrly),c=Math.max(Math.max(this.x1,this.x2),this.ctrlx),h=Math.max(Math.max(this.y1,this.y2),this.ctrly);return new java.awt.geom.Rectangle2D.Double(a,b,c-a,h-b)});c$=v();x(c$,"BELOW",-2,"LOWEDGE",-1,"INSIDE",0,"HIGHEDGE",1,"ABOVE",2)});p("java.awt.geom"); +this.y2)});c(c$,"setCurve",function(a,b,c,h,f,d){this.x1=a;this.y1=b;this.ctrlx=c;this.ctrly=h;this.x2=f;this.y2=d},"~N,~N,~N,~N,~N,~N");d(c$,"getBounds2D",function(){var a=Math.min(Math.min(this.x1,this.x2),this.ctrlx),b=Math.min(Math.min(this.y1,this.y2),this.ctrly),c=Math.max(Math.max(this.x1,this.x2),this.ctrlx),h=Math.max(Math.max(this.y1,this.y2),this.ctrly);return new java.awt.geom.Rectangle2D.Double(a,b,c-a,h-b)});c$=w();x(c$,"BELOW",-2,"LOWEDGE",-1,"INSIDE",0,"HIGHEDGE",1,"ABOVE",2)});p("java.awt.geom"); n(["java.awt.geom.PathIterator"],"java.awt.geom.QuadIterator",["java.util.NoSuchElementException"],function(){c$=q(function(){this.affine=this.quad=null;this.index=0;k(this,arguments)},java.awt.geom,"QuadIterator",null,java.awt.geom.PathIterator);g(c$,function(a,b){this.quad=a;this.affine=b},"java.awt.geom.QuadCurve2D,java.awt.geom.AffineTransform");d(c$,"getWindingRule",function(){return 1});d(c$,"isDone",function(){return 1=f&&g>=f||m<=c&&g<=c||d<=b&&s<=b)return a;if(d>=h&&s>=h)return m=f&&a++):g=f&&a--),a;if(d>b&&dc&&mb&&sc&&gf&&(j+=(f-m)*(s-d)/(g-m));var k=s;gf&&(k+=(f-g)*(d-s)/(m-g));return j<=b&&k<=b?a:j>=h&&k>=h?(m=f&&a++):g=f&&a--),a):-2147483648},"~N,~N,~N,~N,~N,~N,~N,~N,~N");c$.rectCrossingsForQuad=c(c$,"rectCrossingsForQuad",function(a,b,c,h,f,d,m,s,g,j,k,n){if(m>=f&&g>=f&&k>=f||m<=c&&g<=c&&k<=c||d<=b&&s<=b&&j<=b)return a;if(d>=h&&s>=h&&j>=h)return mc&&a++,m=f&&a++):kc&&a--,k=f&&a--),a;if(db&&mc||jb&&kc)return-2147483648;if(52=f&&g>=f&&k>=f&&p>=f||m<=c&&g<=c&&k<=c&&p<=c||d<=b&&s<=b&&j<=b&&n<=b)return a;if(d>=h&&s>=h&&j>=h&&n>=h)return mc&&a++,m=f&&a++):pc&&a--,p=f&&a--),a;if(d>b&&dc&&mb&&nc&&pb?1:0},"~N,~N");c$.signeddiffbits=c(c$,"signeddiffbits",function(a,b){return Double.doubleToLongBits(a)-Double.doubleToLongBits(b)}, +(m<=c&&p>c&&a++,m=f&&a++):pc&&a--,p=f&&a--),a;if(d>b&&dc&&mb&&nc&&pb?1:0},"~N,~N");c$.signeddiffbits=c(c$,"signeddiffbits",function(a,b){return Double.doubleToLongBits(a)-Double.doubleToLongBits(b)}, "~N,~N");c$.diffbits=c(c$,"diffbits",function(a,b){return Math.abs(Double.doubleToLongBits(a)-Double.doubleToLongBits(b))},"~N,~N");c$.prev=c(c$,"prev",function(a){return Double.longBitsToDouble(Double.doubleToLongBits(a)-1)},"~N");c$.next=c(c$,"next",function(a){return Double.longBitsToDouble(Double.doubleToLongBits(a)+1)},"~N");d(c$,"toString",function(){return"Curve["+this.getOrder()+", "+("("+jssun.awt.geom.Curve.round(this.getX0())+", "+jssun.awt.geom.Curve.round(this.getY0())+"), ")+this.controlPointString()+ ("("+jssun.awt.geom.Curve.round(this.getX1())+", "+jssun.awt.geom.Curve.round(this.getY1())+"), ")+(1==this.direction?"D":"U")+"]"});c(c$,"controlPointString",function(){return""});c(c$,"crossingsFor",function(a,b){return b>=this.getYTop()&&b=b)return!1;var c=a.getXLo(),h=a.getYLo(),f=a.getYHi(),d=this.getYTop(),m=this.getYBot();if(d=f)return!1;h=0}m>f?(m=f,f=this.TforY(f)):f=1;for(var s=!1,g=!1;;){var j=this.XforT(h);if(jc)return!0;s=!0}else{if(s)return!0;g=!0}if(h>=f)break;h=this.nextVertical(h,f)}s&&a.record(d,m,this.direction);return!1},"jssun.awt.geom.Crossings");c(c$,"getSubCurve",function(a,b){return this.getSubCurve(a,b,this.direction)},"~N,~N");c(c$,"compareTo",function(a,b){var c=b[0],h=b[1],h=Math.min(Math.min(h,this.getYBot()),a.getYBot());if(h<=b[0])throw System.err.println("this == "+ -this),System.err.println("that == "+a),System.out.println("target range = "+b[0]+"=>"+b[1]),new InternalError("backstepping from "+b[0]+" to "+h);b[1]=h;if(this.getXMax()<=a.getXMin())return this.getXMin()==a.getXMax()?0:-1;if(this.getXMin()>=a.getXMax())return 1;var f=this.TforY(c),d=this.YforT(f);dt)r=t}else{for(u-=r;;){r/=2;t=u+r;if(t<=u)break;this.fairlyClose(this.XforY(t),a.XforY(t))&&(u=t)}break}u+=r}if(u>c)return u=q&&System.out.println("ymin = "+q);f"+b[1]),System.err.println("s y range is "+d+"=>"+r),System.err.println("t y range is "+j+"=>"+v),System.err.println("ymin is "+q),0}if(rb[0]){rb[0]){vv||r>n||Math.min(m,k)>Math.max(q,u)||Math.max(m,k)=r&&A>=g&&this.findIntersect(a,b,c,h+1,f+1,d,m,g,w,x,y,p,q,r,z,B,A)||y>=A&&this.findIntersect(a,b,c,h+1,f+1,d,m,g,w,x,y,z,B,A,t,u,v)||A>=y&&this.findIntersect(a,b,c,h+1,f+1,w,x,y,j,k,n,p,q,r,z,B,A)||n>=A&&v>=y&&this.findIntersect(a,b,c,h+1,f+1,w,x,y,j,k,n,z,B,A,t,u,v))return!0}else if(y>=r&&this.findIntersect(a,b,c,h+1,f,d,m,g,w,x,y,p,q,r,t,u,v)||v>=y&&this.findIntersect(a,b,c,h+1,f,w,x,y,j,k,n,p,q,r,t,u,v))return!0}else if(0.001=g&&this.findIntersect(a,b,c,h,f+1,d,m,g,j,k,n,p,q,r,z,B,A)||n>=A&&this.findIntersect(a,b,c,h,f+1,d,m,g,j,k,n,z,B,A,t,u,v))return!0}else if(c=k-m,n-=g,w=u-q,v-=r,m=q-m,g=r-g,r=w*n-v*c,0!=r&&(r=1/r,w=(w*g-v*m)*r,z=(c*g-n*m)*r,0<=w&&(1>=w&&0<=z&&1>=z)&&(w=d+w*(j-d),z=p+z*(t-p),(0>w||1z||1b[0])))return b[1]=a,!0;return!1},"jssun.awt.geom.Curve,~A,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N"); +this),System.err.println("that == "+a),System.out.println("target range = "+b[0]+"=>"+b[1]),new InternalError("backstepping from "+b[0]+" to "+h);b[1]=h;if(this.getXMax()<=a.getXMin())return this.getXMin()==a.getXMax()?0:-1;if(this.getXMin()>=a.getXMax())return 1;var f=this.TforY(c),d=this.YforT(f);dr)q=r}else{for(t-=q;;){q/=2;r=t+q;if(r<=t)break;this.fairlyClose(this.XforY(r),a.XforY(r))&&(t=r)}break}t+=q}if(t>c)return t=p&&System.out.println("ymin = "+p);f"+b[1]),System.err.println("s y range is "+d+"=>"+q),System.err.println("t y range is "+g+"=>"+u),System.err.println("ymin is "+p),0}if(qb[0]){qb[0]){uw||r>n||Math.min(m,k)>Math.max(q,u)||Math.max(m,k)=r&&A>=g&&this.findIntersect(a,b,c,h+1,f+1,d,m,g,v,x,y,p,q,r,z,B,A)||y>=A&&this.findIntersect(a,b,c,h+1,f+1,d,m,g,v,x,y,z,B,A,t,u,w)||A>=y&&this.findIntersect(a,b,c,h+1,f+1,v,x,y,j,k,n,p,q,r,z,B,A)||n>=A&&w>=y&&this.findIntersect(a,b,c,h+1,f+1,v,x,y,j,k,n,z,B,A,t,u,w))return!0}else if(y>=r&&this.findIntersect(a,b,c,h+1,f,d,m,g,v,x,y,p,q,r,t,u,w)||w>=y&&this.findIntersect(a,b,c,h+1,f,v,x,y,j,k,n,p,q,r,t,u,w))return!0}else if(0.001=g&&this.findIntersect(a,b,c,h,f+1,d,m,g,j,k,n,p,q,r,z,B,A)||n>=A&&this.findIntersect(a,b,c,h,f+1,d,m,g,j,k,n,z,B,A,t,u,w))return!0}else if(c=k-m,n-=g,v=u-q,w-=r,m=q-m,g=r-g,r=v*n-w*c,0!=r&&(r=1/r,v=(v*g-w*m)*r,z=(c*g-n*m)*r,0<=v&&(1>=v&&0<=z&&1>=z)&&(v=d+v*(j-d),z=p+z*(t-p),(0>v||1z||1b[0])))return b[1]=a,!0;return!1},"jssun.awt.geom.Curve,~A,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N"); c(c$,"refineTforY",function(a,b,c){for(b=1;;){var h=(a+b)/2;if(h==a||h==b)return b;var f=this.YforT(h);if(fc)b=h;else return b}},"~N,~N,~N");c(c$,"fairlyClose",function(a,b){return Math.abs(a-b)<1E-10*Math.max(Math.abs(a),Math.abs(b))},"~N,~N");x(c$,"INCREASING",1,"DECREASING",-1,"RECT_INTERSECTS",2147483648,"TMIN",0.001)});p("java.awt.geom");n(["java.lang.RuntimeException"],"java.awt.geom.IllegalPathStateException",null,function(){c$=t(java.awt.geom,"IllegalPathStateException",RuntimeException); g(c$,function(){r(this,java.awt.geom.IllegalPathStateException,[])})});p("java.awt.geom");n(["java.awt.geom.PathIterator"],"java.awt.geom.RectIterator",["java.util.NoSuchElementException"],function(){c$=q(function(){this.h=this.w=this.y=this.x=0;this.affine=null;this.index=0;k(this,arguments)},java.awt.geom,"RectIterator",null,java.awt.geom.PathIterator);g(c$,function(a,b){this.x=a.getX();this.y=a.getY();this.w=a.getWidth();this.h=a.getHeight();this.affine=b;if(0>this.w||0>this.h)this.index=6},"java.awt.geom.Rectangle2D,java.awt.geom.AffineTransform"); d(c$,"getWindingRule",function(){return 1});d(c$,"isDone",function(){return 5c)if(this.containsKey(a))for(var c= this.table,h=0;hd?"-":" ",d=a.lastIndexOf(b),m=a.lastIndexOf(b,d-1),c=a.length;if(0=h&&(h=12)}catch(g){if(z(g,NumberFormatException))m=d,d=c,a.charAt(d-1)==b&&d--;else throw g;}0<=m&&m+1>32});c(c$,"equals",function(a){return j(a,java.awt.geom.Point2D)?this.getX()==a.getX()&&this.getY()==a.getY():u(this,java.awt.geom.Point2D,"equals",[a])},"~O");w(self.c$);c$=q(function(){this.y=this.x=0;k(this,arguments)},java.awt.geom.Point2D,"Float",java.awt.geom.Point2D); -g(c$,function(){r(this,java.awt.geom.Point2D.Float,[])});g(c$,function(a,b){r(this,java.awt.geom.Point2D.Float,[]);this.x=a;this.y=b},"~N,~N");d(c$,"getX",function(){return this.x});d(c$,"getY",function(){return this.y});c(c$,"setLocation",function(a,b){this.x=a;this.y=b},"~N,~N");c(c$,"setLocation",function(a,b){this.x=a;this.y=b},"~N,~N");d(c$,"toString",function(){return"Point2D.Float["+this.x+", "+this.y+"]"});c$=v();w(self.c$);c$=q(function(){this.y=this.x=0;k(this,arguments)},java.awt.geom.Point2D, -"Double",java.awt.geom.Point2D);g(c$,function(){r(this,java.awt.geom.Point2D.Double,[])});g(c$,function(a,b){r(this,java.awt.geom.Point2D.Double,[]);this.x=a;this.y=b},"~N,~N");d(c$,"getX",function(){return this.x});d(c$,"getY",function(){return this.y});c(c$,"setLocation",function(a,b){this.x=a;this.y=b},"~N,~N");d(c$,"toString",function(){return"Point2D.Double["+this.x+", "+this.y+"]"});c$=v()});p("java.awt.geom");n(null,"java.awt.geom.AffineTransform","java.lang.Double $.InternalError JU.AU java.awt.geom.NoninvertibleTransformException $.Path2D $.Point2D java.awt.geom.Point2D.Double".split(" "), -function(){c$=q(function(){this.type=this.state=this.m12=this.m02=this.m11=this.m01=this.m10=this.m00=0;k(this,arguments)},java.awt.geom,"AffineTransform",null,[Cloneable,java.io.Serializable]);g(c$,function(a,b,c,h,f,d,m){switch(arguments.length){case 0:this.m00=this.m11=1;return;case 1:j(a,java.awt.geom.AffineTransform)?(this.m00=a.m00,this.m10=a.m10,this.m01=a.m01,this.m11=a.m11,this.m02=a.m02,this.m12=a.m12,this.state=a.state,this.type=a.type):(this.m00=a[0],this.m10=a[1],this.m01=a[2],this.m11= -a[3],5a&&this.rotate180();else if(0==a)0a?(h=-1,this.state=2,this.type=8):(h=1,this.type=this.state=0)):0==a?(h=0,c=0=Math.abs(a))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+a);return new java.awt.geom.AffineTransform(this.m11/a,-this.m10/a,-this.m01/a,this.m00/a,(this.m01*this.m12-this.m11*this.m02)/a,(this.m10*this.m02-this.m00*this.m12)/a,7);case 6:a=this.m00*this.m11-this.m01*this.m10;if(4.9E-324>=Math.abs(a))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+a);return new java.awt.geom.AffineTransform(this.m11/ -a,-this.m10/a,-this.m01/a,this.m00/a,0,0,6);case 5:if(0==this.m01||0==this.m10)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");return new java.awt.geom.AffineTransform(0,1/this.m01,1/this.m10,0,-this.m12/this.m10,-this.m02/this.m01,5);case 4:if(0==this.m01||0==this.m10)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");return new java.awt.geom.AffineTransform(0,1/this.m01,1/this.m10,0,0,0,4);case 3:if(0==this.m00||0==this.m11)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0"); -return new java.awt.geom.AffineTransform(1/this.m00,0,0,1/this.m11,-this.m02/this.m00,-this.m12/this.m11,3);case 2:if(0==this.m00||0==this.m11)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");return new java.awt.geom.AffineTransform(1/this.m00,0,0,1/this.m11,0,0,2);case 1:return new java.awt.geom.AffineTransform(1,0,0,1,-this.m02,-this.m12,1);case 0:return new java.awt.geom.AffineTransform}});c(c$,"invert",function(){var a,b,c,h,d,l,m;switch(this.state){default:this.stateError(); -case 7:a=this.m00;b=this.m01;c=this.m02;h=this.m10;d=this.m11;l=this.m12;m=a*d-b*h;if(4.9E-324>=Math.abs(m))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+m);this.m00=d/m;this.m10=-h/m;this.m01=-b/m;this.m11=a/m;this.m02=(b*l-d*c)/m;this.m12=(h*c-a*l)/m;break;case 6:a=this.m00;b=this.m01;h=this.m10;d=this.m11;m=a*d-b*h;if(4.9E-324>=Math.abs(m))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+m);this.m00=d/m;this.m10=-h/m;this.m01=-b/m;this.m11=a/ -m;break;case 5:b=this.m01;c=this.m02;h=this.m10;l=this.m12;if(0==b||0==h)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");this.m10=1/b;this.m01=1/h;this.m02=-l/h;this.m12=-c/b;break;case 4:b=this.m01;h=this.m10;if(0==b||0==h)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");this.m10=1/b;this.m01=1/h;break;case 3:a=this.m00;c=this.m02;d=this.m11;l=this.m12;if(0==a||0==d)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0"); -this.m00=1/a;this.m11=1/d;this.m02=-c/a;this.m12=-l/d;break;case 2:a=this.m00;d=this.m11;if(0==a||0==d)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");this.m00=1/a;this.m11=1/d;break;case 1:this.m02=-this.m02,this.m12=-this.m12;case 0:}});c(c$,"transform",function(a,b){null==b&&(b=j(a,java.awt.geom.Point2D.Double)?new java.awt.geom.Point2D.Double:new java.awt.geom.Point2D.Float);var c=a.getX(),h=a.getY();switch(this.state){default:this.stateError();case 7:return b.setLocation(c* -this.m00+h*this.m01+this.m02,c*this.m10+h*this.m11+this.m12),b;case 6:return b.setLocation(c*this.m00+h*this.m01,c*this.m10+h*this.m11),b;case 5:return b.setLocation(h*this.m01+this.m02,c*this.m10+this.m12),b;case 4:return b.setLocation(h*this.m01,c*this.m10),b;case 3:return b.setLocation(c*this.m00+this.m02,h*this.m11+this.m12),b;case 2:return b.setLocation(c*this.m00,h*this.m11),b;case 1:return b.setLocation(c+this.m02,h+this.m12),b;case 0:return b.setLocation(c,h),b}},"java.awt.geom.Point2D,java.awt.geom.Point2D"); -c(c$,"transform",function(a,b,c,h,d){if(0!=d)if(JU.AU.isAD(a)){var l,m,g,j,k,n;c===a&&(h>b&&h=Math.abs(d))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+d);b.setLocation((c*this.m11-h*this.m01)/d,(h*this.m00-c*this.m10)/d);return b;case 5:c-=this.m02,h-=this.m12; -case 4:if(0==this.m01||0==this.m10)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");b.setLocation(h/this.m10,c/this.m01);return b;case 3:c-=this.m02,h-=this.m12;case 2:if(0==this.m00||0==this.m11)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");b.setLocation(c/this.m00,h/this.m11);return b;case 1:return b.setLocation(c-this.m02,h-this.m12),b;case 0:return b.setLocation(c,h),b}},"java.awt.geom.Point2D,java.awt.geom.Point2D");c(c$,"inverseTransform", -function(a,b,c,h,d){var l,m,g,j,k,n,p;c===a&&(h>b&&h=Math.abs(p))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+p);for(;0<=--d;){var q=a[b++]-g,r=a[b++]-n;c[h++]=(q*k-r*m)/p;c[h++]=(r*l-q*j)/p}break;case 6:l=this.m00;m=this.m01;j=this.m10;k=this.m11;p=l*k-m*j;if(4.9E-324>=Math.abs(p))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+ -p);for(;0<=--d;)q=a[b++],r=a[b++],c[h++]=(q*k-r*m)/p,c[h++]=(r*l-q*j)/p;break;case 5:m=this.m01;g=this.m02;j=this.m10;n=this.m12;if(0==m||0==j)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");for(;0<=--d;)q=a[b++]-g,c[h++]=(a[b++]-n)/j,c[h++]=q/m;break;case 4:m=this.m01;j=this.m10;if(0==m||0==j)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");for(;0<=--d;)q=a[b++],c[h++]=a[b++]/j,c[h++]=q/m;break;case 3:l=this.m00;g=this.m02;k=this.m11;n=this.m12; -if(0==l||0==k)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");for(;0<=--d;)c[h++]=(a[b++]-g)/l,c[h++]=(a[b++]-n)/k;break;case 2:l=this.m00;k=this.m11;if(0==l||0==k)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");for(;0<=--d;)c[h++]=a[b++]/l,c[h++]=a[b++]/k;break;case 1:g=this.m02;for(n=this.m12;0<=--d;)c[h++]=a[b++]-g,c[h++]=a[b++]-n;break;case 0:(a!==c||b!=h)&&System.arraycopy(a,b,c,h,2*d)}},"~A,~N,~A,~N,~N");c(c$,"deltaTransform",function(a, -b){null==b&&(b=j(a,java.awt.geom.Point2D.Double)?new java.awt.geom.Point2D.Double:new java.awt.geom.Point2D.Float);var c=a.getX(),h=a.getY();switch(this.state){default:this.stateError();case 7:case 6:return b.setLocation(c*this.m00+h*this.m01,c*this.m10+h*this.m11),b;case 5:case 4:return b.setLocation(h*this.m01,c*this.m10),b;case 3:case 2:return b.setLocation(c*this.m00,h*this.m11),b;case 1:case 0:return b.setLocation(c,h),b}},"java.awt.geom.Point2D,java.awt.geom.Point2D");c(c$,"deltaTransform", -function(a,b,c,h,d){var l,m,g,j;c===a&&(h>b&&h>32});d(c$,"equals",function(a){return!j(a,java.awt.geom.AffineTransform)?!1:this.m00==a.m00&&this.m01==a.m01&&this.m02==a.m02&&this.m10==a.m10&&this.m11==a.m11&&this.m12==a.m12},"~O");x(c$,"TYPE_UNKNOWN",-1,"TYPE_IDENTITY",0,"TYPE_TRANSLATION",1,"TYPE_UNIFORM_SCALE",2,"TYPE_GENERAL_SCALE",4,"TYPE_MASK_SCALE",6,"TYPE_FLIP",64,"TYPE_QUADRANT_ROTATION",8,"TYPE_GENERAL_ROTATION",16,"TYPE_MASK_ROTATION",24,"TYPE_GENERAL_TRANSFORM",32,"APPLY_IDENTITY", -0,"APPLY_TRANSLATE",1,"APPLY_SCALE",2,"APPLY_SHEAR",4,"HI_SHIFT",3,"HI_IDENTITY",0,"HI_TRANSLATE",8,"HI_SCALE",16,"HI_SHEAR",32,"rot90conversion",H(-1,[4,5,4,5,2,3,6,7]))});p("java.awt.geom");n(["java.lang.Exception"],"java.awt.geom.NoninvertibleTransformException",null,function(){c$=t(java.awt.geom,"NoninvertibleTransformException",Exception)});p("java.awt.geom");n(["java.awt.Shape","java.awt.geom.PathIterator"],"java.awt.geom.Path2D","java.lang.Double $.IllegalArgumentException java.util.Arrays java.awt.geom.FlatteningPathIterator $.IllegalPathStateException $.Point2D $.Rectangle2D jssun.awt.geom.Curve".split(" "), -function(){c$=q(function(){this.pointTypes=null;this.windingRule=this.numCoords=this.numTypes=0;k(this,arguments)},java.awt.geom,"Path2D",null,[java.awt.Shape,Cloneable]);g(c$,function(){});g(c$,function(a,b){this.setWindingRule(a);this.pointTypes=L(b,0)},"~N,~N");c(c$,"closePath",function(){if(0==this.numTypes||4!=this.pointTypes[this.numTypes-1])this.needRoom(!0,0),this.pointTypes[this.numTypes++]=4});c(c$,"append",function(a,b){this.append(a.getPathIterator(null),b)},"java.awt.Shape,~B");c(c$, -"getWindingRule",function(){return this.windingRule});c(c$,"setWindingRule",function(a){if(0!=a&&1!=a)throw new IllegalArgumentException("winding rule must be WIND_EVEN_ODD or WIND_NON_ZERO");this.windingRule=a},"~N");c(c$,"getCurrentPoint",function(){var a=this.numCoords;if(1>this.numTypes||1>a)return null;if(4==this.pointTypes[this.numTypes-1]){var b=this.numTypes-2;a:for(;0this.numTypes)return!1;var c=1==this.windingRule?-1:1;return 0!=(this.pointCrossings(a,b)&c)}return!1},"~N,~N");c(c$,"contains",function(a){return this.contains(a.getX(),a.getY())},"java.awt.geom.Point2D");c$.contains=c(c$,"contains",function(a,b,c,h,d){if(java.lang.Double.isNaN(b+h)||java.lang.Double.isNaN(c+d)||0>=h||0>=d)return!1;var l=1==a.getWindingRule()?-1:2;a=jssun.awt.geom.Curve.rectCrossingsForPath(a, -b,c,b+h,c+d);return-2147483648!=a&&0!=(a&l)},"java.awt.geom.PathIterator,~N,~N,~N,~N");c$.contains=c(c$,"contains",function(a,b){return java.awt.geom.Path2D.contains(a,b.getX(),b.getY(),b.getWidth(),b.getHeight())},"java.awt.geom.PathIterator,java.awt.geom.Rectangle2D");c(c$,"contains",function(a,b,c,h){if(java.lang.Double.isNaN(a+c)||java.lang.Double.isNaN(b+h)||0>=c||0>=h)return!1;var d=1==this.windingRule?-1:2;a=this.rectCrossings(a,b,a+c,b+h);return-2147483648!=a&&0!=(a&d)},"~N,~N,~N,~N");c(c$, -"contains",function(a){return this.contains(a.getX(),a.getY(),a.getWidth(),a.getHeight())},"java.awt.geom.Rectangle2D");c$.intersects=c(c$,"intersects",function(a,b,c,h,d){if(java.lang.Double.isNaN(b+h)||java.lang.Double.isNaN(c+d)||0>=h||0>=d)return!1;var l=1==a.getWindingRule()?-1:2;a=jssun.awt.geom.Curve.rectCrossingsForPath(a,b,c,b+h,c+d);return-2147483648==a||0!=(a&l)},"java.awt.geom.PathIterator,~N,~N,~N,~N");c$.intersects=c(c$,"intersects",function(a,b){return java.awt.geom.Path2D.intersects(a, -b.getX(),b.getY(),b.getWidth(),b.getHeight())},"java.awt.geom.PathIterator,java.awt.geom.Rectangle2D");c(c$,"intersects",function(a,b,c,h){if(java.lang.Double.isNaN(a+c)||java.lang.Double.isNaN(b+h)||0>=c||0>=h)return!1;var d=1==this.windingRule?-1:2;a=this.rectCrossings(a,b,a+c,b+h);return-2147483648==a||0!=(a&d)},"~N,~N,~N,~N");c(c$,"intersects",function(a){return this.intersects(a.getX(),a.getY(),a.getWidth(),a.getHeight())},"java.awt.geom.Rectangle2D");d(c$,"getPathIterator",function(a,b){return new java.awt.geom.FlatteningPathIterator(this.getPathIterator(a), -b)},"java.awt.geom.AffineTransform,~N");w(self.c$);c$=q(function(){this.pointIdx=this.typeIdx=0;this.path=null;k(this,arguments)},java.awt.geom.Path2D,"Iterator",null,java.awt.geom.PathIterator);g(c$,function(a){this.path=a},"java.awt.geom.Path2D");d(c$,"getWindingRule",function(){return this.path.getWindingRule()});d(c$,"isDone",function(){return this.typeIdx>=this.path.numTypes});d(c$,"next",function(){var a=this.path.pointTypes[this.typeIdx++];this.pointIdx+=java.awt.geom.Path2D.Iterator.curvecoords[a]}); -x(c$,"curvecoords",H(-1,[2,2,4,6,0]));c$=v();w(self.c$);c$=q(function(){this.floatCoords=null;k(this,arguments)},java.awt.geom.Path2D,"Float",java.awt.geom.Path2D);g(c$,function(){this.construct(1,20)});g(c$,function(a){this.construct(a,20)},"~N");g(c$,function(a,b){r(this,java.awt.geom.Path2D.Float,[]);this.setWindingRule(a);this.pointTypes=L(b,0);this.floatCoords=M(2*b,0)},"~N,~N");g(c$,function(a){this.construct(a,null)},"java.awt.Shape");g(c$,function(a,b){r(this,java.awt.geom.Path2D.Float,[]); -this.setPath(a,b)},"java.awt.Shape,java.awt.geom.AffineTransform");c(c$,"setPath",function(a,b){if(j(a,java.awt.geom.Path2D)){var c=a;this.setWindingRule(c.windingRule);this.numTypes=c.numTypes;this.pointTypes=java.util.Arrays.copyOf(c.pointTypes,c.pointTypes.length);this.numCoords=c.numCoords;this.floatCoords=c.cloneCoordsFloat(b)}else c=a.getPathIterator(b),this.setWindingRule(c.getWindingRule()),this.pointTypes=L(20,0),this.floatCoords=M(40,0),this.append(c,!1)},"java.awt.Shape,java.awt.geom.AffineTransform"); -c(c$,"cloneCoordsFloat",function(a){var b;null==a?b=java.util.Arrays.copyOf(this.floatCoords,this.floatCoords.length):(b=M(this.floatCoords.length,0),a.transform(this.floatCoords,0,b,0,A(this.numCoords/2)));return b},"java.awt.geom.AffineTransform");d(c$,"cloneCoordsDouble",function(a){var b=N(this.floatCoords.length,0);if(null==a)for(a=0;athis.numTypes||1>this.numCoords){this.moveTo(c[0],c[1]);break}if(4!=this.pointTypes[this.numTypes-1]&&this.floatCoords[this.numCoords-2]==c[0]&&this.floatCoords[this.numCoords-1]==c[1])break;case 1:this.lineTo(c[0],c[1]);break;case 2:this.quadTo(c[0],c[1],c[2],c[3]);break;case 3:this.curveTo(c[0],c[1], -c[2],c[3],c[4],c[5]);break;case 4:this.closePath()}a.next();b=!1}},"java.awt.geom.PathIterator,~B");d(c$,"getPoint",function(a){return new java.awt.geom.Point2D.Float(this.floatCoords[a],this.floatCoords[a+1])},"~N");d(c$,"needRoom",function(a,b){if(a&&0==this.numTypes)throw new java.awt.geom.IllegalPathStateException("missing initial moveto in path definition");var c=this.pointTypes.length;if(this.numTypes>=c){var h=c;500c&&(h=c,1E3c&&(c=m);l>h&&(h=l)}}else a=b=c=h=0;return new java.awt.geom.Rectangle2D.Float(a,b,c-a,h-b)});c(c$,"getPathIterator",function(a){return null==a?new java.awt.geom.Path2D.Float.CopyIterator(this):new java.awt.geom.Path2D.Float.TxIterator(this,a)},"java.awt.geom.AffineTransform");d(c$,"clone",function(){return new java.awt.geom.Path2D.Float(this)});w(self.c$);c$=q(function(){this.floatCoords=null;k(this,arguments)},java.awt.geom.Path2D.Float,"CopyIterator",java.awt.geom.Path2D.Iterator); -g(c$,function(a){r(this,java.awt.geom.Path2D.Float.CopyIterator,[a]);this.floatCoords=a.floatCoords},"java.awt.geom.Path2D.Float");c(c$,"currentSegment",function(a){var b=this.path.pointTypes[this.typeIdx],c=java.awt.geom.Path2D.Iterator.curvecoords[b];if(0this.numTypes||1>this.numCoords){this.moveTo(c[0],c[1]);break}if(4!=this.pointTypes[this.numTypes- -1]&&this.doubleCoords[this.numCoords-2]==c[0]&&this.doubleCoords[this.numCoords-1]==c[1])break;case 1:this.lineTo(c[0],c[1]);break;case 2:this.quadTo(c[0],c[1],c[2],c[3]);break;case 3:this.curveTo(c[0],c[1],c[2],c[3],c[4],c[5]);break;case 4:this.closePath()}a.next();b=!1}},"java.awt.geom.PathIterator,~B");d(c$,"getPoint",function(a){return new java.awt.geom.Point2D.Double(this.doubleCoords[a],this.doubleCoords[a+1])},"~N");d(c$,"needRoom",function(a,b){if(a&&0==this.numTypes)throw new java.awt.geom.IllegalPathStateException("missing initial moveto in path definition"); -var c=this.pointTypes.length;if(this.numTypes>=c){var h=c;500c&&(h=c,1E3c&&(c=m);l>h&&(h=l)}}else a=b=c=h=0;return new java.awt.geom.Rectangle2D.Double(a,b,c-a,h-b)});c(c$,"getPathIterator",function(a){return null==a?new java.awt.geom.Path2D.Double.CopyIterator(this):new java.awt.geom.Path2D.Double.TxIterator(this,a)},"java.awt.geom.AffineTransform");d(c$,"clone", -function(){return new java.awt.geom.Path2D.Double(this)});w(self.c$);c$=q(function(){this.doubleCoords=null;k(this,arguments)},java.awt.geom.Path2D.Double,"CopyIterator",java.awt.geom.Path2D.Iterator);g(c$,function(a){r(this,java.awt.geom.Path2D.Double.CopyIterator,[a]);this.doubleCoords=a.doubleCoords},"java.awt.geom.Path2D.Double");c(c$,"currentSegment",function(a){var b=this.path.pointTypes[this.typeIdx],c=java.awt.geom.Path2D.Iterator.curvecoords[b];if(0c)throw new IllegalArgumentException("columns less than zero.");this.columns=c;null==a&&(a=this.createDefaultModel());this.setDocument(a);null!=b&&this.setText(b)},"javax.swing.text.Document,~S,~N");d(c$,"getUIClassID",function(){return"TextFieldUI"});c(c$,"setDocument",function(a){null!=a&&a.putProperty("filterNewlines",Boolean.TRUE);u(this,javax.swing.JTextField,"setDocument",[a])},"javax.swing.text.Document");d(c$,"isValidateRoot",function(){var a= -this.getParent();return j(a,javax.swing.JViewport)?!1:!0});c(c$,"getHorizontalAlignment",function(){return this.horizontalAlignment});c(c$,"setHorizontalAlignment",function(a){if(a!=this.horizontalAlignment){var b=this.horizontalAlignment;if(2==a||0==a||4==a||10==a||11==a)this.horizontalAlignment=a;else throw new IllegalArgumentException("horizontalAlignment");this.firePropertyChangeInt("horizontalAlignment",b,this.horizontalAlignment);this.invalidate();this.repaint()}},"~N");c(c$,"createDefaultModel", -function(){return swingjs.JSToolkit.getPlainDocument(this)});c(c$,"getColumns",function(){return this.columns});c(c$,"setColumns",function(a){var b=this.columns;if(0>a)throw new IllegalArgumentException("columns less than zero.");a!=b&&(this.columns=a,this.invalidate())},"~N");c(c$,"getColumnWidth",function(){0==this.columnWidth&&(this.columnWidth=this.getFontMetrics(this.getFont()).charWidth("m"));return this.columnWidth});d(c$,"getPreferredSize",function(){return this.getPrefSizeJTF()});c(c$,"getPrefSizeJTF", -function(){var a=this.getPrefSizeJComp();if(0!=this.columns){var b=this.getInsets();a.width=this.columns*this.getColumnWidth()+b.left+b.right}return a});c(c$,"setFont",function(a){u(this,javax.swing.JTextField,"setFont",[a]);this.columnWidth=0},"java.awt.Font");c(c$,"addActionListener",function(a){this.listenerList.add(java.awt.event.ActionListener,a)},"java.awt.event.ActionListener");c(c$,"removeActionListener",function(a){null!=a&&this.getAction()===a?this.setAction(null):this.listenerList.remove(java.awt.event.ActionListener, -a)},"java.awt.event.ActionListener");c(c$,"getActionListeners",function(){return this.listenerList.getListeners(java.awt.event.ActionListener)});c(c$,"fireActionPerformed",function(){var a=this.listenerList.getListenerList(),b=0,c=java.awt.EventQueue.getCurrentEvent();j(c,java.awt.event.InputEvent)?b=c.getModifiers():j(c,java.awt.event.ActionEvent)&&(b=c.getModifiers());b=new java.awt.event.ActionEvent(this,1001,null!=this.command?this.command:this.getText(),java.awt.EventQueue.getMostRecentEventTime(), -b);for(c=a.length-2;0<=c;c-=2)a[c]===java.awt.event.ActionListener&&a[c+1].actionPerformed(b)});c(c$,"setActionCommand",function(a){this.command=a},"~S");c(c$,"setAction",function(a){var b=this.getAction();if(null==this.$action||!this.$action.equals(a))this.$action=a,null!=b&&(this.removeActionListener(b),b.removePropertyChangeListener(this.actionPropertyChangeListener),this.actionPropertyChangeListener=null),this.configurePropertiesFromAction(this.$action),null!=this.$action&&(this.isListener(java.awt.event.ActionListener, -this.$action)||this.addActionListener(this.$action),this.actionPropertyChangeListener=this.createActionPropertyChangeListener(this.$action),this.$action.addPropertyChangeListener(this.actionPropertyChangeListener)),this.firePropertyChangeObject("action",b,this.$action)},"javax.swing.Action");c(c$,"isListener",function(a,b){for(var c=!1,h=this.listenerList.getListenerList(),d=h.length-2;0<=d;d-=2)h[d]===a&&h[d+1]===b&&(c=!0);return c},"Class,java.awt.event.ActionListener");c(c$,"getAction",function(){return this.$action}); +function(a,b){var c=new java.awt.Font(this.name,a,A(b+0.5));c.pointSize=b;return c},"~N,~N");c(c$,"deriveFont",function(a){var b=new java.awt.Font(this.name,this.style,A(a+0.5));b.pointSize=a;return b},"~N");c(c$,"deriveFont",function(a){return new java.awt.Font(this.name,a,this.size)},"~N");c(c$,"hasUniformLineMetrics",function(){return!1});d(c$,"finalize",function(){});x(c$,"DIALOG","Dialog","DIALOG_INPUT","DialogInput","SANS_SERIF","SansSerif","SERIF","Serif","MONOSPACED","Monospaced","PLAIN", +0,"BOLD",1,"ITALIC",2,"ROMAN_BASELINE",0,"CENTER_BASELINE",1,"HANGING_BASELINE",2,"TRUETYPE_FONT",0,"TYPE1_FONT",1,"LAYOUT_LEFT_TO_RIGHT",0,"LAYOUT_RIGHT_TO_LEFT",1,"LAYOUT_NO_START_CONTEXT",2,"LAYOUT_NO_LIMIT_CONTEXT",4)});p("java.awt.font");n(["java.text.AttributedCharacterIterator","java.lang.Boolean","$.Float","java.util.HashMap"],"java.awt.font.TextAttribute",["java.io.InvalidObjectException"],function(){c$=t(java.awt.font,"TextAttribute",java.text.AttributedCharacterIterator.Attribute);g(c$, +function(a){r(this,java.awt.font.TextAttribute,[a]);this.getClass()===java.awt.font.TextAttribute&&java.awt.font.TextAttribute.$instanceMap.put(a,this)},"~S");d(c$,"readResolve",function(){if(this.getClass()!==java.awt.font.TextAttribute)throw new java.io.InvalidObjectException("subclass didn't correctly implement readResolve");var a=java.awt.font.TextAttribute.$instanceMap.get(this.getName());if(null!=a)return a;throw new java.io.InvalidObjectException("unknown attribute name");});c$.$instanceMap= +c$.prototype.$instanceMap=new java.util.HashMap(29);c$.FAMILY=c$.prototype.FAMILY=new java.awt.font.TextAttribute("family");c$.WEIGHT=c$.prototype.WEIGHT=new java.awt.font.TextAttribute("weight");c$.WEIGHT_EXTRA_LIGHT=c$.prototype.WEIGHT_EXTRA_LIGHT=Float.$valueOf(0.5);c$.WEIGHT_LIGHT=c$.prototype.WEIGHT_LIGHT=Float.$valueOf(0.75);c$.WEIGHT_DEMILIGHT=c$.prototype.WEIGHT_DEMILIGHT=Float.$valueOf(0.875);c$.WEIGHT_REGULAR=c$.prototype.WEIGHT_REGULAR=Float.$valueOf(1);c$.WEIGHT_SEMIBOLD=c$.prototype.WEIGHT_SEMIBOLD= +Float.$valueOf(1.25);c$.WEIGHT_MEDIUM=c$.prototype.WEIGHT_MEDIUM=Float.$valueOf(1.5);c$.WEIGHT_DEMIBOLD=c$.prototype.WEIGHT_DEMIBOLD=Float.$valueOf(1.75);c$.WEIGHT_BOLD=c$.prototype.WEIGHT_BOLD=Float.$valueOf(2);c$.WEIGHT_HEAVY=c$.prototype.WEIGHT_HEAVY=Float.$valueOf(2.25);c$.WEIGHT_EXTRABOLD=c$.prototype.WEIGHT_EXTRABOLD=Float.$valueOf(2.5);c$.WEIGHT_ULTRABOLD=c$.prototype.WEIGHT_ULTRABOLD=Float.$valueOf(2.75);c$.WIDTH=c$.prototype.WIDTH=new java.awt.font.TextAttribute("width");c$.WIDTH_CONDENSED= +c$.prototype.WIDTH_CONDENSED=Float.$valueOf(0.75);c$.WIDTH_SEMI_CONDENSED=c$.prototype.WIDTH_SEMI_CONDENSED=Float.$valueOf(0.875);c$.WIDTH_REGULAR=c$.prototype.WIDTH_REGULAR=Float.$valueOf(1);c$.WIDTH_SEMI_EXTENDED=c$.prototype.WIDTH_SEMI_EXTENDED=Float.$valueOf(1.25);c$.WIDTH_EXTENDED=c$.prototype.WIDTH_EXTENDED=Float.$valueOf(1.5);c$.POSTURE=c$.prototype.POSTURE=new java.awt.font.TextAttribute("posture");c$.POSTURE_REGULAR=c$.prototype.POSTURE_REGULAR=Float.$valueOf(0);c$.POSTURE_OBLIQUE=c$.prototype.POSTURE_OBLIQUE= +Float.$valueOf(0.2);c$.SIZE=c$.prototype.SIZE=new java.awt.font.TextAttribute("size");c$.TRANSFORM=c$.prototype.TRANSFORM=new java.awt.font.TextAttribute("transform");c$.SUPERSCRIPT=c$.prototype.SUPERSCRIPT=new java.awt.font.TextAttribute("superscript");c$.SUPERSCRIPT_SUPER=c$.prototype.SUPERSCRIPT_SUPER=Integer.$valueOf(1);c$.SUPERSCRIPT_SUB=c$.prototype.SUPERSCRIPT_SUB=Integer.$valueOf(-1);c$.FONT=c$.prototype.FONT=new java.awt.font.TextAttribute("font");c$.CHAR_REPLACEMENT=c$.prototype.CHAR_REPLACEMENT= +new java.awt.font.TextAttribute("char_replacement");c$.FOREGROUND=c$.prototype.FOREGROUND=new java.awt.font.TextAttribute("foreground");c$.BACKGROUND=c$.prototype.BACKGROUND=new java.awt.font.TextAttribute("background");c$.UNDERLINE=c$.prototype.UNDERLINE=new java.awt.font.TextAttribute("underline");c$.UNDERLINE_ON=c$.prototype.UNDERLINE_ON=Integer.$valueOf(0);c$.STRIKETHROUGH=c$.prototype.STRIKETHROUGH=new java.awt.font.TextAttribute("strikethrough");c$.STRIKETHROUGH_ON=c$.prototype.STRIKETHROUGH_ON= +Boolean.TRUE;c$.RUN_DIRECTION=c$.prototype.RUN_DIRECTION=new java.awt.font.TextAttribute("run_direction");c$.RUN_DIRECTION_LTR=c$.prototype.RUN_DIRECTION_LTR=Boolean.FALSE;c$.RUN_DIRECTION_RTL=c$.prototype.RUN_DIRECTION_RTL=Boolean.TRUE;c$.BIDI_EMBEDDING=c$.prototype.BIDI_EMBEDDING=new java.awt.font.TextAttribute("bidi_embedding");c$.JUSTIFICATION=c$.prototype.JUSTIFICATION=new java.awt.font.TextAttribute("justification");c$.JUSTIFICATION_FULL=c$.prototype.JUSTIFICATION_FULL=Float.$valueOf(1);c$.JUSTIFICATION_NONE= +c$.prototype.JUSTIFICATION_NONE=Float.$valueOf(0);c$.INPUT_METHOD_HIGHLIGHT=c$.prototype.INPUT_METHOD_HIGHLIGHT=new java.awt.font.TextAttribute("input method highlight");c$.INPUT_METHOD_UNDERLINE=c$.prototype.INPUT_METHOD_UNDERLINE=new java.awt.font.TextAttribute("input method underline");c$.UNDERLINE_LOW_ONE_PIXEL=c$.prototype.UNDERLINE_LOW_ONE_PIXEL=Integer.$valueOf(1);c$.UNDERLINE_LOW_TWO_PIXEL=c$.prototype.UNDERLINE_LOW_TWO_PIXEL=Integer.$valueOf(2);c$.UNDERLINE_LOW_DOTTED=c$.prototype.UNDERLINE_LOW_DOTTED= +Integer.$valueOf(3);c$.UNDERLINE_LOW_GRAY=c$.prototype.UNDERLINE_LOW_GRAY=Integer.$valueOf(4);c$.UNDERLINE_LOW_DASHED=c$.prototype.UNDERLINE_LOW_DASHED=Integer.$valueOf(5);c$.SWAP_COLORS=c$.prototype.SWAP_COLORS=new java.awt.font.TextAttribute("swap_colors");c$.SWAP_COLORS_ON=c$.prototype.SWAP_COLORS_ON=Boolean.TRUE;c$.NUMERIC_SHAPING=c$.prototype.NUMERIC_SHAPING=new java.awt.font.TextAttribute("numeric_shaping");c$.KERNING=c$.prototype.KERNING=new java.awt.font.TextAttribute("kerning");c$.KERNING_ON= +c$.prototype.KERNING_ON=Integer.$valueOf(1);c$.LIGATURES=c$.prototype.LIGATURES=new java.awt.font.TextAttribute("ligatures");c$.LIGATURES_ON=c$.prototype.LIGATURES_ON=Integer.$valueOf(1);c$.TRACKING=c$.prototype.TRACKING=new java.awt.font.TextAttribute("tracking");c$.TRACKING_TIGHT=c$.prototype.TRACKING_TIGHT=Float.$valueOf(-0.04);c$.TRACKING_LOOSE=c$.prototype.TRACKING_LOOSE=Float.$valueOf(0.04)});p("java.text");n(["java.text.CharacterIterator","java.io.InvalidObjectException","java.util.HashMap"], +"java.text.AttributedCharacterIterator",null,function(){y(java.text,"AttributedCharacterIterator",java.text.CharacterIterator);v(self.c$);c$=q(function(){this.name=null;k(this,arguments)},java.text.AttributedCharacterIterator,"Attribute",null,java.io.Serializable);g(c$,function(a){this.name=a;this.getClass()===java.text.AttributedCharacterIterator.Attribute&&java.text.AttributedCharacterIterator.Attribute.instanceMap.put(a,this)},"~S");d(c$,"toString",function(){return this.getClass().getName()+"("+ +this.name+")"});c(c$,"getName",function(){return this.name});c(c$,"readResolve",function(){if(this.getClass()!==java.text.AttributedCharacterIterator.Attribute)throw new java.io.InvalidObjectException("subclass didn't correctly implement readResolve");var a=java.text.AttributedCharacterIterator.Attribute.instanceMap.get(this.getName());if(null!=a)return a;throw new java.io.InvalidObjectException("unknown attribute name");});c$.instanceMap=c$.prototype.instanceMap=new java.util.HashMap(7);c$.LANGUAGE= +c$.prototype.LANGUAGE=new java.text.AttributedCharacterIterator.Attribute("language");c$.READING=c$.prototype.READING=new java.text.AttributedCharacterIterator.Attribute("reading");c$.INPUT_METHOD_SEGMENT=c$.prototype.INPUT_METHOD_SEGMENT=new java.text.AttributedCharacterIterator.Attribute("input_method_segment");c$=w()});p("java.text");c$=y(java.text,"CharacterIterator",Cloneable);x(c$,"DONE","\uffff");p("java.awt.geom");n(null,"java.awt.geom.Point2D",["java.lang.Double","$.InternalError"],function(){c$= +t(java.awt.geom,"Point2D",null,Cloneable);g(c$,function(){});c(c$,"setLocation",function(a){this.setLocation(a.getX(),a.getY())},"java.awt.geom.Point2D");c$.distanceSq=c(c$,"distanceSq",function(a,b,c,h){a-=c;b-=h;return a*a+b*b},"~N,~N,~N,~N");c$.distance=c(c$,"distance",function(a,b,c,h){a-=c;b-=h;return Math.sqrt(a*a+b*b)},"~N,~N,~N,~N");c(c$,"distanceSq",function(a,b){a-=this.getX();b-=this.getY();return a*a+b*b},"~N,~N");c(c$,"distanceSq",function(a){var b=a.getX()-this.getX();a=a.getY()-this.getY(); +return b*b+a*a},"java.awt.geom.Point2D");c(c$,"distance",function(a,b){a-=this.getX();b-=this.getY();return Math.sqrt(a*a+b*b)},"~N,~N");c(c$,"distance",function(a){var b=a.getX()-this.getX();a=a.getY()-this.getY();return Math.sqrt(b*b+a*a)},"java.awt.geom.Point2D");c(c$,"clone",function(){try{return u(this,java.awt.geom.Point2D,"clone",[])}catch(a){if(z(a,CloneNotSupportedException))throw new InternalError;throw a;}});d(c$,"hashCode",function(){var a=java.lang.Double.doubleToLongBits(this.getX()), +a=a^31*java.lang.Double.doubleToLongBits(this.getY());return a^a>>32});c(c$,"equals",function(a){return j(a,java.awt.geom.Point2D)?this.getX()==a.getX()&&this.getY()==a.getY():u(this,java.awt.geom.Point2D,"equals",[a])},"~O");v(self.c$);c$=q(function(){this.y=this.x=0;k(this,arguments)},java.awt.geom.Point2D,"Float",java.awt.geom.Point2D);g(c$,function(){r(this,java.awt.geom.Point2D.Float,[])});g(c$,function(a,b){r(this,java.awt.geom.Point2D.Float,[]);this.x=a;this.y=b},"~N,~N");d(c$,"getX",function(){return this.x}); +d(c$,"getY",function(){return this.y});c(c$,"setLocation",function(a,b){this.x=a;this.y=b},"~N,~N");c(c$,"setLocation",function(a,b){this.x=a;this.y=b},"~N,~N");d(c$,"toString",function(){return"Point2D.Float["+this.x+", "+this.y+"]"});c$=w();v(self.c$);c$=q(function(){this.y=this.x=0;k(this,arguments)},java.awt.geom.Point2D,"Double",java.awt.geom.Point2D);g(c$,function(){r(this,java.awt.geom.Point2D.Double,[])});g(c$,function(a,b){r(this,java.awt.geom.Point2D.Double,[]);this.x=a;this.y=b},"~N,~N"); +d(c$,"getX",function(){return this.x});d(c$,"getY",function(){return this.y});c(c$,"setLocation",function(a,b){this.x=a;this.y=b},"~N,~N");d(c$,"toString",function(){return"Point2D.Double["+this.x+", "+this.y+"]"});c$=w()});p("java.awt.geom");n(null,"java.awt.geom.AffineTransform","java.lang.Double $.InternalError JU.AU java.awt.geom.NoninvertibleTransformException $.Path2D $.Point2D java.awt.geom.Point2D.Double".split(" "),function(){c$=q(function(){this.type=this.state=this.m12=this.m02=this.m11= +this.m01=this.m10=this.m00=0;k(this,arguments)},java.awt.geom,"AffineTransform",null,[Cloneable,java.io.Serializable]);g(c$,function(a,b,c,h,f,d,m){switch(arguments.length){case 0:this.m00=this.m11=1;return;case 1:j(a,java.awt.geom.AffineTransform)?(this.m00=a.m00,this.m10=a.m10,this.m01=a.m01,this.m11=a.m11,this.m02=a.m02,this.m12=a.m12,this.state=a.state,this.type=a.type):(this.m00=a[0],this.m10=a[1],this.m01=a[2],this.m11=a[3],5a&&this.rotate180();else if(0==a)0a?(h=-1,this.state=2,this.type=8):(h=1,this.type=this.state=0)):0==a?(h=0,c=0=Math.abs(a))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+ +a);return new java.awt.geom.AffineTransform(this.m11/a,-this.m10/a,-this.m01/a,this.m00/a,(this.m01*this.m12-this.m11*this.m02)/a,(this.m10*this.m02-this.m00*this.m12)/a,7);case 6:a=this.m00*this.m11-this.m01*this.m10;if(4.9E-324>=Math.abs(a))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+a);return new java.awt.geom.AffineTransform(this.m11/a,-this.m10/a,-this.m01/a,this.m00/a,0,0,6);case 5:if(0==this.m01||0==this.m10)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0"); +return new java.awt.geom.AffineTransform(0,1/this.m01,1/this.m10,0,-this.m12/this.m10,-this.m02/this.m01,5);case 4:if(0==this.m01||0==this.m10)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");return new java.awt.geom.AffineTransform(0,1/this.m01,1/this.m10,0,0,0,4);case 3:if(0==this.m00||0==this.m11)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");return new java.awt.geom.AffineTransform(1/this.m00,0,0,1/this.m11,-this.m02/this.m00,-this.m12/this.m11, +3);case 2:if(0==this.m00||0==this.m11)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");return new java.awt.geom.AffineTransform(1/this.m00,0,0,1/this.m11,0,0,2);case 1:return new java.awt.geom.AffineTransform(1,0,0,1,-this.m02,-this.m12,1);case 0:return new java.awt.geom.AffineTransform}});c(c$,"invert",function(){var a,b,c,h,d,l,m;switch(this.state){default:this.stateError();case 7:a=this.m00;b=this.m01;c=this.m02;h=this.m10;d=this.m11;l=this.m12;m=a*d-b*h;if(4.9E-324>= +Math.abs(m))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+m);this.m00=d/m;this.m10=-h/m;this.m01=-b/m;this.m11=a/m;this.m02=(b*l-d*c)/m;this.m12=(h*c-a*l)/m;break;case 6:a=this.m00;b=this.m01;h=this.m10;d=this.m11;m=a*d-b*h;if(4.9E-324>=Math.abs(m))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+m);this.m00=d/m;this.m10=-h/m;this.m01=-b/m;this.m11=a/m;break;case 5:b=this.m01;c=this.m02;h=this.m10;l=this.m12;if(0==b||0==h)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0"); +this.m10=1/b;this.m01=1/h;this.m02=-l/h;this.m12=-c/b;break;case 4:b=this.m01;h=this.m10;if(0==b||0==h)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");this.m10=1/b;this.m01=1/h;break;case 3:a=this.m00;c=this.m02;d=this.m11;l=this.m12;if(0==a||0==d)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");this.m00=1/a;this.m11=1/d;this.m02=-c/a;this.m12=-l/d;break;case 2:a=this.m00;d=this.m11;if(0==a||0==d)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0"); +this.m00=1/a;this.m11=1/d;break;case 1:this.m02=-this.m02,this.m12=-this.m12;case 0:}});c(c$,"transform",function(a,b){null==b&&(b=j(a,java.awt.geom.Point2D.Double)?new java.awt.geom.Point2D.Double:new java.awt.geom.Point2D.Float);var c=a.getX(),h=a.getY();switch(this.state){default:this.stateError();case 7:return b.setLocation(c*this.m00+h*this.m01+this.m02,c*this.m10+h*this.m11+this.m12),b;case 6:return b.setLocation(c*this.m00+h*this.m01,c*this.m10+h*this.m11),b;case 5:return b.setLocation(h*this.m01+ +this.m02,c*this.m10+this.m12),b;case 4:return b.setLocation(h*this.m01,c*this.m10),b;case 3:return b.setLocation(c*this.m00+this.m02,h*this.m11+this.m12),b;case 2:return b.setLocation(c*this.m00,h*this.m11),b;case 1:return b.setLocation(c+this.m02,h+this.m12),b;case 0:return b.setLocation(c,h),b}},"java.awt.geom.Point2D,java.awt.geom.Point2D");c(c$,"transform",function(a,b,c,h,d){if(0!=d)if(JU.AU.isAD(a)){var l,m,g,j,k,n;c===a&&(h>b&&h=Math.abs(d))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+d);b.setLocation((c*this.m11-h*this.m01)/d,(h*this.m00-c*this.m10)/d);return b;case 5:c-=this.m02,h-=this.m12;case 4:if(0==this.m01||0==this.m10)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");b.setLocation(h/this.m10,c/this.m01);return b;case 3:c-=this.m02,h-=this.m12;case 2:if(0==this.m00||0== +this.m11)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");b.setLocation(c/this.m00,h/this.m11);return b;case 1:return b.setLocation(c-this.m02,h-this.m12),b;case 0:return b.setLocation(c,h),b}},"java.awt.geom.Point2D,java.awt.geom.Point2D");c(c$,"inverseTransform",function(a,b,c,h,d){var l,m,g,j,k,n,p;c===a&&(h>b&&h=Math.abs(p))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+p);for(;0<=--d;){var q=a[b++]-g,r=a[b++]-n;c[h++]=(q*k-r*m)/p;c[h++]=(r*l-q*j)/p}break;case 6:l=this.m00;m=this.m01;j=this.m10;k=this.m11;p=l*k-m*j;if(4.9E-324>=Math.abs(p))throw new java.awt.geom.NoninvertibleTransformException("Determinant is "+p);for(;0<=--d;)q=a[b++],r=a[b++],c[h++]=(q*k-r*m)/p,c[h++]=(r*l-q*j)/p;break;case 5:m=this.m01;g=this.m02;j=this.m10;n=this.m12;if(0==m||0==j)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0"); +for(;0<=--d;)q=a[b++]-g,c[h++]=(a[b++]-n)/j,c[h++]=q/m;break;case 4:m=this.m01;j=this.m10;if(0==m||0==j)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");for(;0<=--d;)q=a[b++],c[h++]=a[b++]/j,c[h++]=q/m;break;case 3:l=this.m00;g=this.m02;k=this.m11;n=this.m12;if(0==l||0==k)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0");for(;0<=--d;)c[h++]=(a[b++]-g)/l,c[h++]=(a[b++]-n)/k;break;case 2:l=this.m00;k=this.m11;if(0==l||0==k)throw new java.awt.geom.NoninvertibleTransformException("Determinant is 0"); +for(;0<=--d;)c[h++]=a[b++]/l,c[h++]=a[b++]/k;break;case 1:g=this.m02;for(n=this.m12;0<=--d;)c[h++]=a[b++]-g,c[h++]=a[b++]-n;break;case 0:(a!==c||b!=h)&&System.arraycopy(a,b,c,h,2*d)}},"~A,~N,~A,~N,~N");c(c$,"deltaTransform",function(a,b){null==b&&(b=j(a,java.awt.geom.Point2D.Double)?new java.awt.geom.Point2D.Double:new java.awt.geom.Point2D.Float);var c=a.getX(),h=a.getY();switch(this.state){default:this.stateError();case 7:case 6:return b.setLocation(c*this.m00+h*this.m01,c*this.m10+h*this.m11), +b;case 5:case 4:return b.setLocation(h*this.m01,c*this.m10),b;case 3:case 2:return b.setLocation(c*this.m00,h*this.m11),b;case 1:case 0:return b.setLocation(c,h),b}},"java.awt.geom.Point2D,java.awt.geom.Point2D");c(c$,"deltaTransform",function(a,b,c,h,d){var l,m,g,j;c===a&&(h>b&&h>32});d(c$,"equals",function(a){return!j(a,java.awt.geom.AffineTransform)?!1:this.m00==a.m00&&this.m01==a.m01&&this.m02==a.m02&&this.m10==a.m10&&this.m11==a.m11&&this.m12==a.m12},"~O");x(c$,"TYPE_UNKNOWN",-1, +"TYPE_IDENTITY",0,"TYPE_TRANSLATION",1,"TYPE_UNIFORM_SCALE",2,"TYPE_GENERAL_SCALE",4,"TYPE_MASK_SCALE",6,"TYPE_FLIP",64,"TYPE_QUADRANT_ROTATION",8,"TYPE_GENERAL_ROTATION",16,"TYPE_MASK_ROTATION",24,"TYPE_GENERAL_TRANSFORM",32,"APPLY_IDENTITY",0,"APPLY_TRANSLATE",1,"APPLY_SCALE",2,"APPLY_SHEAR",4,"HI_SHIFT",3,"HI_IDENTITY",0,"HI_TRANSLATE",8,"HI_SCALE",16,"HI_SHEAR",32,"rot90conversion",H(-1,[4,5,4,5,2,3,6,7]))});p("java.awt.geom");n(["java.lang.Exception"],"java.awt.geom.NoninvertibleTransformException", +null,function(){c$=t(java.awt.geom,"NoninvertibleTransformException",Exception)});p("java.awt.geom");n(["java.awt.Shape","java.awt.geom.PathIterator"],"java.awt.geom.Path2D","java.lang.Double $.IllegalArgumentException java.util.Arrays java.awt.geom.FlatteningPathIterator $.IllegalPathStateException $.Point2D $.Rectangle2D jssun.awt.geom.Curve".split(" "),function(){c$=q(function(){this.pointTypes=null;this.windingRule=this.numCoords=this.numTypes=0;k(this,arguments)},java.awt.geom,"Path2D",null, +[java.awt.Shape,Cloneable]);g(c$,function(){});g(c$,function(a,b){this.setWindingRule(a);this.pointTypes=L(b,0)},"~N,~N");c(c$,"closePath",function(){if(0==this.numTypes||4!=this.pointTypes[this.numTypes-1])this.needRoom(!0,0),this.pointTypes[this.numTypes++]=4});c(c$,"append",function(a,b){this.append(a.getPathIterator(null),b)},"java.awt.Shape,~B");c(c$,"getWindingRule",function(){return this.windingRule});c(c$,"setWindingRule",function(a){if(0!=a&&1!=a)throw new IllegalArgumentException("winding rule must be WIND_EVEN_ODD or WIND_NON_ZERO"); +this.windingRule=a},"~N");c(c$,"getCurrentPoint",function(){var a=this.numCoords;if(1>this.numTypes||1>a)return null;if(4==this.pointTypes[this.numTypes-1]){var b=this.numTypes-2;a:for(;0this.numTypes)return!1;var c=1==this.windingRule? +-1:1;return 0!=(this.pointCrossings(a,b)&c)}return!1},"~N,~N");c(c$,"contains",function(a){return this.contains(a.getX(),a.getY())},"java.awt.geom.Point2D");c$.contains=c(c$,"contains",function(a,b,c,h,d){if(java.lang.Double.isNaN(b+h)||java.lang.Double.isNaN(c+d)||0>=h||0>=d)return!1;var l=1==a.getWindingRule()?-1:2;a=jssun.awt.geom.Curve.rectCrossingsForPath(a,b,c,b+h,c+d);return-2147483648!=a&&0!=(a&l)},"java.awt.geom.PathIterator,~N,~N,~N,~N");c$.contains=c(c$,"contains",function(a,b){return java.awt.geom.Path2D.contains(a, +b.getX(),b.getY(),b.getWidth(),b.getHeight())},"java.awt.geom.PathIterator,java.awt.geom.Rectangle2D");c(c$,"contains",function(a,b,c,h){if(java.lang.Double.isNaN(a+c)||java.lang.Double.isNaN(b+h)||0>=c||0>=h)return!1;var d=1==this.windingRule?-1:2;a=this.rectCrossings(a,b,a+c,b+h);return-2147483648!=a&&0!=(a&d)},"~N,~N,~N,~N");c(c$,"contains",function(a){return this.contains(a.getX(),a.getY(),a.getWidth(),a.getHeight())},"java.awt.geom.Rectangle2D");c$.intersects=c(c$,"intersects",function(a,b,c, +h,d){if(java.lang.Double.isNaN(b+h)||java.lang.Double.isNaN(c+d)||0>=h||0>=d)return!1;var l=1==a.getWindingRule()?-1:2;a=jssun.awt.geom.Curve.rectCrossingsForPath(a,b,c,b+h,c+d);return-2147483648==a||0!=(a&l)},"java.awt.geom.PathIterator,~N,~N,~N,~N");c$.intersects=c(c$,"intersects",function(a,b){return java.awt.geom.Path2D.intersects(a,b.getX(),b.getY(),b.getWidth(),b.getHeight())},"java.awt.geom.PathIterator,java.awt.geom.Rectangle2D");c(c$,"intersects",function(a,b,c,h){if(java.lang.Double.isNaN(a+ +c)||java.lang.Double.isNaN(b+h)||0>=c||0>=h)return!1;var d=1==this.windingRule?-1:2;a=this.rectCrossings(a,b,a+c,b+h);return-2147483648==a||0!=(a&d)},"~N,~N,~N,~N");c(c$,"intersects",function(a){return this.intersects(a.getX(),a.getY(),a.getWidth(),a.getHeight())},"java.awt.geom.Rectangle2D");d(c$,"getPathIterator",function(a,b){return new java.awt.geom.FlatteningPathIterator(this.getPathIterator(a),b)},"java.awt.geom.AffineTransform,~N");v(self.c$);c$=q(function(){this.pointIdx=this.typeIdx=0;this.path= +null;k(this,arguments)},java.awt.geom.Path2D,"Iterator",null,java.awt.geom.PathIterator);g(c$,function(a){this.path=a},"java.awt.geom.Path2D");d(c$,"getWindingRule",function(){return this.path.getWindingRule()});d(c$,"isDone",function(){return this.typeIdx>=this.path.numTypes});d(c$,"next",function(){var a=this.path.pointTypes[this.typeIdx++];this.pointIdx+=java.awt.geom.Path2D.Iterator.curvecoords[a]});x(c$,"curvecoords",H(-1,[2,2,4,6,0]));c$=w();v(self.c$);c$=q(function(){this.floatCoords=null; +k(this,arguments)},java.awt.geom.Path2D,"Float",java.awt.geom.Path2D);g(c$,function(){this.construct(1,20)});g(c$,function(a){this.construct(a,20)},"~N");g(c$,function(a,b){r(this,java.awt.geom.Path2D.Float,[]);this.setWindingRule(a);this.pointTypes=L(b,0);this.floatCoords=M(2*b,0)},"~N,~N");g(c$,function(a){this.construct(a,null)},"java.awt.Shape");g(c$,function(a,b){r(this,java.awt.geom.Path2D.Float,[]);this.setPath(a,b)},"java.awt.Shape,java.awt.geom.AffineTransform");c(c$,"setPath",function(a, +b){if(j(a,java.awt.geom.Path2D)){var c=a;this.setWindingRule(c.windingRule);this.numTypes=c.numTypes;this.pointTypes=java.util.Arrays.copyOf(c.pointTypes,c.pointTypes.length);this.numCoords=c.numCoords;this.floatCoords=c.cloneCoordsFloat(b)}else c=a.getPathIterator(b),this.setWindingRule(c.getWindingRule()),this.pointTypes=L(20,0),this.floatCoords=M(40,0),this.append(c,!1)},"java.awt.Shape,java.awt.geom.AffineTransform");c(c$,"cloneCoordsFloat",function(a){var b;null==a?b=java.util.Arrays.copyOf(this.floatCoords, +this.floatCoords.length):(b=M(this.floatCoords.length,0),a.transform(this.floatCoords,0,b,0,A(this.numCoords/2)));return b},"java.awt.geom.AffineTransform");d(c$,"cloneCoordsDouble",function(a){var b=N(this.floatCoords.length,0);if(null==a)for(a=0;athis.numTypes||1>this.numCoords){this.moveTo(c[0],c[1]);break}if(4!=this.pointTypes[this.numTypes-1]&&this.floatCoords[this.numCoords-2]==c[0]&&this.floatCoords[this.numCoords-1]==c[1])break;case 1:this.lineTo(c[0],c[1]);break;case 2:this.quadTo(c[0],c[1],c[2],c[3]);break;case 3:this.curveTo(c[0],c[1],c[2],c[3],c[4],c[5]);break;case 4:this.closePath()}a.next();b=!1}},"java.awt.geom.PathIterator,~B");d(c$,"getPoint", +function(a){return new java.awt.geom.Point2D.Float(this.floatCoords[a],this.floatCoords[a+1])},"~N");d(c$,"needRoom",function(a,b){if(a&&0==this.numTypes)throw new java.awt.geom.IllegalPathStateException("missing initial moveto in path definition");var c=this.pointTypes.length;if(this.numTypes>=c){var h=c;500c&&(h=c,1E3c&&(c=m);l>h&&(h=l)}}else a=b=c=h=0;return new java.awt.geom.Rectangle2D.Float(a,b,c-a,h-b)});c(c$,"getPathIterator",function(a){return null== +a?new java.awt.geom.Path2D.Float.CopyIterator(this):new java.awt.geom.Path2D.Float.TxIterator(this,a)},"java.awt.geom.AffineTransform");d(c$,"clone",function(){return new java.awt.geom.Path2D.Float(this)});v(self.c$);c$=q(function(){this.floatCoords=null;k(this,arguments)},java.awt.geom.Path2D.Float,"CopyIterator",java.awt.geom.Path2D.Iterator);g(c$,function(a){r(this,java.awt.geom.Path2D.Float.CopyIterator,[a]);this.floatCoords=a.floatCoords},"java.awt.geom.Path2D.Float");c(c$,"currentSegment",function(a){var b= +this.path.pointTypes[this.typeIdx],c=java.awt.geom.Path2D.Iterator.curvecoords[b];if(0this.numTypes||1>this.numCoords){this.moveTo(c[0],c[1]);break}if(4!=this.pointTypes[this.numTypes-1]&&this.doubleCoords[this.numCoords-2]==c[0]&&this.doubleCoords[this.numCoords-1]==c[1])break;case 1:this.lineTo(c[0],c[1]);break;case 2:this.quadTo(c[0], +c[1],c[2],c[3]);break;case 3:this.curveTo(c[0],c[1],c[2],c[3],c[4],c[5]);break;case 4:this.closePath()}a.next();b=!1}},"java.awt.geom.PathIterator,~B");d(c$,"getPoint",function(a){return new java.awt.geom.Point2D.Double(this.doubleCoords[a],this.doubleCoords[a+1])},"~N");d(c$,"needRoom",function(a,b){if(a&&0==this.numTypes)throw new java.awt.geom.IllegalPathStateException("missing initial moveto in path definition");var c=this.pointTypes.length;if(this.numTypes>=c){var h=c;500c&&(h=c,1E3c&&(c=m);l>h&&(h=l)}}else a=b=c=h=0;return new java.awt.geom.Rectangle2D.Double(a,b,c-a,h-b)});c(c$,"getPathIterator",function(a){return null==a?new java.awt.geom.Path2D.Double.CopyIterator(this):new java.awt.geom.Path2D.Double.TxIterator(this,a)},"java.awt.geom.AffineTransform");d(c$,"clone",function(){return new java.awt.geom.Path2D.Double(this)});v(self.c$);c$=q(function(){this.doubleCoords= +null;k(this,arguments)},java.awt.geom.Path2D.Double,"CopyIterator",java.awt.geom.Path2D.Iterator);g(c$,function(a){r(this,java.awt.geom.Path2D.Double.CopyIterator,[a]);this.doubleCoords=a.doubleCoords},"java.awt.geom.Path2D.Double");c(c$,"currentSegment",function(a){var b=this.path.pointTypes[this.typeIdx],c=java.awt.geom.Path2D.Iterator.curvecoords[b];if(0c)throw new IllegalArgumentException("columns less than zero.");this.columns=c;null==a&&(a=this.createDefaultModel());this.setDocument(a);null!=b&&this.setText(b)},"javax.swing.text.Document,~S,~N");d(c$,"getUIClassID",function(){return"TextFieldUI"});c(c$,"setDocument",function(a){null!=a&&a.putProperty("filterNewlines",Boolean.TRUE);u(this,javax.swing.JTextField,"setDocument",[a])},"javax.swing.text.Document");d(c$,"isValidateRoot",function(){var a=this.getParent(); +return j(a,javax.swing.JViewport)?!1:!0});c(c$,"getHorizontalAlignment",function(){return this.horizontalAlignment});c(c$,"setHorizontalAlignment",function(a){if(a!=this.horizontalAlignment){var b=this.horizontalAlignment;if(2==a||0==a||4==a||10==a||11==a)this.horizontalAlignment=a;else throw new IllegalArgumentException("horizontalAlignment");this.firePropertyChangeInt("horizontalAlignment",b,this.horizontalAlignment);this.invalidate();this.repaint()}},"~N");c(c$,"createDefaultModel",function(){return swingjs.JSToolkit.getPlainDocument(this)}); +c(c$,"getColumns",function(){return this.columns});c(c$,"setColumns",function(a){var b=this.columns;if(0>a)throw new IllegalArgumentException("columns less than zero.");a!=b&&(this.columns=a,this.invalidate())},"~N");c(c$,"getColumnWidth",function(){0==this.columnWidth&&(this.columnWidth=this.getFontMetrics(this.getFont()).charWidth("m"));return this.columnWidth});d(c$,"getPreferredSize",function(){return this.getPrefSizeJTF()});c(c$,"getPrefSizeJTF",function(){var a=this.getPrefSizeJComp();if(0!= +this.columns){var b=this.getInsets();a.width=this.columns*this.getColumnWidth()+b.left+b.right}return a});c(c$,"setFont",function(a){u(this,javax.swing.JTextField,"setFont",[a]);this.columnWidth=0},"java.awt.Font");c(c$,"addActionListener",function(a){this.listenerList.add(java.awt.event.ActionListener,a)},"java.awt.event.ActionListener");c(c$,"removeActionListener",function(a){null!=a&&this.getAction()===a?this.setAction(null):this.listenerList.remove(java.awt.event.ActionListener,a)},"java.awt.event.ActionListener"); +c(c$,"getActionListeners",function(){return this.listenerList.getListeners(java.awt.event.ActionListener)});c(c$,"fireActionPerformed",function(){var a=this.listenerList.getListenerList(),b=0,c=java.awt.EventQueue.getCurrentEvent();j(c,java.awt.event.InputEvent)?b=c.getModifiers():j(c,java.awt.event.ActionEvent)&&(b=c.getModifiers());b=new java.awt.event.ActionEvent(this,1001,null!=this.command?this.command:this.getText(),java.awt.EventQueue.getMostRecentEventTime(),b);for(c=a.length-2;0<=c;c-=2)a[c]=== +java.awt.event.ActionListener&&a[c+1].actionPerformed(b)});c(c$,"setActionCommand",function(a){this.command=a},"~S");c(c$,"setAction",function(a){var b=this.getAction();if(null==this.$action||!this.$action.equals(a))this.$action=a,null!=b&&(this.removeActionListener(b),b.removePropertyChangeListener(this.actionPropertyChangeListener),this.actionPropertyChangeListener=null),this.configurePropertiesFromAction(this.$action),null!=this.$action&&(this.isListener(java.awt.event.ActionListener,this.$action)|| +this.addActionListener(this.$action),this.actionPropertyChangeListener=this.createActionPropertyChangeListener(this.$action),this.$action.addPropertyChangeListener(this.actionPropertyChangeListener)),this.firePropertyChangeObject("action",b,this.$action)},"javax.swing.Action");c(c$,"isListener",function(a,b){for(var c=!1,h=this.listenerList.getListenerList(),d=h.length-2;0<=d;d-=2)h[d]===a&&h[d+1]===b&&(c=!0);return c},"Class,java.awt.event.ActionListener");c(c$,"getAction",function(){return this.$action}); c(c$,"configurePropertiesFromAction",function(a){javax.swing.AbstractAction.setEnabledFromAction(this,a);javax.swing.AbstractAction.setToolTipTextFromAction(this,a);this.setActionCommandFromAction(a)},"javax.swing.Action");c(c$,"actionPropertyChanged",function(a,b){"ActionCommandKey"===b?this.setActionCommandFromAction(a):"enabled"===b?javax.swing.AbstractAction.setEnabledFromAction(this,a):"ShortDescription"===b&&javax.swing.AbstractAction.setToolTipTextFromAction(this,a)},"javax.swing.Action,~S"); c(c$,"setActionCommandFromAction",function(a){this.setActionCommand(null==a?null:a.getValue("ActionCommandKey"))},"javax.swing.Action");c(c$,"createActionPropertyChangeListener",function(a){return new javax.swing.JTextField.TextFieldActionPropertyChangeListener(this,a)},"javax.swing.Action");c(c$,"getActions",function(){return javax.swing.text.TextAction.augmentList(u(this,javax.swing.JTextField,"getActions",[]),javax.swing.JTextField.defaultActions)});c(c$,"postActionEvent",function(){this.fireActionPerformed()}); c(c$,"hasActionListener",function(){for(var a=this.listenerList.getListenerList(),b=a.length-2;0<=b;b-=2)if(a[b]===java.awt.event.ActionListener)return!0;return!1});c(c$,"paramString",function(){var a;a=2==this.horizontalAlignment?"LEFT":0==this.horizontalAlignment?"CENTER":4==this.horizontalAlignment?"RIGHT":10==this.horizontalAlignment?"LEADING":11==this.horizontalAlignment?"TRAILING":"";var b=null!=this.command?this.command:"";return u(this,javax.swing.JTextField,"paramString",[])+",columns="+ -this.columns+",columnWidth="+this.columnWidth+",command="+b+",horizontalAlignment="+a});c$.$JTextField$ScrollRepainter$=function(){w(self.c$);c$=q(function(){K(this,arguments);k(this,arguments)},javax.swing.JTextField,"ScrollRepainter",null,javax.swing.event.ChangeListener);d(c$,"stateChanged",function(){this.b$["javax.swing.JTextField"].repaint()},"javax.swing.event.ChangeEvent");c$=v()};w(self.c$);c$=t(javax.swing.JTextField,"TextFieldActionPropertyChangeListener",javax.swing.ActionPropertyChangeListener); -d(c$,"actionPropertyChanged",function(a,b,c){javax.swing.AbstractAction.shouldReconfigure(c)?a.configurePropertiesFromAction(b):a.actionPropertyChanged(b,c.getPropertyName())},"javax.swing.JTextField,javax.swing.Action,java.beans.PropertyChangeEvent");c$=v();w(self.c$);c$=t(javax.swing.JTextField,"NotifyAction",javax.swing.text.TextAction);g(c$,function(){r(this,javax.swing.JTextField.NotifyAction,["notify-field-accept"])});d(c$,"actionPerformed",function(){var a=this.getFocusedComponent();j(a,javax.swing.JTextField)&& -a.postActionEvent()},"java.awt.event.ActionEvent");d(c$,"isEnabled",function(){var a=this.getFocusedComponent();return j(a,javax.swing.JTextField)?a.hasActionListener():!1});c$=v();x(c$,"notifyAction","notify-field-accept");c$.defaultActions=c$.prototype.defaultActions=B(-1,[new javax.swing.JTextField.NotifyAction]);x(c$,"$uiClassID","TextFieldUI")});p("javax.swing");n(["java.beans.PropertyChangeListener"],"javax.swing.ActionPropertyChangeListener",null,function(){c$=q(function(){this.action=null; +this.columns+",columnWidth="+this.columnWidth+",command="+b+",horizontalAlignment="+a});c$.$JTextField$ScrollRepainter$=function(){v(self.c$);c$=q(function(){K(this,arguments);k(this,arguments)},javax.swing.JTextField,"ScrollRepainter",null,javax.swing.event.ChangeListener);d(c$,"stateChanged",function(){this.b$["javax.swing.JTextField"].repaint()},"javax.swing.event.ChangeEvent");c$=w()};v(self.c$);c$=t(javax.swing.JTextField,"TextFieldActionPropertyChangeListener",javax.swing.ActionPropertyChangeListener); +d(c$,"actionPropertyChanged",function(a,b,c){javax.swing.AbstractAction.shouldReconfigure(c)?a.configurePropertiesFromAction(b):a.actionPropertyChanged(b,c.getPropertyName())},"javax.swing.JTextField,javax.swing.Action,java.beans.PropertyChangeEvent");c$=w();v(self.c$);c$=t(javax.swing.JTextField,"NotifyAction",javax.swing.text.TextAction);g(c$,function(){r(this,javax.swing.JTextField.NotifyAction,["notify-field-accept"])});d(c$,"actionPerformed",function(){var a=this.getFocusedComponent();j(a,javax.swing.JTextField)&& +a.postActionEvent()},"java.awt.event.ActionEvent");d(c$,"isEnabled",function(){var a=this.getFocusedComponent();return j(a,javax.swing.JTextField)?a.hasActionListener():!1});c$=w();x(c$,"notifyAction","notify-field-accept");c$.defaultActions=c$.prototype.defaultActions=B(-1,[new javax.swing.JTextField.NotifyAction]);x(c$,"$uiClassID","TextFieldUI")});p("javax.swing");n(["java.beans.PropertyChangeListener"],"javax.swing.ActionPropertyChangeListener",null,function(){c$=q(function(){this.action=null; k(this,arguments)},javax.swing,"ActionPropertyChangeListener",null,java.beans.PropertyChangeListener);g(c$,function(a,b){this.setTarget(a);this.action=b},"~O,javax.swing.Action");d(c$,"propertyChange",function(a){var b=this.getTarget();null==b?this.getAction().removePropertyChangeListener(this):this.actionPropertyChanged(b,this.getAction(),a)},"java.beans.PropertyChangeEvent");c(c$,"setTarget",function(){},"~O");c(c$,"getTarget",function(){return null});c(c$,"getAction",function(){return this.action})}); p("javax.swing.event");n(["java.util.EventListener"],"javax.swing.event.ChangeListener",null,function(){y(javax.swing.event,"ChangeListener",java.util.EventListener)});p("javax.swing");n(null,"javax.swing.ActionMap",["java.util.HashMap","javax.swing.ArrayTable"],function(){c$=q(function(){this.parent=this.arrayTable=null;k(this,arguments)},javax.swing,"ActionMap");g(c$,function(){});c(c$,"setParent",function(a){this.parent=a},"javax.swing.ActionMap");c(c$,"getParent",function(){return this.parent}); c(c$,"put",function(a,b){null!=a&&(null==b?this.remove(a):(null==this.arrayTable&&(this.arrayTable=new javax.swing.ArrayTable),this.arrayTable.put(a,b)))},"~O,javax.swing.Action");c(c$,"get",function(a){var b=null==this.arrayTable?null:this.arrayTable.get(a);if(null==b){var c=this.getParent();if(null!=c)return c.get(a)}return b},"~O");c(c$,"remove",function(a){null!=this.arrayTable&&this.arrayTable.remove(a)},"~O");c(c$,"clear",function(){null!=this.arrayTable&&this.arrayTable.clear()});c(c$,"keys", @@ -1108,131 +1109,130 @@ d(c$,"fill3DRect",function(a,b,c,h,d){var l=this.getPaint(),m=this.getColor(),g= b,c,h){return this.create4(a,b,c,h)},"~N,~N,~N,~N");c(c$,"create4",function(a,b,c,h){var d=this.createSwingJS();if(null==d)return null;d.translate(a,b);d.clipRect(0,0,c,h);return d},"~N,~N,~N,~N");c(c$,"getFontMetrics",function(){return this.getFontMetrics(this.getFont())});c(c$,"drawRect",function(a,b,c,h){0>c||0>h||(0==h||0==c?this.drawLine(a,b,a+c,b+h):(this.drawLine(a,b,a+c-1,b),this.drawLine(a+c,b,a+c,b+h-1),this.drawLine(a+c,b+h,a+1,b+h),this.drawLine(a,b+h,a,b+1)))},"~N,~N,~N,~N");c(c$,"draw3DRect", function(a,b,c,h,d){var l=this.getColor(),m=l.brighter(),g=l.darker();this.setColor(d?m:g);this.drawLine(a,b,a,b+h);this.drawLine(a+1,b,a+c-1,b);this.setColor(d?g:m);this.drawLine(a+1,b+h,a+c,b+h);this.drawLine(a+c,b,a+c,b+h-1);this.setColor(l)},"~N,~N,~N,~N,~B");c(c$,"fill3DRect",function(a,b,c,h,d){var l=this.getColor(),m=l.brighter(),g=l.darker();d||this.setColor(g);this.fillRect(a+1,b+1,c-2,h-2);this.setColor(d?m:g);this.drawLine(a,b,a,b+h-1);this.drawLine(a+1,b,a+c-2,b);this.setColor(d?g:m); this.drawLine(a+1,b+h-1,a+c-1,b+h-1);this.drawLine(a+c-1,b,a+c-1,b+h-2);this.setColor(l)},"~N,~N,~N,~N,~B");c(c$,"drawPolygon",function(a){this.drawPolygon(a.xpoints,a.ypoints,a.npoints)},"java.awt.Polygon");c(c$,"fillPolygon",function(a){this.fillPolygon(a.xpoints,a.ypoints,a.npoints)},"java.awt.Polygon");c(c$,"drawChars",function(a,b,c,h,d){this.drawString(String.instantialize(a,b,c),h,d)},"~A,~N,~N,~N,~N");c(c$,"drawBytes",function(a,b,c,h,d){this.drawString(String.instantialize(a,0,b,c),h,d)}, -"~A,~N,~N,~N,~N");d(c$,"finalize",function(){this.dispose()});d(c$,"toString",function(){return this.getClass().getName()+"[font="+this.getFont()+",color="+this.getColor()+"]"});c(c$,"getClipRect",function(){return this.getClipBounds()});c(c$,"hitClip",function(a,b,c,h){var d=this.getClipBounds();return null==d?!0:d.intersects(a,b,c,h)},"~N,~N,~N,~N");p("jssun.font");n(["java.awt.FontMetrics","java.util.Hashtable"],"jssun.font.FontDesignMetrics",["java.lang.IndexOutOfBoundsException","java.awt.Toolkit", -"swingjs.JSToolkit"],function(){c$=q(function(){this.leading=this.descent=this.ascent=0;this.height=-1;k(this,arguments)},jssun.font,"FontDesignMetrics",java.awt.FontMetrics);c$.getMetrics=c(c$,"getMetrics",function(a){var b=null,c;c=jssun.font.FontDesignMetrics.metricsCache.get(a);null!=c&&(b=c.get());null==b&&(b=new jssun.font.FontDesignMetrics(a),jssun.font.FontDesignMetrics.metricsCache.put(a,new jssun.font.FontDesignMetrics.KeyReference(a,b)));for(a=0;ac)throw new IndexOutOfBoundsException("len="+c);for(c=b+c;bthis.height&&(this.height=this.getAscent()+E(jssun.font.FontDesignMetrics.roundingUpValue+ -this.descent+this.leading));return this.height});w(self.c$);c$=q(function(){this.val=this.key=null;k(this,arguments)},jssun.font.FontDesignMetrics,"KeyReference");g(c$,function(a,b){this.key=a;this.val=b},"~O,~O");c(c$,"get",function(){return this.val});c(c$,"dispose",function(){jssun.font.FontDesignMetrics.metricsCache.get(this.key)===this&&jssun.font.FontDesignMetrics.metricsCache.remove(this.key)});c$=v();x(c$,"roundingUpValue",0.95);c$.metricsCache=c$.prototype.metricsCache=new java.util.Hashtable; -x(c$,"MAXRECENT",5);c$.recentMetrics=c$.prototype.recentMetrics=Array(5);x(c$,"recentIndex",0)});p("java.awt");n(["java.awt.font.FontRenderContext"],"java.awt.FontMetrics",["java.lang.Character"],function(){c$=q(function(){this.font=null;k(this,arguments)},java.awt,"FontMetrics");g(c$,function(a){this.font=a},"java.awt.Font");c(c$,"getFont",function(){return this.font});c(c$,"getFontRenderContext",function(){return java.awt.FontMetrics.DEFAULT_FRC});c(c$,"getLeading",function(){return 0});c(c$,"getAscent", -function(){return this.font.getSize()});c(c$,"getDescent",function(){return 0});c(c$,"getHeight",function(){return this.getLeading()+this.getAscent()+this.getDescent()});c(c$,"getMaxAscent",function(){return this.getAscent()});c(c$,"getMaxDescent",function(){return this.getDescent()});c(c$,"getMaxDecent",function(){return this.getMaxDescent()});c(c$,"getMaxAdvance",function(){return-1});c(c$,"charWidth",function(a){Character.isValidCodePoint(a)||(a=65535);if(256>a)return this.getWidths()[a];var b= -Q(2,"\x00");a=Character.toChars(a,b,0);return this.charsWidth(b,0,a)},"~N");c(c$,"charWidth",function(a){if(256>a.charCodeAt(0))return this.getWidths()[a.charCodeAt(0)];a=Q(-1,[a]);return this.charsWidth(a,0,1)},"~S");c(c$,"stringWidth",function(a){var b=a.length,c=Q(b,"\x00");a.getChars(0,b,c,0);return this.charsWidth(c,0,b)},"~S");c(c$,"charsWidth",function(a,b,c){return this.stringWidth(String.instantialize(a,b,c))},"~A,~N,~N");c(c$,"bytesWidth",function(a,b,c){return this.stringWidth(String.instantialize(a, -0,b,c))},"~A,~N,~N");c(c$,"getWidths",function(){for(var a=H(256,0),b=String.fromCharCode(0);256>b.charCodeAt(0);b=String.fromCharCode(b.charCodeAt(0)+1))a[b.charCodeAt(0)]=this.charWidth(b);return a});d(c$,"toString",function(){return this.getClass().getName()+"[font="+this.getFont()+"ascent="+this.getAscent()+", descent="+this.getDescent()+", height="+this.getHeight()+"]"});c$.DEFAULT_FRC=c$.prototype.DEFAULT_FRC=new java.awt.font.FontRenderContext(null,!1,!1)});p("JU");n(null,"JU.PT","java.lang.Boolean $.Double $.Float $.Number java.util.Map javajs.api.JSONEncodable JU.AU $.DF $.Lst $.M34 $.M4 $.SB".split(" "), -function(){c$=t(JU,"PT");c$.parseInt=c(c$,"parseInt",function(a){return JU.PT.parseIntNext(a,H(-1,[0]))},"~S");c$.parseIntNext=c(c$,"parseIntNext",function(a,b){var c=a.length;return 0>b[0]||b[0]>=c?-2147483648:JU.PT.parseIntChecked(a,c,b)},"~S,~A");c$.parseIntChecked=c(c$,"parseIntChecked",function(a,b,c){var h=!1,d=0,l=c[0];if(0>l)return-2147483648;for(var m;l=m;)d=10*d+(m-48),h= -!0,++l;h?g&&(d=-d):d=-2147483648;c[0]=l;return d},"~S,~N,~A");c$.isWhiteSpace=c(c$,"isWhiteSpace",function(a,b){var c;return 0<=b&&(" "==(c=a.charAt(b))||"\t"==c||"\n"==c)},"~S,~N");c$.parseFloatChecked=c(c$,"parseFloatChecked",function(a,b,c,h){var d=!1,l=c[0];if(h&&a.indexOf("\n")!=a.lastIndexOf("\n"))return NaN;for(;l=g;)j=10*j+1*(g-48),++l,d=!0;var n=!1,p=0,q=0==j?-1: -0;if(46==g)for(n=!0;++l=g;){d=!0;if(0>q){if(48==g){q--;continue}q=-q}p=b)return NaN;g=a.charCodeAt(l);if(43==g&&++l>=b)return NaN;c[0]=l;l=JU.PT.parseIntChecked(a,b,c);if(-2147483648==l)return NaN;0l&&-l<=JU.PT.decimalScale.length?d*=JU.PT.decimalScale[-l-1]:0!=l&&(d*=Math.pow(10,l))}else c[0]=l;m&&(d=-d);Infinity==d&&(d=3.4028235E38);return!h||(!j||n)&&JU.PT.checkTrailingText(a,c[0],b)?d:NaN},"~S,~N,~A,~B");c$.checkTrailingText=c(c$,"checkTrailingText",function(a,b,c){for(var h;bm?m=a.length:a=a.substring(0,m),b[0]+=m+1,a=JU.PT.getTokens(a),null==c&&(c=M(a.length, -0)),l=JU.PT.parseFloatArrayInfested(a,c));if(null==c)return M(0,0);for(a=l;ah&&(b=h);return 0>c[0]||c[0]>=b?NaN:JU.PT.parseFloatChecked(a,b,c,!1)},"~S,~N,~A");c$.parseFloatNext=c(c$,"parseFloatNext",function(a,b){var c=null==a?-1:a.length;return 0>b[0]||b[0]>=c?NaN:JU.PT.parseFloatChecked(a,c,b,!1)},"~S,~A");c$.parseFloatStrict=c(c$,"parseFloatStrict",function(a){var b=a.length; -return 0==b?NaN:JU.PT.parseFloatChecked(a,b,H(-1,[0]),!0)},"~S");c$.parseFloat=c(c$,"parseFloat",function(a){return JU.PT.parseFloatNext(a,H(-1,[0]))},"~S");c$.parseIntRadix=c(c$,"parseIntRadix",function(a,b){return Integer.parseIntRadix(a,b)},"~S,~N");c$.getTokens=c(c$,"getTokens",function(a){return JU.PT.getTokensAt(a,0)},"~S");c$.parseToken=c(c$,"parseToken",function(a){return JU.PT.parseTokenNext(a,H(-1,[0]))},"~S");c$.parseTrimmed=c(c$,"parseTrimmed",function(a){return JU.PT.parseTrimmedRange(a, -0,a.length)},"~S");c$.parseTrimmedAt=c(c$,"parseTrimmedAt",function(a,b){return JU.PT.parseTrimmedRange(a,b,a.length)},"~S,~N");c$.parseTrimmedRange=c(c$,"parseTrimmedRange",function(a,b,c){var h=a.length;cb||b>c)return null;var h=JU.PT.countTokens(a,b),d=Array(h),l=H(1,0);l[0]=b;for(var m=0;mb[0]||b[0]>=c?null:JU.PT.parseTokenChecked(a,c,b)},"~S,~A");c$.parseTokenRange=c(c$,"parseTokenRange",function(a,b,c){var h=a.length;b>h&&(b=h);return 0>c[0]||c[0]>=b?null:JU.PT.parseTokenChecked(a,b,c)},"~S,~N,~A"); -c$.parseTokenChecked=c(c$,"parseTokenChecked",function(a,b,c){for(var h=c[0];h=b&&JU.PT.isWhiteSpace(a,c);)--c;return ch&&(b=h);return 0>c[0]||c[0]>=b?-2147483648:JU.PT.parseIntChecked(a,b,c)},"~S,~N,~A");c$.parseFloatArrayData=c(c$,"parseFloatArrayData",function(a,b){JU.PT.parseFloatArrayDataN(a,b,b.length)},"~A,~A");c$.parseFloatArrayDataN=c(c$,"parseFloatArrayDataN",function(a,b,c){for(;0<=--c;)b[c]=c>= -a.length?NaN:JU.PT.parseFloat(a[c])},"~A,~A,~N");c$.split=c(c$,"split",function(a,b){if(0==a.length)return[];var c=1,h=a.indexOf(b),d,l=b.length;if(0>h||0==l)return d=Array(1),d[0]=a,d;for(var m=a.length-l;0<=h&&hc||0>(c=a.indexOf('"',c)))return"";for(var h=c+1,d=a.length;++cc||0>(c=a.indexOf('"',c)))return null;for(var h=b[0]=c,d=a.length,l=!1,g=!1;++c=d)return b[1]=-1,null;b[1]=c+1;c= -a.substring(h+1,c);return g?JU.PT.rep(JU.PT.rep(c,'""',"\x00"),"\x00",'"'):c},"~S,~A");c$.isOneOf=c(c$,"isOneOf",function(a,b){if(0==b.length)return!1;";"!=b.charAt(0)&&(b=";"+b+";");return 0>a.indexOf(";")&&0<=b.indexOf(";"+a+";")},"~S,~S");c$.getQuotedAttribute=c(c$,"getQuotedAttribute",function(a,b){var c=a.indexOf(b+"=");return 0>c?null:JU.PT.getQuotedStringAt(a,c)},"~S,~S");c$.approx=c(c$,"approx",function(a,b){return Math.round(a*b)/b},"~N,~N");c$.rep=c(c$,"rep",function(a,b,c){if(null==a|| -0==b.length||0>a.indexOf(b))return a;var h=0<=c.indexOf(b);do a=a.$replace(b,c);while(!h&&0<=a.indexOf(b));return a},"~S,~S,~S");c$.formatF=c(c$,"formatF",function(a,b,c,h,d){return JU.PT.formatS(JU.DF.formatDecimal(a,c),b,0,h,d)},"~N,~N,~N,~B,~B");c$.formatD=c(c$,"formatD",function(a,b,c,h,d){return JU.PT.formatS(JU.DF.formatDecimal(a,-1-c),b,0,h,d)},"~N,~N,~N,~B,~B,~B");c$.formatS=c(c$,"formatS",function(a,b,c,h,d){if(null==a)return"";var l=a.length;2147483647!=c&&0 -c&&0<=l+c&&(a=a.substring(l+c+1));c=b-a.length;if(0>=c)return a;b=d&&!h&&"-"==a.charAt(0);d=d?"0":" ";var g=b?"-":d,l=new JU.SB;h&&l.append(a);for(l.appendC(g);0<--c;)l.appendC(d);h||l.append(b?d+a.substring(1):a);return l.toString()},"~S,~N,~N,~B,~B");c$.replaceWithCharacter=c(c$,"replaceWithCharacter",function(a,b,c){if(null==a)return null;for(var h=b.length;0<=--h;)a=a.$replace(b.charAt(h),c);return a},"~S,~S,~S");c$.replaceAllCharacters=c(c$,"replaceAllCharacters",function(a,b,c){for(var h=b.length;0<= ---h;){var d=b.substring(h,h+1);a=JU.PT.rep(a,d,c)}return a},"~S,~S,~S");c$.trim=c(c$,"trim",function(a,b){if(0==b.length)return a.trim();for(var c=a.length,h=0;hh&&0<=b.indexOf(a.charAt(c));)c--;return a.substring(h,c+1)},"~S,~S");c$.trimQuotes=c(c$,"trimQuotes",function(a){return null!=a&&1c;c+=2)if(0<=a.indexOf('\\\\\tt\rr\nn""'.charAt(c))){b=!0;break}if(b)for(;10>c;){for(var b=-1,d='\\\\\tt\rr\nn""'.charAt(c++),f='\\\\\tt\rr\nn""'.charAt(c++),l=new JU.SB,g=0;0<=(b=a.indexOf(d,b+1));)l.append(a.substring(g,b)).appendC("\\").appendC(f),g=b+1;l.append(a.substring(g,a.length));a=l.toString()}return'"'+JU.PT.escUnicode(a)+'"'},"~S");c$.escUnicode=c(c$,"escUnicode",function(a){for(var b=a.length;0<= ---b;)if(127a.indexOf(".")&&0>a.indexOf("e")&&(a+=".0");return a},"~N");c$.join=c(c$,"join",function(a,b,c){if(a.lengtha.indexOf("%")||0==g||0>a.indexOf(b))return a;var j="",k,n,p;for(k=0;0<=(n=a.indexOf("%",k))&&0<=(p=a.indexOf(b,n+1));)if(k!=n&&(j+=a.substring(k,n)),k=n+1,p>n+6)j+="%";else try{var q=!1;"-"==a.charAt(k)&&(q=!0,++k);var r=!1;"0"== -a.charAt(k)&&(r=!0,++k);for(var t,u=0;"0"<=(t=a.charAt(k))&&"9">=t;)u=10*u+(t.charCodeAt(0)-48),++k;var v=2147483647,w=!1;if("."==a.charAt(k)){++k;if("-"==(t=a.charAt(k)))w=!0,++k;if("0"<=(t=a.charAt(k))&&"9">=t)v=t.charCodeAt(0)-48,++k;w&&(v=-v-(null==c?1:0))}if(a.substring(k,k+g).equals(b)){if(k+=g,Float.isNaN(d)?null!=c?j+=JU.PT.formatS(c,u,v,q,r):Double.isNaN(f)||(j+=JU.PT.formatD(f,u,v,q,r,!0)):j+=JU.PT.formatF(d,u,v,q,r),l)break}else k=n+1,j+="%"}catch(x){if(z(x,IndexOutOfBoundsException)){k= -n;break}else throw x;}return j+=a.substring(k)},"~S,~S,~S,~N,~N,~B");c$.formatStringS=c(c$,"formatStringS",function(a,b,c){return JU.PT.formatString(a,b,c,NaN,NaN,!1)},"~S,~S,~S");c$.formatStringF=c(c$,"formatStringF",function(a,b,c){return JU.PT.formatString(a,b,null,c,NaN,!1)},"~S,~S,~N");c$.formatStringI=c(c$,"formatStringI",function(a,b,c){return JU.PT.formatString(a,b,""+c,NaN,NaN,!1)},"~S,~S,~N");c$.sprintf=c(c$,"sprintf",function(a,b,c){if(null==c)return a;var d=b.length;if(d==c.length)try{for(var f= -0;fa.indexOf("p")&&0>a.indexOf("q"))return a;a=JU.PT.rep(a,"%%","\u0001");a=JU.PT.rep(a,"%p","%6.2p");a=JU.PT.rep(a,"%q","%6.2q"); -a=JU.PT.split(a,"%");var b=new JU.SB;b.append(a[0]);for(var c=1;ca&&(a=0);return(a+" ").substring(0,b)},"~N,~N");c$.isWild=c(c$,"isWild",function(a){return null!=a&&(0<=a.indexOf("*")||0<=a.indexOf("?"))},"~S");c$.isMatch=c(c$,"isMatch",function(a,b,c,d){if(a.equals(b))return!0;var f=b.length;if(0==f)return!1;var l=c&&d?"*"==b.charAt(0):!1;if(1==f&&l)return!0;var g=c&&b.endsWith("*");if(!(0<=b.indexOf("?"))){if(l)return g?3>f||0<=a.indexOf(b.substring(1,f-1)): -a.endsWith(b.substring(1));if(g)return a.startsWith(b.substring(0,f-1))}for(var j=a.length,k="????",n=4;nj;){if(d&&"?"==b.charAt(c))++c;else if("?"!=b.charAt(c+f-1))return!1;--f}for(d=j;0<=--d;)if(f=b.charAt(c+d),"?"!=f&&(j=a.charAt(d),f!=j&&("\u0001"!=f||"?"!=j)))return!1;return!0},"~S,~S,~B,~B");c$.replaceQuotedStrings=c(c$,"replaceQuotedStrings",function(a,b,c){for(var d=b.size(),f=0;f< -d;f++){var l=b.get(f),g=c.get(f);g.equals(l)||(a=JU.PT.rep(a,'"'+l+'"','"'+g+'"'))}return a},"~S,JU.Lst,JU.Lst");c$.replaceStrings=c(c$,"replaceStrings",function(a,b,c){for(var d=b.size(),f=0;f=a},"~S");c$.isUpperCase=c(c$,"isUpperCase",function(a){a=a.charCodeAt(0);return 65<=a&&90>=a},"~S");c$.isLowerCase=c(c$,"isLowerCase",function(a){a= -a.charCodeAt(0);return 97<=a&&122>=a},"~S");c$.isLetter=c(c$,"isLetter",function(a){a=a.charCodeAt(0);return 65<=a&&90>=a||97<=a&&122>=a},"~S");c$.isLetterOrDigit=c(c$,"isLetterOrDigit",function(a){a=a.charCodeAt(0);return 65<=a&&90>=a||97<=a&&122>=a||48<=a&&57>=a},"~S");c$.isWhitespace=c(c$,"isWhitespace",function(a){a=a.charCodeAt(0);return 28<=a&&32>=a||9<=a&&13>=a},"~S");c$.fixPtFloats=c(c$,"fixPtFloats",function(a,b){a.x=Math.round(a.x*b)/b;a.y=Math.round(a.y*b)/b;a.z=Math.round(a.z*b)/b},"JU.T3,~N"); -c$.fixDouble=c(c$,"fixDouble",function(a,b){return Math.round(a*b)/b},"~N,~N");c$.parseFloatFraction=c(c$,"parseFloatFraction",function(a){var b=a.indexOf("/");return 0>b?JU.PT.parseFloat(a):JU.PT.parseFloat(a.substring(0,b))/JU.PT.parseFloat(a.substring(b+1))},"~S");x(c$,"tensScale",M(-1,[10,100,1E3,1E4,1E5,1E6]),"decimalScale",M(-1,[0.1,0.01,0.001,1E-4,1E-5,1E-6,1E-7,1E-8,1E-9]),"FLOAT_MIN_SAFE",2E-45,"escapable",'\\\\\tt\rr\nn""',"FRACTIONAL_PRECISION",1E5,"CARTESIAN_PRECISION",1E4)});p("javajs.api"); -y(javajs.api,"JSONEncodable");p("JU");n(null,"JU.AU",["java.util.Arrays","JU.Lst"],function(){c$=t(JU,"AU");c$.ensureLength=c(c$,"ensureLength",function(a,b){return null!=a&&JU.AU.getLength(a)>=b?a:JU.AU.arrayCopyObject(a,b)},"~O,~N");c$.ensureLengthS=c(c$,"ensureLengthS",function(a,b){return null!=a&&a.length>=b?a:JU.AU.arrayCopyS(a,b)},"~A,~N");c$.ensureLengthA=c(c$,"ensureLengthA",function(a,b){return null!=a&&a.length>=b?a:JU.AU.arrayCopyF(a,b)},"~A,~N");c$.ensureLengthI=c(c$,"ensureLengthI", -function(a,b){return null!=a&&a.length>=b?a:JU.AU.arrayCopyI(a,b)},"~A,~N");c$.ensureLengthShort=c(c$,"ensureLengthShort",function(a,b){return null!=a&&a.length>=b?a:JU.AU.arrayCopyShort(a,b)},"~A,~N");c$.ensureLengthByte=c(c$,"ensureLengthByte",function(a,b){return null!=a&&a.length>=b?a:JU.AU.arrayCopyByte(a,b)},"~A,~N");c$.doubleLength=c(c$,"doubleLength",function(a){return JU.AU.arrayCopyObject(a,null==a?16:2*JU.AU.getLength(a))},"~O");c$.doubleLengthS=c(c$,"doubleLengthS",function(a){return JU.AU.arrayCopyS(a, -null==a?16:2*a.length)},"~A");c$.doubleLengthF=c(c$,"doubleLengthF",function(a){return JU.AU.arrayCopyF(a,null==a?16:2*a.length)},"~A");c$.doubleLengthI=c(c$,"doubleLengthI",function(a){return JU.AU.arrayCopyI(a,null==a?16:2*a.length)},"~A");c$.doubleLengthShort=c(c$,"doubleLengthShort",function(a){return JU.AU.arrayCopyShort(a,null==a?16:2*a.length)},"~A");c$.doubleLengthByte=c(c$,"doubleLengthByte",function(a){return JU.AU.arrayCopyByte(a,null==a?16:2*a.length)},"~A");c$.doubleLengthBool=c(c$,"doubleLengthBool", -function(a){return JU.AU.arrayCopyBool(a,null==a?16:2*a.length)},"~A");c$.deleteElements=c(c$,"deleteElements",function(a,b,c){if(0==c||null==a)return a;var d=JU.AU.getLength(a);if(b>=d)return a;d-=b+c;0>d&&(d=0);var f=JU.AU.newInstanceO(a,b+d);0b&&(b=a.length);var c=Array(b);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,db&&(b=a.length);var c=Array(b);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,db&&(b=a.length);var c=M(b,0);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,db&&(b=a.length);var c=H(b,0);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,dc&&(c=a.length);for(a=A(c/2);0<=--a;)JU.AU.swapInt(b,a,c-1-a);return b},"~A,~N,~N");c$.arrayCopyShort=c(c$,"arrayCopyShort",function(a,b){0>b&&(b=a.length);var c=ma(b,0);if(null!=a){var d=a.length;System.arraycopy(a, -0,c,0,db&&(b=a.length);var c=L(b,0);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,db&&(b=a.length);var c=na(b,!1);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,d=f;l--){a+="\n*"+l+"*";for(g=c;g<=d;g++)a+="\t"+(gb){b=-b;b>JU.DF.formattingStrings.length&&(b=JU.DF.formattingStrings.length);if(0==a)return JU.DF.formattingStrings[b]+"E+0";var d;1>Math.abs(a)?(c=10,d=1E-10*a):(c=-10,d=1E10*a);d=(""+d).toUpperCase();var f=d.indexOf("E");c=JU.PT.parseInt(d.substring(f+1))+c;return 0>f?""+a:JU.DF.formatDecimal(JU.PT.parseFloat(d.substring(0,f)),b-1)+"E"+(0<=c?"+":"")+c}b>=JU.DF.formattingStrings.length&&(b=JU.DF.formattingStrings.length-1);d=(""+a).toUpperCase();c=d.indexOf(".");if(0>c)return d+JU.DF.formattingStrings[b].substring(1); -var l=d.startsWith("-");l&&(d=d.substring(1),c--);f=d.indexOf("E-");0a.indexOf(".")&&0>a.indexOf("e")&&(a+=".0");this.s+=a;return this},"~N");c(c$,"appendD",function(a){a=""+a;0>a.indexOf(".")&&0>a.indexOf("e")&&(a+=".0");this.s+=a;return this},"~N");c(c$,"appendSB",function(a){this.s+=a.s;return this},"JU.SB");c(c$,"appendO",function(a){null!=a&&(this.s+=a.toString());return this}, -"~O");c(c$,"appendCB",function(a,b,c){for(;0<=--c;)this.s+=a[b++]},"~A,~N,~N");d(c$,"toString",function(){return this.s});c(c$,"length",function(){return this.s.length});c(c$,"indexOf",function(a){return this.s.indexOf(a)},"~S");c(c$,"charAt",function(a){return this.s.charAt(a)},"~N");c(c$,"charCodeAt",function(a){return this.s.charCodeAt(a)},"~N");c(c$,"setLength",function(a){this.s=this.s.substring(0,a)},"~N");c(c$,"lastIndexOf",function(a){return this.s.lastIndexOf(a)},"~S");c(c$,"indexOf2",function(a, -b){return this.s.indexOf(a,b)},"~S,~N");c(c$,"substring",function(a){return this.s.substring(a)},"~N");c(c$,"substring2",function(a,b){return this.s.substring(a,b)},"~N,~N");c(c$,"toBytes",function(a,b){0>b&&(b=this.length()-a);for(var c=L(b,0),d=a+b,f=d-a;--d>=a;)c[--f]=this.charAt(d).charCodeAt(0);return c},"~N,~N");c(c$,"replace",function(a,b,c){this.s=this.s.substring(0,a)+c+this.s.substring(b)},"~N,~N,~S");c(c$,"insert",function(a,b){this.replace(a,a,b)},"~N,~S");p("JU");n(null,"JU.M34",["java.lang.ArrayIndexOutOfBoundsException"], -function(){c$=q(function(){this.m22=this.m21=this.m20=this.m12=this.m11=this.m10=this.m02=this.m01=this.m00=0;k(this,arguments)},JU,"M34");c(c$,"setAA33",function(a){var b=a.x,c=a.y,d=a.z;a=a.angle;var f=Math.sqrt(b*b+c*c+d*d),f=1/f,b=b*f,c=c*f,d=d*f,l=Math.cos(a);a=Math.sin(a);f=1-l;this.m00=l+b*b*f;this.m11=l+c*c*f;this.m22=l+d*d*f;var l=b*c*f,g=d*a;this.m01=l-g;this.m10=l+g;l=b*d*f;g=c*a;this.m02=l+g;this.m20=l-g;l=c*d*f;g=b*a;this.m12=l-g;this.m21=l+g},"JU.A4");c(c$,"rotate",function(a){this.rotate2(a, -a)},"JU.T3");c(c$,"rotate2",function(a,b){b.set(this.m00*a.x+this.m01*a.y+this.m02*a.z,this.m10*a.x+this.m11*a.y+this.m12*a.z,this.m20*a.x+this.m21*a.y+this.m22*a.z)},"JU.T3,JU.T3");c(c$,"setM33",function(a){this.m00=a.m00;this.m01=a.m01;this.m02=a.m02;this.m10=a.m10;this.m11=a.m11;this.m12=a.m12;this.m20=a.m20;this.m21=a.m21;this.m22=a.m22},"JU.M34");c(c$,"clear33",function(){this.m00=this.m01=this.m02=this.m10=this.m11=this.m12=this.m20=this.m21=this.m22=0});c(c$,"set33",function(a,b,c){switch(a){case 0:switch(b){case 0:this.m00= -c;return;case 1:this.m01=c;return;case 2:this.m02=c;return}break;case 1:switch(b){case 0:this.m10=c;return;case 1:this.m11=c;return;case 2:this.m12=c;return}break;case 2:switch(b){case 0:this.m20=c;return;case 1:this.m21=c;return;case 2:this.m22=c;return}}this.err()},"~N,~N,~N");c(c$,"get33",function(a,b){switch(a){case 0:switch(b){case 0:return this.m00;case 1:return this.m01;case 2:return this.m02}break;case 1:switch(b){case 0:return this.m10;case 1:return this.m11;case 2:return this.m12}break; -case 2:switch(b){case 0:return this.m20;case 1:return this.m21;case 2:return this.m22}}this.err();return 0},"~N,~N");c(c$,"setRow33",function(a,b){switch(a){case 0:this.m00=b[0];this.m01=b[1];this.m02=b[2];break;case 1:this.m10=b[0];this.m11=b[1];this.m12=b[2];break;case 2:this.m20=b[0];this.m21=b[1];this.m22=b[2];break;default:this.err()}},"~N,~A");c(c$,"getRow33",function(a,b){switch(a){case 0:b[0]=this.m00;b[1]=this.m01;b[2]=this.m02;return;case 1:b[0]=this.m10;b[1]=this.m11;b[2]=this.m12;return; -case 2:b[0]=this.m20;b[1]=this.m21;b[2]=this.m22;return}this.err()},"~N,~A");c(c$,"setColumn33",function(a,b){switch(a){case 0:this.m00=b[0];this.m10=b[1];this.m20=b[2];break;case 1:this.m01=b[0];this.m11=b[1];this.m21=b[2];break;case 2:this.m02=b[0];this.m12=b[1];this.m22=b[2];break;default:this.err()}},"~N,~A");c(c$,"getColumn33",function(a,b){switch(a){case 0:b[0]=this.m00;b[1]=this.m10;b[2]=this.m20;break;case 1:b[0]=this.m01;b[1]=this.m11;b[2]=this.m21;break;case 2:b[0]=this.m02;b[1]=this.m12; -b[2]=this.m22;break;default:this.err()}},"~N,~A");c(c$,"add33",function(a){this.m00+=a.m00;this.m01+=a.m01;this.m02+=a.m02;this.m10+=a.m10;this.m11+=a.m11;this.m12+=a.m12;this.m20+=a.m20;this.m21+=a.m21;this.m22+=a.m22},"JU.M34");c(c$,"sub33",function(a){this.m00-=a.m00;this.m01-=a.m01;this.m02-=a.m02;this.m10-=a.m10;this.m11-=a.m11;this.m12-=a.m12;this.m20-=a.m20;this.m21-=a.m21;this.m22-=a.m22},"JU.M34");c(c$,"mul33",function(a){this.m00*=a;this.m01*=a;this.m02*=a;this.m10*=a;this.m11*=a;this.m12*= -a;this.m20*=a;this.m21*=a;this.m22*=a},"~N");c(c$,"transpose33",function(){var a=this.m01;this.m01=this.m10;this.m10=a;a=this.m02;this.m02=this.m20;this.m20=a;a=this.m12;this.m12=this.m21;this.m21=a});c(c$,"setXRot",function(a){var b=Math.cos(a);a=Math.sin(a);this.m00=1;this.m10=this.m02=this.m01=0;this.m11=b;this.m12=-a;this.m20=0;this.m21=a;this.m22=b},"~N");c(c$,"setYRot",function(a){var b=Math.cos(a);a=Math.sin(a);this.m00=b;this.m01=0;this.m02=a;this.m10=0;this.m11=1;this.m12=0;this.m20=-a;this.m21= -0;this.m22=b},"~N");c(c$,"setZRot",function(a){var b=Math.cos(a);a=Math.sin(a);this.m00=b;this.m01=-a;this.m02=0;this.m10=a;this.m11=b;this.m21=this.m20=this.m12=0;this.m22=1},"~N");c(c$,"determinant3",function(){return this.m00*(this.m11*this.m22-this.m21*this.m12)-this.m01*(this.m10*this.m22-this.m20*this.m12)+this.m02*(this.m10*this.m21-this.m20*this.m11)});c(c$,"err",function(){throw new ArrayIndexOutOfBoundsException("matrix column/row out of bounds");})});p("JU");n(["JU.M34"],"JU.M4",["JU.T3"], -function(){c$=q(function(){this.m33=this.m32=this.m31=this.m30=this.m23=this.m13=this.m03=0;k(this,arguments)},JU,"M4",JU.M34);c$.newA16=c(c$,"newA16",function(a){var b=new JU.M4;b.m00=a[0];b.m01=a[1];b.m02=a[2];b.m03=a[3];b.m10=a[4];b.m11=a[5];b.m12=a[6];b.m13=a[7];b.m20=a[8];b.m21=a[9];b.m22=a[10];b.m23=a[11];b.m30=a[12];b.m31=a[13];b.m32=a[14];b.m33=a[15];return b},"~A");c$.newM4=c(c$,"newM4",function(a){var b=new JU.M4;if(null==a)return b.setIdentity(),b;b.setToM3(a);b.m03=a.m03;b.m13=a.m13;b.m23= -a.m23;b.m30=a.m30;b.m31=a.m31;b.m32=a.m32;b.m33=a.m33;return b},"JU.M4");c$.newMV=c(c$,"newMV",function(a,b){var c=new JU.M4;c.setMV(a,b);return c},"JU.M3,JU.T3");c(c$,"setZero",function(){this.clear33();this.m03=this.m13=this.m23=this.m30=this.m31=this.m32=this.m33=0});c(c$,"setIdentity",function(){this.setZero();this.m00=this.m11=this.m22=this.m33=1});c(c$,"setM4",function(a){this.setM33(a);this.m03=a.m03;this.m13=a.m13;this.m23=a.m23;this.m30=a.m30;this.m31=a.m31;this.m32=a.m32;this.m33=a.m33; -return this},"JU.M4");c(c$,"setMV",function(a,b){this.setM33(a);this.setTranslation(b);this.m33=1},"JU.M3,JU.T3");c(c$,"setToM3",function(a){this.setM33(a);this.m03=this.m13=this.m23=this.m30=this.m31=this.m32=0;this.m33=1},"JU.M34");c(c$,"setToAA",function(a){this.setIdentity();this.setAA33(a)},"JU.A4");c(c$,"setA",function(a){this.m00=a[0];this.m01=a[1];this.m02=a[2];this.m03=a[3];this.m10=a[4];this.m11=a[5];this.m12=a[6];this.m13=a[7];this.m20=a[8];this.m21=a[9];this.m22=a[10];this.m23=a[11];this.m30= -a[12];this.m31=a[13];this.m32=a[14];this.m33=a[15]},"~A");c(c$,"setTranslation",function(a){this.m03=a.x;this.m13=a.y;this.m23=a.z},"JU.T3");c(c$,"setElement",function(a,b,c){if(3>a&&3>b)this.set33(a,b,c);else{(3a&&3>b)return this.get33(a,b);if(3< -a||3a&&this.setRow33(a,b);switch(a){case 0:this.m03=b[3];return;case 1:this.m13=b[3];return;case 2:this.m23=b[3];return;case 3:this.m30=b[0];this.m31=b[1];this.m32=b[2];this.m33=b[3];return}this.err()},"~N,~A");d(c$,"getRow",function(a,b){3>a&&this.getRow33(a,b);switch(a){case 0:b[3]=this.m03;return;case 1:b[3]=this.m13; -return;case 2:b[3]=this.m23;return;case 3:b[0]=this.m30;b[1]=this.m31;b[2]=this.m32;b[3]=this.m33;return}this.err()},"~N,~A");c(c$,"setColumn4",function(a,b,c,d,f){0==a?(this.m00=b,this.m10=c,this.m20=d,this.m30=f):1==a?(this.m01=b,this.m11=c,this.m21=d,this.m31=f):2==a?(this.m02=b,this.m12=c,this.m22=d,this.m32=f):3==a?(this.m03=b,this.m13=c,this.m23=d,this.m33=f):this.err()},"~N,~N,~N,~N,~N");c(c$,"setColumnA",function(a,b){3>a&&this.setColumn33(a,b);switch(a){case 0:this.m30=b[3];break;case 1:this.m31= -b[3];break;case 2:this.m32=b[3];break;case 3:this.m03=b[0];this.m13=b[1];this.m23=b[2];this.m33=b[3];break;default:this.err()}},"~N,~A");c(c$,"getColumn",function(a,b){3>a&&this.getColumn33(a,b);switch(a){case 0:b[3]=this.m30;break;case 1:b[3]=this.m31;break;case 2:b[3]=this.m32;break;case 3:b[0]=this.m03;b[1]=this.m13;b[2]=this.m23;b[3]=this.m33;break;default:this.err()}},"~N,~A");c(c$,"sub",function(a){this.sub33(a);this.m03-=a.m03;this.m13-=a.m13;this.m23-=a.m23;this.m30-=a.m30;this.m31-=a.m31; -this.m32-=a.m32;this.m33-=a.m33},"JU.M4");c(c$,"transpose",function(){this.transpose33();var a=this.m03;this.m03=this.m30;this.m30=a;a=this.m13;this.m13=this.m31;this.m31=a;a=this.m23;this.m23=this.m32;this.m32=a});c(c$,"invert",function(){var a=this.determinant4();if(0==a)return this;a=1/a;this.set(this.m11*(this.m22*this.m33-this.m23*this.m32)+this.m12*(this.m23*this.m31-this.m21*this.m33)+this.m13*(this.m21*this.m32-this.m22*this.m31),this.m21*(this.m02*this.m33-this.m03*this.m32)+this.m22*(this.m03* -this.m31-this.m01*this.m33)+this.m23*(this.m01*this.m32-this.m02*this.m31),this.m31*(this.m02*this.m13-this.m03*this.m12)+this.m32*(this.m03*this.m11-this.m01*this.m13)+this.m33*(this.m01*this.m12-this.m02*this.m11),this.m01*(this.m13*this.m22-this.m12*this.m23)+this.m02*(this.m11*this.m23-this.m13*this.m21)+this.m03*(this.m12*this.m21-this.m11*this.m22),this.m12*(this.m20*this.m33-this.m23*this.m30)+this.m13*(this.m22*this.m30-this.m20*this.m32)+this.m10*(this.m23*this.m32-this.m22*this.m33),this.m22* -(this.m00*this.m33-this.m03*this.m30)+this.m23*(this.m02*this.m30-this.m00*this.m32)+this.m20*(this.m03*this.m32-this.m02*this.m33),this.m32*(this.m00*this.m13-this.m03*this.m10)+this.m33*(this.m02*this.m10-this.m00*this.m12)+this.m30*(this.m03*this.m12-this.m02*this.m13),this.m02*(this.m13*this.m20-this.m10*this.m23)+this.m03*(this.m10*this.m22-this.m12*this.m20)+this.m00*(this.m12*this.m23-this.m13*this.m22),this.m13*(this.m20*this.m31-this.m21*this.m30)+this.m10*(this.m21*this.m33-this.m23*this.m31)+ -this.m11*(this.m23*this.m30-this.m20*this.m33),this.m23*(this.m00*this.m31-this.m01*this.m30)+this.m20*(this.m01*this.m33-this.m03*this.m31)+this.m21*(this.m03*this.m30-this.m00*this.m33),this.m33*(this.m00*this.m11-this.m01*this.m10)+this.m30*(this.m01*this.m13-this.m03*this.m11)+this.m31*(this.m03*this.m10-this.m00*this.m13),this.m03*(this.m11*this.m20-this.m10*this.m21)+this.m00*(this.m13*this.m21-this.m11*this.m23)+this.m01*(this.m10*this.m23-this.m13*this.m20),this.m10*(this.m22*this.m31-this.m21* -this.m32)+this.m11*(this.m20*this.m32-this.m22*this.m30)+this.m12*(this.m21*this.m30-this.m20*this.m31),this.m20*(this.m02*this.m31-this.m01*this.m32)+this.m21*(this.m00*this.m32-this.m02*this.m30)+this.m22*(this.m01*this.m30-this.m00*this.m31),this.m30*(this.m02*this.m11-this.m01*this.m12)+this.m31*(this.m00*this.m12-this.m02*this.m10)+this.m32*(this.m01*this.m10-this.m00*this.m11),this.m00*(this.m11*this.m22-this.m12*this.m21)+this.m01*(this.m12*this.m20-this.m10*this.m22)+this.m02*(this.m10*this.m21- -this.m11*this.m20));this.scale(a);return this});c(c$,"set",function(a,b,c,d,f,l,g,j,k,n,p,q,r,t,u,v){this.m00=a;this.m01=b;this.m02=c;this.m03=d;this.m10=f;this.m11=l;this.m12=g;this.m13=j;this.m20=k;this.m21=n;this.m22=p;this.m23=q;this.m30=r;this.m31=t;this.m32=u;this.m33=v},"~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N");c(c$,"determinant4",function(){return(this.m00*this.m11-this.m01*this.m10)*(this.m22*this.m33-this.m23*this.m32)-(this.m00*this.m12-this.m02*this.m10)*(this.m21*this.m33-this.m23* -this.m31)+(this.m00*this.m13-this.m03*this.m10)*(this.m21*this.m32-this.m22*this.m31)+(this.m01*this.m12-this.m02*this.m11)*(this.m20*this.m33-this.m23*this.m30)-(this.m01*this.m13-this.m03*this.m11)*(this.m20*this.m32-this.m22*this.m30)+(this.m02*this.m13-this.m03*this.m12)*(this.m20*this.m31-this.m21*this.m30)});c(c$,"scale",function(a){this.mul33(a);this.m03*=a;this.m13*=a;this.m23*=a;this.m30*=a;this.m31*=a;this.m32*=a;this.m33*=a},"~N");c(c$,"mul",function(a){this.mul2(this,a)},"JU.M4");c(c$, -"mul2",function(a,b){this.set(a.m00*b.m00+a.m01*b.m10+a.m02*b.m20+a.m03*b.m30,a.m00*b.m01+a.m01*b.m11+a.m02*b.m21+a.m03*b.m31,a.m00*b.m02+a.m01*b.m12+a.m02*b.m22+a.m03*b.m32,a.m00*b.m03+a.m01*b.m13+a.m02*b.m23+a.m03*b.m33,a.m10*b.m00+a.m11*b.m10+a.m12*b.m20+a.m13*b.m30,a.m10*b.m01+a.m11*b.m11+a.m12*b.m21+a.m13*b.m31,a.m10*b.m02+a.m11*b.m12+a.m12*b.m22+a.m13*b.m32,a.m10*b.m03+a.m11*b.m13+a.m12*b.m23+a.m13*b.m33,a.m20*b.m00+a.m21*b.m10+a.m22*b.m20+a.m23*b.m30,a.m20*b.m01+a.m21*b.m11+a.m22*b.m21+a.m23* -b.m31,a.m20*b.m02+a.m21*b.m12+a.m22*b.m22+a.m23*b.m32,a.m20*b.m03+a.m21*b.m13+a.m22*b.m23+a.m23*b.m33,a.m30*b.m00+a.m31*b.m10+a.m32*b.m20+a.m33*b.m30,a.m30*b.m01+a.m31*b.m11+a.m32*b.m21+a.m33*b.m31,a.m30*b.m02+a.m31*b.m12+a.m32*b.m22+a.m33*b.m32,a.m30*b.m03+a.m31*b.m13+a.m32*b.m23+a.m33*b.m33)},"JU.M4,JU.M4");c(c$,"transform",function(a){this.transform2(a,a)},"JU.T4");c(c$,"transform2",function(a,b){b.set4(this.m00*a.x+this.m01*a.y+this.m02*a.z+this.m03*a.w,this.m10*a.x+this.m11*a.y+this.m12*a.z+ -this.m13*a.w,this.m20*a.x+this.m21*a.y+this.m22*a.z+this.m23*a.w,this.m30*a.x+this.m31*a.y+this.m32*a.z+this.m33*a.w)},"JU.T4,JU.T4");c(c$,"rotTrans",function(a){this.rotTrans2(a,a)},"JU.T3");c(c$,"rotTrans2",function(a,b){b.set(this.m00*a.x+this.m01*a.y+this.m02*a.z+this.m03,this.m10*a.x+this.m11*a.y+this.m12*a.z+this.m13,this.m20*a.x+this.m21*a.y+this.m22*a.z+this.m23);return b},"JU.T3,JU.T3");c(c$,"setAsXYRotation",function(a){this.setIdentity();var b=Math.cos(a);a=Math.sin(a);this.m22=b;this.m23= --a;this.m32=a;this.m33=b;return this},"~N");c(c$,"setAsYZRotation",function(a){this.setIdentity();var b=Math.cos(a);a=Math.sin(a);this.m00=b;this.m03=-a;this.m30=a;this.m33=b;return this},"~N");c(c$,"setAsXZRotation",function(a){this.setIdentity();var b=Math.cos(a);a=Math.sin(a);this.m11=b;this.m13=-a;this.m31=a;this.m33=b;return this},"~N");d(c$,"equals",function(a){return!j(a,JU.M4)?!1:this.m00==a.m00&&this.m01==a.m01&&this.m02==a.m02&&this.m03==a.m03&&this.m10==a.m10&&this.m11==a.m11&&this.m12== -a.m12&&this.m13==a.m13&&this.m20==a.m20&&this.m21==a.m21&&this.m22==a.m22&&this.m23==a.m23&&this.m30==a.m30&&this.m31==a.m31&&this.m32==a.m32&&this.m33==a.m33},"~O");d(c$,"hashCode",function(){return JU.T3.floatToIntBits0(this.m00)^JU.T3.floatToIntBits0(this.m01)^JU.T3.floatToIntBits0(this.m02)^JU.T3.floatToIntBits0(this.m03)^JU.T3.floatToIntBits0(this.m10)^JU.T3.floatToIntBits0(this.m11)^JU.T3.floatToIntBits0(this.m12)^JU.T3.floatToIntBits0(this.m13)^JU.T3.floatToIntBits0(this.m20)^JU.T3.floatToIntBits0(this.m21)^ -JU.T3.floatToIntBits0(this.m22)^JU.T3.floatToIntBits0(this.m23)^JU.T3.floatToIntBits0(this.m30)^JU.T3.floatToIntBits0(this.m31)^JU.T3.floatToIntBits0(this.m32)^JU.T3.floatToIntBits0(this.m33)});d(c$,"toString",function(){return"[\n ["+this.m00+"\t"+this.m01+"\t"+this.m02+"\t"+this.m03+"]\n ["+this.m10+"\t"+this.m11+"\t"+this.m12+"\t"+this.m13+"]\n ["+this.m20+"\t"+this.m21+"\t"+this.m22+"\t"+this.m23+"]\n ["+this.m30+"\t"+this.m31+"\t"+this.m32+"\t"+this.m33+"] ]"})});p("JU");n(["javajs.api.JSONEncodable"], -"JU.T3",["java.lang.Float"],function(){c$=q(function(){this.z=this.y=this.x=0;k(this,arguments)},JU,"T3",null,[javajs.api.JSONEncodable,java.io.Serializable]);c(c$,"set",function(a,b,c){this.x=a;this.y=b;this.z=c},"~N,~N,~N");c(c$,"setA",function(a){this.x=a[0];this.y=a[1];this.z=a[2]},"~A");c(c$,"setT",function(a){this.x=a.x;this.y=a.y;this.z=a.z},"JU.T3");c(c$,"add2",function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z},"JU.T3,JU.T3");c(c$,"add",function(a){this.x+=a.x;this.y+=a.y;this.z+= -a.z},"JU.T3");c(c$,"distanceSquared",function(a){var b=this.x-a.x,c=this.y-a.y;a=this.z-a.z;return b*b+c*c+a*a},"JU.T3");c(c$,"distance",function(a){return Math.sqrt(this.distanceSquared(a))},"JU.T3");c(c$,"sub2",function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z},"JU.T3,JU.T3");c(c$,"sub",function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z},"JU.T3");c(c$,"scale",function(a){this.x*=a;this.y*=a;this.z*=a},"~N");c(c$,"add3",function(a,b,c){this.x+=a;this.y+=b;this.z+=c},"~N,~N,~N");c(c$,"scaleT", -function(a){this.x*=a.x;this.y*=a.y;this.z*=a.z},"JU.T3");c(c$,"scaleAdd2",function(a,b,c){this.x=a*b.x+c.x;this.y=a*b.y+c.y;this.z=a*b.z+c.z},"~N,JU.T3,JU.T3");c(c$,"ave",function(a,b){this.x=(a.x+b.x)/2;this.y=(a.y+b.y)/2;this.z=(a.z+b.z)/2},"JU.T3,JU.T3");c(c$,"dot",function(a){return this.x*a.x+this.y*a.y+this.z*a.z},"JU.T3");c(c$,"lengthSquared",function(){return this.x*this.x+this.y*this.y+this.z*this.z});c(c$,"length",function(){return Math.sqrt(this.lengthSquared())});c(c$,"normalize",function(){var a= -this.length();this.x/=a;this.y/=a;this.z/=a});c(c$,"cross",function(a,b){this.set(a.y*b.z-a.z*b.y,a.z*b.x-a.x*b.z,a.x*b.y-a.y*b.x)},"JU.T3,JU.T3");d(c$,"hashCode",function(){var a;a=31+JU.T3.floatToIntBits0(this.x);a=31*a+JU.T3.floatToIntBits0(this.y);a=31*a+JU.T3.floatToIntBits0(this.z);return a^a>>32});c$.floatToIntBits0=c(c$,"floatToIntBits0",function(a){return 0==a?0:Float.floatToIntBits(a)},"~N");d(c$,"equals",function(a){return!j(a,JU.T3)?!1:this.x==a.x&&this.y==a.y&&this.z==a.z},"~O");d(c$, -"toString",function(){return"{"+this.x+", "+this.y+", "+this.z+"}"});d(c$,"toJSON",function(){return"["+this.x+","+this.y+","+this.z+"]"})});p("javax.swing");n(["java.awt.LayoutManager2","javax.swing.AbstractAction","$.JComponent"],"javax.swing.JRootPane","java.lang.IllegalArgumentException $.NullPointerException java.awt.BorderLayout $.Dimension $.IllegalComponentStateException javax.swing.JLayeredPane $.JPanel $.SwingUtilities $.UIManager jssun.awt.AppContext".split(" "),function(){c$=q(function(){this.windowDecorationStyle= -0;this.defaultReleaseAction=this.defaultPressAction=this.defaultButton=this.glassPane=this.layeredPane=this.contentPane=this.menuBar=null;this.useTrueDoubleBuffering=!0;C("javax.swing.JRootPane.RootLayout")||javax.swing.JRootPane.$JRootPane$RootLayout$();k(this,arguments)},javax.swing,"JRootPane",javax.swing.JComponent);g(c$,function(){r(this,javax.swing.JRootPane,[]);var a=jssun.awt.AppContext.getAppContext().getThreadGroup().getName();this.setName(a+".JRootPane");this.setGlassPane(this.createGlassPane()); -this.setLayeredPane(this.createLayeredPane());this.setContentPane(this.createContentPane());this.setLayout(this.createRootLayout());this.updateUI()});d(c$,"setDoubleBuffered",function(){},"~B");c(c$,"getWindowDecorationStyle",function(){return this.windowDecorationStyle});c(c$,"setWindowDecorationStyle",function(a){if(0>a||8a)return this.getWidths()[a];var b=R(2,"\x00");a=Character.toChars(a,b,0);return this.charsWidth(b,0,a)},"~N");v(self.c$);c$=q(function(){this.val=this.key=null;k(this,arguments)},jssun.font.FontDesignMetrics,"KeyReference");g(c$,function(a,b){this.key=a;this.val=b},"~O,~O");c(c$,"get",function(){return this.val});c(c$,"dispose",function(){jssun.font.FontDesignMetrics.metricsCache.get(this.key)=== +this&&jssun.font.FontDesignMetrics.metricsCache.remove(this.key)});c$=w();x(c$,"roundingUpValue",0.95);c$.metricsCache=c$.prototype.metricsCache=new java.util.Hashtable;x(c$,"MAXRECENT",5);c$.recentMetrics=c$.prototype.recentMetrics=Array(5);x(c$,"recentIndex",0)});p("java.awt");n(["java.awt.font.FontRenderContext"],"java.awt.FontMetrics",null,function(){c$=q(function(){this.font=null;k(this,arguments)},java.awt,"FontMetrics");g(c$,function(a){this.font=a},"java.awt.Font");c(c$,"getFont",function(){return this.font}); +c(c$,"getFontRenderContext",function(){return java.awt.FontMetrics.DEFAULT_FRC});c(c$,"getHeight",function(){return this.getLeading()+this.getAscent()+this.getDescent()});c(c$,"getMaxAscent",function(){return this.getAscent()});c(c$,"getMaxDescent",function(){return this.getDescent()});c(c$,"getMaxAdvance",function(){return this.charWidth("M")});c(c$,"charsWidth",function(a,b,c){return this.stringWidth(String.instantialize(a,b,c))},"~A,~N,~N");c(c$,"bytesWidth",function(a,b,c){return this.stringWidth(String.instantialize(a, +0,b,c))},"~A,~N,~N");d(c$,"toString",function(){return this.getClass().getName()+"[font="+this.getFont()+"ascent="+this.getAscent()+", descent="+this.getDescent()+", height="+this.getHeight()+"]"});c$.DEFAULT_FRC=c$.prototype.DEFAULT_FRC=new java.awt.font.FontRenderContext(null,!1,!1)});p("JU");n(null,"JU.PT","java.lang.Boolean $.Double $.Float $.Number java.util.Map javajs.api.JSONEncodable JU.AU $.DF $.Lst $.M34 $.M4 $.SB".split(" "),function(){c$=t(JU,"PT");c$.parseInt=c(c$,"parseInt",function(a){return JU.PT.parseIntNext(a, +H(-1,[0]))},"~S");c$.parseIntNext=c(c$,"parseIntNext",function(a,b){var c=a.length;return 0>b[0]||b[0]>=c?-2147483648:JU.PT.parseIntChecked(a,c,b)},"~S,~A");c$.parseIntChecked=c(c$,"parseIntChecked",function(a,b,c){var h=!1,d=0,l=c[0];if(0>l)return-2147483648;for(var m;l=m;)d=10*d+(m-48),h=!0,++l;h?g&&(d=-d):d=-2147483648;c[0]=l;return d},"~S,~N,~A");c$.isWhiteSpace=c(c$,"isWhiteSpace", +function(a,b){var c;return 0<=b&&(" "==(c=a.charAt(b))||"\t"==c||"\n"==c)},"~S,~N");c$.parseFloatChecked=c(c$,"parseFloatChecked",function(a,b,c,h){var d=!1,l=c[0];if(h&&a.indexOf("\n")!=a.lastIndexOf("\n"))return NaN;for(;l=g;)j=10*j+1*(g-48),++l,d=!0;var n=!1,p=0,q=0==j?-1:0;if(46==g)for(n=!0;++l=g;){d=!0;if(0>q){if(48==g){q--;continue}q= +-q}p=b)return NaN;g=a.charCodeAt(l);if(43==g&&++l>=b)return NaN;c[0]=l;l=JU.PT.parseIntChecked(a,b,c);if(-2147483648==l)return NaN;0l&&-l<=JU.PT.decimalScale.length?d*=JU.PT.decimalScale[-l-1]:0!=l&&(d*=Math.pow(10, +l))}else c[0]=l;m&&(d=-d);Infinity==d&&(d=3.4028235E38);return!h||(!j||n)&&JU.PT.checkTrailingText(a,c[0],b)?d:NaN},"~S,~N,~A,~B");c$.checkTrailingText=c(c$,"checkTrailingText",function(a,b,c){for(var h;bm?m=a.length:a=a.substring(0,m),b[0]+=m+1,a=JU.PT.getTokens(a),null==c&&(c=M(a.length,0)),l=JU.PT.parseFloatArrayInfested(a,c));if(null==c)return M(0,0);for(a= +l;ah&&(b=h);return 0>c[0]||c[0]>=b?NaN:JU.PT.parseFloatChecked(a,b,c,!1)},"~S,~N,~A");c$.parseFloatNext=c(c$,"parseFloatNext",function(a,b){var c=null==a?-1:a.length;return 0>b[0]||b[0]>=c?NaN:JU.PT.parseFloatChecked(a,c,b,!1)},"~S,~A");c$.parseFloatStrict=c(c$,"parseFloatStrict",function(a){var b=a.length;return 0==b?NaN:JU.PT.parseFloatChecked(a,b,H(-1,[0]),!0)},"~S");c$.parseFloat= +c(c$,"parseFloat",function(a){return JU.PT.parseFloatNext(a,H(-1,[0]))},"~S");c$.parseIntRadix=c(c$,"parseIntRadix",function(a,b){return Integer.parseIntRadix(a,b)},"~S,~N");c$.getTokens=c(c$,"getTokens",function(a){return JU.PT.getTokensAt(a,0)},"~S");c$.parseToken=c(c$,"parseToken",function(a){return JU.PT.parseTokenNext(a,H(-1,[0]))},"~S");c$.parseTrimmed=c(c$,"parseTrimmed",function(a){return JU.PT.parseTrimmedRange(a,0,a.length)},"~S");c$.parseTrimmedAt=c(c$,"parseTrimmedAt",function(a,b){return JU.PT.parseTrimmedRange(a, +b,a.length)},"~S,~N");c$.parseTrimmedRange=c(c$,"parseTrimmedRange",function(a,b,c){var h=a.length;cb||b>c)return null;var h=JU.PT.countTokens(a,b),d=Array(h),l=H(1,0);l[0]=b;for(var m=0;mb[0]||b[0]>=c?null:JU.PT.parseTokenChecked(a,c,b)},"~S,~A");c$.parseTokenRange=c(c$,"parseTokenRange",function(a,b,c){var h=a.length;b>h&&(b=h);return 0>c[0]||c[0]>=b?null:JU.PT.parseTokenChecked(a,b,c)},"~S,~N,~A");c$.parseTokenChecked=c(c$,"parseTokenChecked",function(a,b,c){for(var h=c[0];h=b&&JU.PT.isWhiteSpace(a,c);)--c;return ch&&(b=h);return 0>c[0]||c[0]>=b?-2147483648:JU.PT.parseIntChecked(a,b,c)},"~S,~N,~A");c$.parseFloatArrayData=c(c$,"parseFloatArrayData",function(a,b){JU.PT.parseFloatArrayDataN(a,b,b.length)},"~A,~A");c$.parseFloatArrayDataN=c(c$,"parseFloatArrayDataN",function(a,b,c){for(;0<=--c;)b[c]=c>=a.length?NaN:JU.PT.parseFloat(a[c])},"~A,~A,~N");c$.split=c(c$,"split",function(a,b){if(0==a.length)return[]; +var c=1,h=a.indexOf(b),d,l=b.length;if(0>h||0==l)return d=Array(1),d[0]=a,d;for(var m=a.length-l;0<=h&&hc||0>(c=a.indexOf('"', +c)))return"";for(var h=c+1,d=a.length;++cc||0>(c=a.indexOf('"',c)))return null;for(var h=b[0]=c,d=a.length,l=!1,m=!1;++c=d)return b[1]=-1,null;b[1]=c+1;c=a.substring(h+1,c);return m?JU.PT.rep(JU.PT.rep(c,'""',"\x00"),"\x00",'"'):c},"~S,~A");c$.isOneOf=c(c$,"isOneOf",function(a, +b){if(0==b.length)return!1;";"!=b.charAt(0)&&(b=";"+b+";");return 0>a.indexOf(";")&&0<=b.indexOf(";"+a+";")},"~S,~S");c$.getQuotedAttribute=c(c$,"getQuotedAttribute",function(a,b){var c=a.indexOf(b+"=");return 0>c?null:JU.PT.getQuotedStringAt(a,c)},"~S,~S");c$.approx=c(c$,"approx",function(a,b){return Math.round(a*b)/b},"~N,~N");c$.rep=c(c$,"rep",function(a,b,c){if(null==a||0==b.length||0>a.indexOf(b))return a;var h=0<=c.indexOf(b);do a=a.$replace(b,c);while(!h&&0<=a.indexOf(b));return a},"~S,~S,~S"); +c$.formatF=c(c$,"formatF",function(a,b,c,h,d){return JU.PT.formatS(JU.DF.formatDecimal(a,c),b,0,h,d)},"~N,~N,~N,~B,~B");c$.formatD=c(c$,"formatD",function(a,b,c,h,d){return JU.PT.formatS(JU.DF.formatDecimal(a,-1-c),b,0,h,d)},"~N,~N,~N,~B,~B,~B");c$.formatS=c(c$,"formatS",function(a,b,c,h,d){if(null==a)return"";var l=a.length;2147483647!=c&&0c&&0<=l+c&&(a=a.substring(l+c+1));c=b-a.length;if(0>=c)return a;b=d&&!h&&"-"==a.charAt(0);d=d?"0":" ";var m=b?"-":d,l=new JU.SB;h&& +l.append(a);for(l.appendC(m);0<--c;)l.appendC(d);h||l.append(b?d+a.substring(1):a);return l.toString()},"~S,~N,~N,~B,~B");c$.replaceWithCharacter=c(c$,"replaceWithCharacter",function(a,b,c){if(null==a)return null;for(var h=b.length;0<=--h;)a=a.$replace(b.charAt(h),c);return a},"~S,~S,~S");c$.replaceAllCharacters=c(c$,"replaceAllCharacters",function(a,b,c){for(var h=b.length;0<=--h;){var d=b.substring(h,h+1);a=JU.PT.rep(a,d,c)}return a},"~S,~S,~S");c$.trim=c(c$,"trim",function(a,b){if(0==b.length)return a.trim(); +for(var c=a.length,h=0;hh&&0<=b.indexOf(a.charAt(c));)c--;return a.substring(h,c+1)},"~S,~S");c$.trimQuotes=c(c$,"trimQuotes",function(a){return null!=a&&1c;c+=2)if(0<=a.indexOf('\\\\\tt\rr\nn""'.charAt(c))){b=!0; +break}if(b)for(;10>c;){for(var b=-1,d='\\\\\tt\rr\nn""'.charAt(c++),f='\\\\\tt\rr\nn""'.charAt(c++),l=new JU.SB,g=0;0<=(b=a.indexOf(d,b+1));)l.append(a.substring(g,b)).appendC("\\").appendC(f),g=b+1;l.append(a.substring(g,a.length));a=l.toString()}return'"'+JU.PT.escUnicode(a)+'"'},"~S");c$.escUnicode=c(c$,"escUnicode",function(a){for(var b=a.length;0<=--b;)if(127a.indexOf(".")&&0>a.indexOf("e")&&(a+=".0");return a},"~N");c$.join=c(c$,"join",function(a,b,c){if(a.lengtha.indexOf("%")||0==g||0>a.indexOf(b))return a;var j="",k,n,p;for(k=0;0<=(n=a.indexOf("%",k))&&0<=(p=a.indexOf(b,n+1));)if(k!=n&&(j+=a.substring(k,n)),k=n+1,p>n+6)j+="%";else try{var q=!1;"-"==a.charAt(k)&&(q=!0,++k);var r=!1;"0"==a.charAt(k)&&(r=!0,++k);for(var t,u=0;"0"<=(t=a.charAt(k))&&"9">=t;)u=10*u+(t.charCodeAt(0)-48),++k;var v=2147483647,w=!1;if("."==a.charAt(k)){++k;if("-"==(t=a.charAt(k)))w= +!0,++k;if("0"<=(t=a.charAt(k))&&"9">=t)v=t.charCodeAt(0)-48,++k;w&&(v=-v-(null==c?1:0))}if(a.substring(k,k+g).equals(b)){if(k+=g,Float.isNaN(d)?null!=c?j+=JU.PT.formatS(c,u,v,q,r):Double.isNaN(f)||(j+=JU.PT.formatD(f,u,v,q,r,!0)):j+=JU.PT.formatF(d,u,v,q,r),l)break}else k=n+1,j+="%"}catch(x){if(z(x,IndexOutOfBoundsException)){k=n;break}else throw x;}return j+=a.substring(k)},"~S,~S,~S,~N,~N,~B");c$.formatStringS=c(c$,"formatStringS",function(a,b,c){return JU.PT.formatString(a,b,c,NaN,NaN,!1)},"~S,~S,~S"); +c$.formatStringF=c(c$,"formatStringF",function(a,b,c){return JU.PT.formatString(a,b,null,c,NaN,!1)},"~S,~S,~N");c$.formatStringI=c(c$,"formatStringI",function(a,b,c){return JU.PT.formatString(a,b,""+c,NaN,NaN,!1)},"~S,~S,~N");c$.sprintf=c(c$,"sprintf",function(a,b,c){if(null==c)return a;var d=b.length;if(d==c.length)try{for(var f=0;fa.indexOf("p")&&0>a.indexOf("q"))return a;a=JU.PT.rep(a,"%%","\u0001");a=JU.PT.rep(a,"%p","%6.2p");a=JU.PT.rep(a,"%q","%6.2q");a=JU.PT.split(a,"%");var b=new JU.SB;b.append(a[0]);for(var c=1;ca&&(a=0);return(a+" ").substring(0,b)},"~N,~N");c$.isWild=c(c$,"isWild",function(a){return null!= +a&&(0<=a.indexOf("*")||0<=a.indexOf("?"))},"~S");c$.isMatch=c(c$,"isMatch",function(a,b,c,d){if(a.equals(b))return!0;var f=b.length;if(0==f)return!1;var l=c&&d?"*"==b.charAt(0):!1;if(1==f&&l)return!0;var g=c&&b.endsWith("*");if(!(0<=b.indexOf("?"))){if(l)return g?3>f||0<=a.indexOf(b.substring(1,f-1)):a.endsWith(b.substring(1));if(g)return a.startsWith(b.substring(0,f-1))}for(var j=a.length,k="????",n=4;nj;){if(d&&"?"==b.charAt(c))++c;else if("?"!=b.charAt(c+f-1))return!1;--f}for(d=j;0<=--d;)if(f=b.charAt(c+d),"?"!=f&&(j=a.charAt(d),f!=j&&("\u0001"!=f||"?"!=j)))return!1;return!0},"~S,~S,~B,~B");c$.replaceQuotedStrings=c(c$,"replaceQuotedStrings",function(a,b,c){for(var d=b.size(),f=0;f=a},"~S");c$.isUpperCase=c(c$,"isUpperCase",function(a){a=a.charCodeAt(0);return 65<=a&&90>=a},"~S");c$.isLowerCase=c(c$,"isLowerCase",function(a){a=a.charCodeAt(0);return 97<=a&&122>=a},"~S");c$.isLetter=c(c$,"isLetter",function(a){a=a.charCodeAt(0);return 65<=a&&90>=a||97<=a&&122>=a},"~S");c$.isLetterOrDigit=c(c$,"isLetterOrDigit",function(a){a= +a.charCodeAt(0);return 65<=a&&90>=a||97<=a&&122>=a||48<=a&&57>=a},"~S");c$.isWhitespace=c(c$,"isWhitespace",function(a){a=a.charCodeAt(0);return 28<=a&&32>=a||9<=a&&13>=a},"~S");c$.fixPtFloats=c(c$,"fixPtFloats",function(a,b){a.x=Math.round(a.x*b)/b;a.y=Math.round(a.y*b)/b;a.z=Math.round(a.z*b)/b},"JU.T3,~N");c$.fixDouble=c(c$,"fixDouble",function(a,b){return Math.round(a*b)/b},"~N,~N");c$.parseFloatFraction=c(c$,"parseFloatFraction",function(a){var b=a.indexOf("/");return 0>b?JU.PT.parseFloat(a): +JU.PT.parseFloat(a.substring(0,b))/JU.PT.parseFloat(a.substring(b+1))},"~S");x(c$,"tensScale",M(-1,[10,100,1E3,1E4,1E5,1E6]),"decimalScale",M(-1,[0.1,0.01,0.001,1E-4,1E-5,1E-6,1E-7,1E-8,1E-9]),"FLOAT_MIN_SAFE",2E-45,"escapable",'\\\\\tt\rr\nn""',"FRACTIONAL_PRECISION",1E5,"CARTESIAN_PRECISION",1E4)});p("javajs.api");y(javajs.api,"JSONEncodable");p("JU");n(null,"JU.AU",["java.util.Arrays","JU.Lst"],function(){c$=t(JU,"AU");c$.ensureLength=c(c$,"ensureLength",function(a,b){return null!=a&&JU.AU.getLength(a)>= +b?a:JU.AU.arrayCopyObject(a,b)},"~O,~N");c$.ensureLengthS=c(c$,"ensureLengthS",function(a,b){return null!=a&&a.length>=b?a:JU.AU.arrayCopyS(a,b)},"~A,~N");c$.ensureLengthA=c(c$,"ensureLengthA",function(a,b){return null!=a&&a.length>=b?a:JU.AU.arrayCopyF(a,b)},"~A,~N");c$.ensureLengthI=c(c$,"ensureLengthI",function(a,b){return null!=a&&a.length>=b?a:JU.AU.arrayCopyI(a,b)},"~A,~N");c$.ensureLengthShort=c(c$,"ensureLengthShort",function(a,b){return null!=a&&a.length>=b?a:JU.AU.arrayCopyShort(a,b)},"~A,~N"); +c$.ensureLengthByte=c(c$,"ensureLengthByte",function(a,b){return null!=a&&a.length>=b?a:JU.AU.arrayCopyByte(a,b)},"~A,~N");c$.doubleLength=c(c$,"doubleLength",function(a){return JU.AU.arrayCopyObject(a,null==a?16:2*JU.AU.getLength(a))},"~O");c$.doubleLengthS=c(c$,"doubleLengthS",function(a){return JU.AU.arrayCopyS(a,null==a?16:2*a.length)},"~A");c$.doubleLengthF=c(c$,"doubleLengthF",function(a){return JU.AU.arrayCopyF(a,null==a?16:2*a.length)},"~A");c$.doubleLengthI=c(c$,"doubleLengthI",function(a){return JU.AU.arrayCopyI(a, +null==a?16:2*a.length)},"~A");c$.doubleLengthShort=c(c$,"doubleLengthShort",function(a){return JU.AU.arrayCopyShort(a,null==a?16:2*a.length)},"~A");c$.doubleLengthByte=c(c$,"doubleLengthByte",function(a){return JU.AU.arrayCopyByte(a,null==a?16:2*a.length)},"~A");c$.doubleLengthBool=c(c$,"doubleLengthBool",function(a){return JU.AU.arrayCopyBool(a,null==a?16:2*a.length)},"~A");c$.deleteElements=c(c$,"deleteElements",function(a,b,c){if(0==c||null==a)return a;var d=JU.AU.getLength(a);if(b>=d)return a; +d-=b+c;0>d&&(d=0);var f=JU.AU.newInstanceO(a,b+d);0b&&(b=a.length);var c=Array(b);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,db&&(b=a.length);var c=Array(b);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,db&&(b=a.length);var c=M(b,0);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,db&&(b=a.length);var c=H(b,0);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,dc&&(c=a.length);for(a=A(c/2);0<=--a;)JU.AU.swapInt(b,a,c-1-a);return b},"~A,~N,~N");c$.arrayCopyShort=c(c$,"arrayCopyShort",function(a,b){0>b&&(b=a.length);var c=ma(b,0);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,db&&(b=a.length);var c=L(b,0);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,db&&(b=a.length);var c=na(b,!1);if(null!=a){var d=a.length;System.arraycopy(a,0,c,0,d=f;l--){a+="\n*"+l+"*";for(g=c;g<=d;g++)a+="\t"+(gb){b=-b;b>JU.DF.formattingStrings.length&&(b=JU.DF.formattingStrings.length);if(0==a)return JU.DF.formattingStrings[b]+"E+0";var d;1>Math.abs(a)?(c=10,d=1E-10*a):(c=-10,d=1E10*a);d=(""+ +d).toUpperCase();var f=d.indexOf("E");c=JU.PT.parseInt(d.substring(f+1))+c;return 0>f?""+a:JU.DF.formatDecimal(JU.PT.parseFloat(d.substring(0,f)),b-1)+"E"+(0<=c?"+":"")+c}b>=JU.DF.formattingStrings.length&&(b=JU.DF.formattingStrings.length-1);d=(""+a).toUpperCase();c=d.indexOf(".");if(0>c)return d+JU.DF.formattingStrings[b].substring(1);var l=d.startsWith("-");l&&(d=d.substring(1),c--);f=d.indexOf("E-");0a.indexOf(".")&&0>a.indexOf("e")&&(a+=".0");this.s+=a;return this},"~N");c(c$,"appendD",function(a){a=""+a;0>a.indexOf(".")&&0>a.indexOf("e")&&(a+=".0");this.s+=a;return this},"~N");c(c$,"appendSB",function(a){this.s+=a.s;return this},"JU.SB");c(c$,"appendO",function(a){null!=a&&(this.s+=a.toString());return this},"~O");c(c$,"appendCB",function(a,b,c){for(;0<=--c;)this.s+=a[b++]},"~A,~N,~N");d(c$,"toString",function(){return this.s});c(c$,"length",function(){return this.s.length});c(c$,"indexOf", +function(a){return this.s.indexOf(a)},"~S");c(c$,"charAt",function(a){return this.s.charAt(a)},"~N");c(c$,"charCodeAt",function(a){return this.s.charCodeAt(a)},"~N");c(c$,"setLength",function(a){this.s=this.s.substring(0,a)},"~N");c(c$,"lastIndexOf",function(a){return this.s.lastIndexOf(a)},"~S");c(c$,"indexOf2",function(a,b){return this.s.indexOf(a,b)},"~S,~N");c(c$,"substring",function(a){return this.s.substring(a)},"~N");c(c$,"substring2",function(a,b){return this.s.substring(a,b)},"~N,~N");c(c$, +"toBytes",function(a,b){0>b&&(b=this.length()-a);for(var c=L(b,0),d=a+b,f=d-a;--d>=a;)c[--f]=this.charAt(d).charCodeAt(0);return c},"~N,~N");c(c$,"replace",function(a,b,c){this.s=this.s.substring(0,a)+c+this.s.substring(b)},"~N,~N,~S");c(c$,"insert",function(a,b){this.replace(a,a,b)},"~N,~S");p("JU");n(null,"JU.M34",["java.lang.ArrayIndexOutOfBoundsException"],function(){c$=q(function(){this.m22=this.m21=this.m20=this.m12=this.m11=this.m10=this.m02=this.m01=this.m00=0;k(this,arguments)},JU,"M34"); +c(c$,"setAA33",function(a){var b=a.x,c=a.y,d=a.z;a=a.angle;var f=Math.sqrt(b*b+c*c+d*d),f=1/f,b=b*f,c=c*f,d=d*f,l=Math.cos(a);a=Math.sin(a);f=1-l;this.m00=l+b*b*f;this.m11=l+c*c*f;this.m22=l+d*d*f;var l=b*c*f,g=d*a;this.m01=l-g;this.m10=l+g;l=b*d*f;g=c*a;this.m02=l+g;this.m20=l-g;l=c*d*f;g=b*a;this.m12=l-g;this.m21=l+g},"JU.A4");c(c$,"rotate",function(a){this.rotate2(a,a)},"JU.T3");c(c$,"rotate2",function(a,b){b.set(this.m00*a.x+this.m01*a.y+this.m02*a.z,this.m10*a.x+this.m11*a.y+this.m12*a.z,this.m20* +a.x+this.m21*a.y+this.m22*a.z)},"JU.T3,JU.T3");c(c$,"setM33",function(a){this.m00=a.m00;this.m01=a.m01;this.m02=a.m02;this.m10=a.m10;this.m11=a.m11;this.m12=a.m12;this.m20=a.m20;this.m21=a.m21;this.m22=a.m22},"JU.M34");c(c$,"clear33",function(){this.m00=this.m01=this.m02=this.m10=this.m11=this.m12=this.m20=this.m21=this.m22=0});c(c$,"set33",function(a,b,c){switch(a){case 0:switch(b){case 0:this.m00=c;return;case 1:this.m01=c;return;case 2:this.m02=c;return}break;case 1:switch(b){case 0:this.m10=c; +return;case 1:this.m11=c;return;case 2:this.m12=c;return}break;case 2:switch(b){case 0:this.m20=c;return;case 1:this.m21=c;return;case 2:this.m22=c;return}}this.err()},"~N,~N,~N");c(c$,"get33",function(a,b){switch(a){case 0:switch(b){case 0:return this.m00;case 1:return this.m01;case 2:return this.m02}break;case 1:switch(b){case 0:return this.m10;case 1:return this.m11;case 2:return this.m12}break;case 2:switch(b){case 0:return this.m20;case 1:return this.m21;case 2:return this.m22}}this.err();return 0}, +"~N,~N");c(c$,"setRow33",function(a,b){switch(a){case 0:this.m00=b[0];this.m01=b[1];this.m02=b[2];break;case 1:this.m10=b[0];this.m11=b[1];this.m12=b[2];break;case 2:this.m20=b[0];this.m21=b[1];this.m22=b[2];break;default:this.err()}},"~N,~A");c(c$,"getRow33",function(a,b){switch(a){case 0:b[0]=this.m00;b[1]=this.m01;b[2]=this.m02;return;case 1:b[0]=this.m10;b[1]=this.m11;b[2]=this.m12;return;case 2:b[0]=this.m20;b[1]=this.m21;b[2]=this.m22;return}this.err()},"~N,~A");c(c$,"setColumn33",function(a, +b){switch(a){case 0:this.m00=b[0];this.m10=b[1];this.m20=b[2];break;case 1:this.m01=b[0];this.m11=b[1];this.m21=b[2];break;case 2:this.m02=b[0];this.m12=b[1];this.m22=b[2];break;default:this.err()}},"~N,~A");c(c$,"getColumn33",function(a,b){switch(a){case 0:b[0]=this.m00;b[1]=this.m10;b[2]=this.m20;break;case 1:b[0]=this.m01;b[1]=this.m11;b[2]=this.m21;break;case 2:b[0]=this.m02;b[1]=this.m12;b[2]=this.m22;break;default:this.err()}},"~N,~A");c(c$,"add33",function(a){this.m00+=a.m00;this.m01+=a.m01; +this.m02+=a.m02;this.m10+=a.m10;this.m11+=a.m11;this.m12+=a.m12;this.m20+=a.m20;this.m21+=a.m21;this.m22+=a.m22},"JU.M34");c(c$,"sub33",function(a){this.m00-=a.m00;this.m01-=a.m01;this.m02-=a.m02;this.m10-=a.m10;this.m11-=a.m11;this.m12-=a.m12;this.m20-=a.m20;this.m21-=a.m21;this.m22-=a.m22},"JU.M34");c(c$,"mul33",function(a){this.m00*=a;this.m01*=a;this.m02*=a;this.m10*=a;this.m11*=a;this.m12*=a;this.m20*=a;this.m21*=a;this.m22*=a},"~N");c(c$,"transpose33",function(){var a=this.m01;this.m01=this.m10; +this.m10=a;a=this.m02;this.m02=this.m20;this.m20=a;a=this.m12;this.m12=this.m21;this.m21=a});c(c$,"setXRot",function(a){var b=Math.cos(a);a=Math.sin(a);this.m00=1;this.m10=this.m02=this.m01=0;this.m11=b;this.m12=-a;this.m20=0;this.m21=a;this.m22=b},"~N");c(c$,"setYRot",function(a){var b=Math.cos(a);a=Math.sin(a);this.m00=b;this.m01=0;this.m02=a;this.m10=0;this.m11=1;this.m12=0;this.m20=-a;this.m21=0;this.m22=b},"~N");c(c$,"setZRot",function(a){var b=Math.cos(a);a=Math.sin(a);this.m00=b;this.m01=-a; +this.m02=0;this.m10=a;this.m11=b;this.m21=this.m20=this.m12=0;this.m22=1},"~N");c(c$,"determinant3",function(){return this.m00*(this.m11*this.m22-this.m21*this.m12)-this.m01*(this.m10*this.m22-this.m20*this.m12)+this.m02*(this.m10*this.m21-this.m20*this.m11)});c(c$,"err",function(){throw new ArrayIndexOutOfBoundsException("matrix column/row out of bounds");})});p("JU");n(["JU.M34"],"JU.M4",["JU.T3"],function(){c$=q(function(){this.m33=this.m32=this.m31=this.m30=this.m23=this.m13=this.m03=0;k(this, +arguments)},JU,"M4",JU.M34);c$.newA16=c(c$,"newA16",function(a){var b=new JU.M4;b.m00=a[0];b.m01=a[1];b.m02=a[2];b.m03=a[3];b.m10=a[4];b.m11=a[5];b.m12=a[6];b.m13=a[7];b.m20=a[8];b.m21=a[9];b.m22=a[10];b.m23=a[11];b.m30=a[12];b.m31=a[13];b.m32=a[14];b.m33=a[15];return b},"~A");c$.newM4=c(c$,"newM4",function(a){var b=new JU.M4;if(null==a)return b.setIdentity(),b;b.setToM3(a);b.m03=a.m03;b.m13=a.m13;b.m23=a.m23;b.m30=a.m30;b.m31=a.m31;b.m32=a.m32;b.m33=a.m33;return b},"JU.M4");c$.newMV=c(c$,"newMV", +function(a,b){var c=new JU.M4;c.setMV(a,b);return c},"JU.M3,JU.T3");c(c$,"setZero",function(){this.clear33();this.m03=this.m13=this.m23=this.m30=this.m31=this.m32=this.m33=0});c(c$,"setIdentity",function(){this.setZero();this.m00=this.m11=this.m22=this.m33=1});c(c$,"setM4",function(a){this.setM33(a);this.m03=a.m03;this.m13=a.m13;this.m23=a.m23;this.m30=a.m30;this.m31=a.m31;this.m32=a.m32;this.m33=a.m33;return this},"JU.M4");c(c$,"setMV",function(a,b){this.setM33(a);this.setTranslation(b);this.m33= +1},"JU.M3,JU.T3");c(c$,"setToM3",function(a){this.setM33(a);this.m03=this.m13=this.m23=this.m30=this.m31=this.m32=0;this.m33=1},"JU.M34");c(c$,"setToAA",function(a){this.setIdentity();this.setAA33(a)},"JU.A4");c(c$,"setA",function(a){this.m00=a[0];this.m01=a[1];this.m02=a[2];this.m03=a[3];this.m10=a[4];this.m11=a[5];this.m12=a[6];this.m13=a[7];this.m20=a[8];this.m21=a[9];this.m22=a[10];this.m23=a[11];this.m30=a[12];this.m31=a[13];this.m32=a[14];this.m33=a[15]},"~A");c(c$,"setTranslation",function(a){this.m03= +a.x;this.m13=a.y;this.m23=a.z},"JU.T3");c(c$,"setElement",function(a,b,c){if(3>a&&3>b)this.set33(a,b,c);else{(3a&&3>b)return this.get33(a,b);if(3a&&this.setRow33(a,b);switch(a){case 0:this.m03=b[3];return;case 1:this.m13=b[3];return;case 2:this.m23=b[3];return;case 3:this.m30=b[0];this.m31=b[1];this.m32=b[2];this.m33=b[3];return}this.err()},"~N,~A");d(c$,"getRow",function(a,b){3>a&&this.getRow33(a,b);switch(a){case 0:b[3]=this.m03;return;case 1:b[3]=this.m13;return;case 2:b[3]=this.m23;return;case 3:b[0]=this.m30;b[1]=this.m31;b[2]=this.m32;b[3]=this.m33; +return}this.err()},"~N,~A");c(c$,"setColumn4",function(a,b,c,d,f){0==a?(this.m00=b,this.m10=c,this.m20=d,this.m30=f):1==a?(this.m01=b,this.m11=c,this.m21=d,this.m31=f):2==a?(this.m02=b,this.m12=c,this.m22=d,this.m32=f):3==a?(this.m03=b,this.m13=c,this.m23=d,this.m33=f):this.err()},"~N,~N,~N,~N,~N");c(c$,"setColumnA",function(a,b){3>a&&this.setColumn33(a,b);switch(a){case 0:this.m30=b[3];break;case 1:this.m31=b[3];break;case 2:this.m32=b[3];break;case 3:this.m03=b[0];this.m13=b[1];this.m23=b[2];this.m33= +b[3];break;default:this.err()}},"~N,~A");c(c$,"getColumn",function(a,b){3>a&&this.getColumn33(a,b);switch(a){case 0:b[3]=this.m30;break;case 1:b[3]=this.m31;break;case 2:b[3]=this.m32;break;case 3:b[0]=this.m03;b[1]=this.m13;b[2]=this.m23;b[3]=this.m33;break;default:this.err()}},"~N,~A");c(c$,"sub",function(a){this.sub33(a);this.m03-=a.m03;this.m13-=a.m13;this.m23-=a.m23;this.m30-=a.m30;this.m31-=a.m31;this.m32-=a.m32;this.m33-=a.m33},"JU.M4");c(c$,"transpose",function(){this.transpose33();var a= +this.m03;this.m03=this.m30;this.m30=a;a=this.m13;this.m13=this.m31;this.m31=a;a=this.m23;this.m23=this.m32;this.m32=a});c(c$,"invert",function(){var a=this.determinant4();if(0==a)return this;a=1/a;this.set(this.m11*(this.m22*this.m33-this.m23*this.m32)+this.m12*(this.m23*this.m31-this.m21*this.m33)+this.m13*(this.m21*this.m32-this.m22*this.m31),this.m21*(this.m02*this.m33-this.m03*this.m32)+this.m22*(this.m03*this.m31-this.m01*this.m33)+this.m23*(this.m01*this.m32-this.m02*this.m31),this.m31*(this.m02* +this.m13-this.m03*this.m12)+this.m32*(this.m03*this.m11-this.m01*this.m13)+this.m33*(this.m01*this.m12-this.m02*this.m11),this.m01*(this.m13*this.m22-this.m12*this.m23)+this.m02*(this.m11*this.m23-this.m13*this.m21)+this.m03*(this.m12*this.m21-this.m11*this.m22),this.m12*(this.m20*this.m33-this.m23*this.m30)+this.m13*(this.m22*this.m30-this.m20*this.m32)+this.m10*(this.m23*this.m32-this.m22*this.m33),this.m22*(this.m00*this.m33-this.m03*this.m30)+this.m23*(this.m02*this.m30-this.m00*this.m32)+this.m20* +(this.m03*this.m32-this.m02*this.m33),this.m32*(this.m00*this.m13-this.m03*this.m10)+this.m33*(this.m02*this.m10-this.m00*this.m12)+this.m30*(this.m03*this.m12-this.m02*this.m13),this.m02*(this.m13*this.m20-this.m10*this.m23)+this.m03*(this.m10*this.m22-this.m12*this.m20)+this.m00*(this.m12*this.m23-this.m13*this.m22),this.m13*(this.m20*this.m31-this.m21*this.m30)+this.m10*(this.m21*this.m33-this.m23*this.m31)+this.m11*(this.m23*this.m30-this.m20*this.m33),this.m23*(this.m00*this.m31-this.m01*this.m30)+ +this.m20*(this.m01*this.m33-this.m03*this.m31)+this.m21*(this.m03*this.m30-this.m00*this.m33),this.m33*(this.m00*this.m11-this.m01*this.m10)+this.m30*(this.m01*this.m13-this.m03*this.m11)+this.m31*(this.m03*this.m10-this.m00*this.m13),this.m03*(this.m11*this.m20-this.m10*this.m21)+this.m00*(this.m13*this.m21-this.m11*this.m23)+this.m01*(this.m10*this.m23-this.m13*this.m20),this.m10*(this.m22*this.m31-this.m21*this.m32)+this.m11*(this.m20*this.m32-this.m22*this.m30)+this.m12*(this.m21*this.m30-this.m20* +this.m31),this.m20*(this.m02*this.m31-this.m01*this.m32)+this.m21*(this.m00*this.m32-this.m02*this.m30)+this.m22*(this.m01*this.m30-this.m00*this.m31),this.m30*(this.m02*this.m11-this.m01*this.m12)+this.m31*(this.m00*this.m12-this.m02*this.m10)+this.m32*(this.m01*this.m10-this.m00*this.m11),this.m00*(this.m11*this.m22-this.m12*this.m21)+this.m01*(this.m12*this.m20-this.m10*this.m22)+this.m02*(this.m10*this.m21-this.m11*this.m20));this.scale(a);return this});c(c$,"set",function(a,b,c,d,f,l,g,j,k,n, +p,q,r,t,u,v){this.m00=a;this.m01=b;this.m02=c;this.m03=d;this.m10=f;this.m11=l;this.m12=g;this.m13=j;this.m20=k;this.m21=n;this.m22=p;this.m23=q;this.m30=r;this.m31=t;this.m32=u;this.m33=v},"~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N,~N");c(c$,"determinant4",function(){return(this.m00*this.m11-this.m01*this.m10)*(this.m22*this.m33-this.m23*this.m32)-(this.m00*this.m12-this.m02*this.m10)*(this.m21*this.m33-this.m23*this.m31)+(this.m00*this.m13-this.m03*this.m10)*(this.m21*this.m32-this.m22*this.m31)+ +(this.m01*this.m12-this.m02*this.m11)*(this.m20*this.m33-this.m23*this.m30)-(this.m01*this.m13-this.m03*this.m11)*(this.m20*this.m32-this.m22*this.m30)+(this.m02*this.m13-this.m03*this.m12)*(this.m20*this.m31-this.m21*this.m30)});c(c$,"scale",function(a){this.mul33(a);this.m03*=a;this.m13*=a;this.m23*=a;this.m30*=a;this.m31*=a;this.m32*=a;this.m33*=a},"~N");c(c$,"mul",function(a){this.mul2(this,a)},"JU.M4");c(c$,"mul2",function(a,b){this.set(a.m00*b.m00+a.m01*b.m10+a.m02*b.m20+a.m03*b.m30,a.m00*b.m01+ +a.m01*b.m11+a.m02*b.m21+a.m03*b.m31,a.m00*b.m02+a.m01*b.m12+a.m02*b.m22+a.m03*b.m32,a.m00*b.m03+a.m01*b.m13+a.m02*b.m23+a.m03*b.m33,a.m10*b.m00+a.m11*b.m10+a.m12*b.m20+a.m13*b.m30,a.m10*b.m01+a.m11*b.m11+a.m12*b.m21+a.m13*b.m31,a.m10*b.m02+a.m11*b.m12+a.m12*b.m22+a.m13*b.m32,a.m10*b.m03+a.m11*b.m13+a.m12*b.m23+a.m13*b.m33,a.m20*b.m00+a.m21*b.m10+a.m22*b.m20+a.m23*b.m30,a.m20*b.m01+a.m21*b.m11+a.m22*b.m21+a.m23*b.m31,a.m20*b.m02+a.m21*b.m12+a.m22*b.m22+a.m23*b.m32,a.m20*b.m03+a.m21*b.m13+a.m22*b.m23+ +a.m23*b.m33,a.m30*b.m00+a.m31*b.m10+a.m32*b.m20+a.m33*b.m30,a.m30*b.m01+a.m31*b.m11+a.m32*b.m21+a.m33*b.m31,a.m30*b.m02+a.m31*b.m12+a.m32*b.m22+a.m33*b.m32,a.m30*b.m03+a.m31*b.m13+a.m32*b.m23+a.m33*b.m33)},"JU.M4,JU.M4");c(c$,"transform",function(a){this.transform2(a,a)},"JU.T4");c(c$,"transform2",function(a,b){b.set4(this.m00*a.x+this.m01*a.y+this.m02*a.z+this.m03*a.w,this.m10*a.x+this.m11*a.y+this.m12*a.z+this.m13*a.w,this.m20*a.x+this.m21*a.y+this.m22*a.z+this.m23*a.w,this.m30*a.x+this.m31*a.y+ +this.m32*a.z+this.m33*a.w)},"JU.T4,JU.T4");c(c$,"rotTrans",function(a){this.rotTrans2(a,a)},"JU.T3");c(c$,"rotTrans2",function(a,b){b.set(this.m00*a.x+this.m01*a.y+this.m02*a.z+this.m03,this.m10*a.x+this.m11*a.y+this.m12*a.z+this.m13,this.m20*a.x+this.m21*a.y+this.m22*a.z+this.m23);return b},"JU.T3,JU.T3");c(c$,"setAsXYRotation",function(a){this.setIdentity();var b=Math.cos(a);a=Math.sin(a);this.m22=b;this.m23=-a;this.m32=a;this.m33=b;return this},"~N");c(c$,"setAsYZRotation",function(a){this.setIdentity(); +var b=Math.cos(a);a=Math.sin(a);this.m00=b;this.m03=-a;this.m30=a;this.m33=b;return this},"~N");c(c$,"setAsXZRotation",function(a){this.setIdentity();var b=Math.cos(a);a=Math.sin(a);this.m11=b;this.m13=-a;this.m31=a;this.m33=b;return this},"~N");d(c$,"equals",function(a){return!j(a,JU.M4)?!1:this.m00==a.m00&&this.m01==a.m01&&this.m02==a.m02&&this.m03==a.m03&&this.m10==a.m10&&this.m11==a.m11&&this.m12==a.m12&&this.m13==a.m13&&this.m20==a.m20&&this.m21==a.m21&&this.m22==a.m22&&this.m23==a.m23&&this.m30== +a.m30&&this.m31==a.m31&&this.m32==a.m32&&this.m33==a.m33},"~O");d(c$,"hashCode",function(){return JU.T3.floatToIntBits0(this.m00)^JU.T3.floatToIntBits0(this.m01)^JU.T3.floatToIntBits0(this.m02)^JU.T3.floatToIntBits0(this.m03)^JU.T3.floatToIntBits0(this.m10)^JU.T3.floatToIntBits0(this.m11)^JU.T3.floatToIntBits0(this.m12)^JU.T3.floatToIntBits0(this.m13)^JU.T3.floatToIntBits0(this.m20)^JU.T3.floatToIntBits0(this.m21)^JU.T3.floatToIntBits0(this.m22)^JU.T3.floatToIntBits0(this.m23)^JU.T3.floatToIntBits0(this.m30)^ +JU.T3.floatToIntBits0(this.m31)^JU.T3.floatToIntBits0(this.m32)^JU.T3.floatToIntBits0(this.m33)});d(c$,"toString",function(){return"[\n ["+this.m00+"\t"+this.m01+"\t"+this.m02+"\t"+this.m03+"]\n ["+this.m10+"\t"+this.m11+"\t"+this.m12+"\t"+this.m13+"]\n ["+this.m20+"\t"+this.m21+"\t"+this.m22+"\t"+this.m23+"]\n ["+this.m30+"\t"+this.m31+"\t"+this.m32+"\t"+this.m33+"] ]"})});p("JU");n(["javajs.api.JSONEncodable"],"JU.T3",["java.lang.Float"],function(){c$=q(function(){this.z=this.y=this.x=0;k(this, +arguments)},JU,"T3",null,[javajs.api.JSONEncodable,java.io.Serializable]);c(c$,"set",function(a,b,c){this.x=a;this.y=b;this.z=c},"~N,~N,~N");c(c$,"setA",function(a){this.x=a[0];this.y=a[1];this.z=a[2]},"~A");c(c$,"setT",function(a){this.x=a.x;this.y=a.y;this.z=a.z},"JU.T3");c(c$,"add2",function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z},"JU.T3,JU.T3");c(c$,"add",function(a){this.x+=a.x;this.y+=a.y;this.z+=a.z},"JU.T3");c(c$,"distanceSquared",function(a){var b=this.x-a.x,c=this.y-a.y;a=this.z- +a.z;return b*b+c*c+a*a},"JU.T3");c(c$,"distance",function(a){return Math.sqrt(this.distanceSquared(a))},"JU.T3");c(c$,"sub2",function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z},"JU.T3,JU.T3");c(c$,"sub",function(a){this.x-=a.x;this.y-=a.y;this.z-=a.z},"JU.T3");c(c$,"scale",function(a){this.x*=a;this.y*=a;this.z*=a},"~N");c(c$,"add3",function(a,b,c){this.x+=a;this.y+=b;this.z+=c},"~N,~N,~N");c(c$,"scaleT",function(a){this.x*=a.x;this.y*=a.y;this.z*=a.z},"JU.T3");c(c$,"scaleAdd2",function(a, +b,c){this.x=a*b.x+c.x;this.y=a*b.y+c.y;this.z=a*b.z+c.z},"~N,JU.T3,JU.T3");c(c$,"ave",function(a,b){this.x=(a.x+b.x)/2;this.y=(a.y+b.y)/2;this.z=(a.z+b.z)/2},"JU.T3,JU.T3");c(c$,"dot",function(a){return this.x*a.x+this.y*a.y+this.z*a.z},"JU.T3");c(c$,"lengthSquared",function(){return this.x*this.x+this.y*this.y+this.z*this.z});c(c$,"length",function(){return Math.sqrt(this.lengthSquared())});c(c$,"normalize",function(){var a=this.length();this.x/=a;this.y/=a;this.z/=a});c(c$,"cross",function(a,b){this.set(a.y* +b.z-a.z*b.y,a.z*b.x-a.x*b.z,a.x*b.y-a.y*b.x)},"JU.T3,JU.T3");d(c$,"hashCode",function(){var a;a=31+JU.T3.floatToIntBits0(this.x);a=31*a+JU.T3.floatToIntBits0(this.y);a=31*a+JU.T3.floatToIntBits0(this.z);return a^a>>32});c$.floatToIntBits0=c(c$,"floatToIntBits0",function(a){return 0==a?0:Float.floatToIntBits(a)},"~N");d(c$,"equals",function(a){return!j(a,JU.T3)?!1:this.x==a.x&&this.y==a.y&&this.z==a.z},"~O");d(c$,"toString",function(){return"{"+this.x+", "+this.y+", "+this.z+"}"});d(c$,"toJSON",function(){return"["+ +this.x+","+this.y+","+this.z+"]"})});p("javax.swing");n(["java.awt.LayoutManager2","javax.swing.AbstractAction","$.JComponent"],"javax.swing.JRootPane","java.lang.IllegalArgumentException $.NullPointerException java.awt.BorderLayout $.Dimension $.IllegalComponentStateException javax.swing.JLayeredPane $.JPanel $.SwingUtilities $.UIManager jssun.awt.AppContext".split(" "),function(){c$=q(function(){this.windowDecorationStyle=0;this.defaultReleaseAction=this.defaultPressAction=this.defaultButton=this.glassPane= +this.layeredPane=this.contentPane=this.menuBar=null;this.useTrueDoubleBuffering=!0;C("javax.swing.JRootPane.RootLayout")||javax.swing.JRootPane.$JRootPane$RootLayout$();k(this,arguments)},javax.swing,"JRootPane",javax.swing.JComponent);g(c$,function(){r(this,javax.swing.JRootPane,[]);var a=jssun.awt.AppContext.getAppContext().getThreadGroup().getName();this.setName(a+".JRootPane");this.setGlassPane(this.createGlassPane());this.setLayeredPane(this.createLayeredPane());this.setContentPane(this.createContentPane()); +this.setLayout(this.createRootLayout());this.updateUI()});d(c$,"setDoubleBuffered",function(){},"~B");c(c$,"getWindowDecorationStyle",function(){return this.windowDecorationStyle});c(c$,"setWindowDecorationStyle",function(a){if(0>a||8>>=1}},"java.awt.event.AWTEventListener,~N");c(c$,"removeAWTEventListener",function(a){var b=java.awt.Toolkit.deProxyAWTEventListener(a);if(null!=a){a=this.listener2SelectiveListener.get(b);if(null!=a){this.listener2SelectiveListener.remove(b);for(var c=a.getCalls(),d=0;32>d;d++)this.calls[d]-=c[d],0==this.calls[d]&&(java.awt.Toolkit.enabledOnToolkitMask&=~(1<>>=1,b++);b--;return this.calls[b]},"~N");c(c$,"getAWTEventListeners",function(){for(var a=java.awt.Toolkit.ToolkitEventMulticaster.getListeners(this.eventListener,java.awt.event.AWTEventListener),b=Array(a.length),c=0;cb&&0!=a;b++)0!=(a&1)&&this.calls[b]++,a>>>=1},"~N");g(c$,function(a,b){this.listener=a;this.eventMask=b},"java.awt.event.AWTEventListener,~N");c(c$,"eventDispatched",function(a){var b=0;if(0!=(b=this.eventMask&1)&&100<=a.id&&103>=a.id||0!=(b=this.eventMask&2)&&300<=a.id&&301>=a.id||0!=(b=this.eventMask&4)&&1004<=a.id&&1005>=a.id||0!=(b=this.eventMask&8)&&400<=a.id&&402>=a.id||0!=(b=this.eventMask& 131072)&&507==a.id||0!=(b=this.eventMask&32)&&(503==a.id||506==a.id)||0!=(b=this.eventMask&16)&&503!=a.id&&506!=a.id&&507!=a.id&&500<=a.id&&507>=a.id||0!=(b=this.eventMask&64)&&200<=a.id&&209>=a.id||0!=(b=this.eventMask&128)&&1001<=a.id&&1001>=a.id||0!=(b=this.eventMask&256)&&601<=a.id&&601>=a.id||0!=(b=this.eventMask&512)&&701<=a.id&&701>=a.id||0!=(b=this.eventMask&1024)&&900<=a.id&&900>=a.id||0!=(b=this.eventMask&2048)&&1100<=a.id&&1101>=a.id||0!=(b=this.eventMask&8192)&&800<=a.id&&801>=a.id||0!= -(b=this.eventMask&16384)&&1200<=a.id&&1201>=a.id||0!=(b=this.eventMask&32768)&&1400==a.id||0!=(b=this.eventMask&65536)&&(1401==a.id||1402==a.id)||0!=(b=this.eventMask&262144)&&209==a.id||0!=(b=this.eventMask&524288)&&(207==a.id||208==a.id)){for(var c=0;0!=b;b>>>=1,c++);c--;for(b=0;b=a.id||0!=(b=this.eventMask&32768)&&1400==a.id||0!=(b=this.eventMask&65536)&&(1401==a.id||1402==a.id)||0!=(b=this.eventMask&262144)&&209==a.id||0!=(b=this.eventMask&524288)&&(207==a.id||208==a.id)){for(var c=0;0!=b;b>>>=1,c++);c--;for(b=0;ba)throw new IllegalArgumentException("timeout value is negative");if(0>b||999999a||10a||a>=this.component.size())throw new ArrayIndexOutOfBoundsException("No such child: "+a);return this.component.get(a)},"~N");c(c$,"getComponents",function(){return this.getComponents_NoClientCode()});c(c$,"getComponents_NoClientCode",function(){return this.component.toArray(java.awt.Container.EMPTY_ARRAY)});c(c$,"getInsets", function(){var a=this.peer;return j(a,java.awt.peer.ContainerPeer)?a.getInsets().clone():new java.awt.Insets(0,0,0,0)});c(c$,"add",function(a){return this.addImpl(a,null,-1)},"java.awt.Component");c(c$,"add",function(a,b){return this.addImpl(b,a,-1)},"~S,java.awt.Component");c(c$,"add",function(a,b){return this.addImpl(a,null,b)},"java.awt.Component,~N");c(c$,"checkAddToSelf",function(a){if(j(a,java.awt.Container))for(var b=this;null!=b;b=b.parent)if(b===a)throw new IllegalArgumentException("adding container's parent to itself"); @@ -1397,7 +1397,7 @@ this.invalidateIfValid();if(null!=this.containerListener||0!=(this.eventMask&2)| 0<=a&&this.remove(a))},"java.awt.Component");c(c$,"removeAll",function(){this.adjustListeningChildren(32768,-this.listeningChildren);this.adjustListeningChildren(65536,-this.listeningBoundsChildren);for(this.adjustDescendants(-this.descendantsCount);!this.component.isEmpty();){var a=this.component.remove(this.component.size()-1);null!=this.peer&&a.removeNotify();null!=this.layoutMgr&&this.layoutMgr.removeLayoutComponent(a);a.parent=null;if(null!=this.containerListener||0!=(this.eventMask&2)||java.awt.Toolkit.enabledOnToolkit(2)){var b= new java.awt.event.ContainerEvent(this,301,a);this.dispatchEvent(b)}a.createHierarchyEvents(1400,a,this,1,java.awt.Toolkit.enabledOnToolkit(32768))}null!=this.peer&&(null==this.layoutMgr&&this.isVisible())&&this.updateCursorImmediately();this.invalidateIfValid()});c(c$,"numListening",function(a){var b=this.numListeningMask(a);return 32768==a?this.listeningChildren+b:65536==a?this.listeningBoundsChildren+b:b},"~N");c(c$,"adjustListeningChildren",function(a,b){0!=b&&(0!=(a&32768)&&(this.listeningChildren+= b),0!=(a&65536)&&(this.listeningBoundsChildren+=b),this.adjustListeningChildrenOnParent(a,b))},"~N,~N");c(c$,"adjustDescendants",function(a){0!=a&&(this.descendantsCount+=a,this.adjustDecendantsOnParent(a))},"~N");c(c$,"adjustDecendantsOnParent",function(a){null!=this.parent&&this.parent.adjustDescendants(a)},"~N");c(c$,"countHierarchyMembers",function(){return this.descendantsCount+1});c(c$,"getListenersCount",function(a,b){if(b)return this.descendantsCount;switch(a){case 1400:return this.listeningChildren; -case 1401:case 1402:return this.listeningBoundsChildren;default:return 0}},"~N,~B");c(c$,"createHierarchyEvents",function(a,b,c,d,f){for(var g=this.getListenersCount(a,f),j=g,k=0;0a?-1:a});c(c$,"getSiblingIndexBelow",function(){var a=this.getContainer();if(null==a)return-1;var b=a.getComponentZOrder(this)+ 1;return b>=a.getComponentCount()?-1:b});c(c$,"mixOnShowing",function(){});c(c$,"mixOnHiding",function(){},"~B");c(c$,"mixOnReshaping",function(){swingjs.JSToolkit.taintUI(this)});c(c$,"mixOnZOrderChanging",function(){},"~N,~N");c(c$,"mixOnValidating",function(){});c$.doesClassImplement=c(c$,"doesClassImplement",function(a,b){if(null==a)return!1;for(var c,d=0,f=a.getInterfaces();db?1:b>d.width?d.width:b;c=1>c?1:c>d.height?d.height:c;d=this.volatileMap.get(a);if(null==d||d.getWidth()=b,d=1001<=b&&1001>=b,b=201==b;if(java.awt.Component.isInstanceOf(this.modalComponent,"javax.swing.JInternalFrame"))return b?java.awt.EventFilter.FilterAction.REJECT:java.awt.EventFilter.FilterAction.ACCEPT; -if(c||d||b)if(a=a.getSource(),!j(a,jssun.awt.ModalExclude)&&j(a,java.awt.Component)){c=!1;if(j(this.modalComponent,java.awt.Container))for(;a!==this.modalComponent&&null!=a;){if(j(a,java.awt.Window)&&jssun.awt.SunToolkit.isModalExcluded(a)){c=!0;break}a=a.getParent()}if(!c&&a!==this.modalComponent)return java.awt.EventFilter.FilterAction.REJECT}}return java.awt.EventFilter.FilterAction.ACCEPT},"java.awt.AWTEvent");c$=v();x(c$,"ANY_EVENT",-1)});p("java.awt");n(["java.lang.Enum"],"java.awt.EventFilter", -null,function(){y(java.awt,"EventFilter");w(self.c$);c$=t(java.awt.EventFilter,"FilterAction",Enum);F(c$,"ACCEPT",0,[]);F(c$,"REJECT",1,[]);F(c$,"ACCEPT_IMMEDIATELY",2,[]);c$=v()});p("java.awt");n(["java.awt.EventFilter"],"java.awt.ModalEventFilter",["java.awt.Component","$.Dialog","$.Window","jssun.awt.ModalExclude"],function(){c$=q(function(){this.modalDialog=null;this.disabled=!1;k(this,arguments)},java.awt,"ModalEventFilter",null,java.awt.EventFilter);g(c$,function(a){this.modalDialog=a;this.disabled= +"~N");c(c$,"processException",function(a,b){if(!this.handleException(a))if(b)System.err.println("Exception occurred during event dispatching:"),a.printStackTrace();else{if(j(a,RuntimeException))throw a;if(j(a,Error))throw a;}},"Throwable,~B");c(c$,"handleException",function(){return!1},"Throwable");c(c$,"isDispatching",function(a){return this.theQueue.equals(a)},"java.awt.EventQueue");c(c$,"getEventQueue",function(){return this.theQueue});c$.$EventDispatchThread$StopDispatchEvent$=function(){v(self.c$); +c$=q(function(){K(this,arguments);k(this,arguments)},java.awt.EventDispatchThread,"StopDispatchEvent",java.awt.AWTEvent,java.awt.ActiveEvent);g(c$,function(){r(this,java.awt.EventDispatchThread.StopDispatchEvent,[this.b$["java.awt.EventDispatchThread"],0])});d(c$,"dispatch",function(){this.b$["java.awt.EventDispatchThread"].doDispatch=!1});c$=w()};c$.$EventDispatchThread$1$=function(){v(self.c$);c$=G(java.awt,"EventDispatchThread$1",null,Runnable);d(c$,"run",function(){this.b$["java.awt.EventDispatchThread"].pumpOneEventForFilters(this.f$.myid)}); +c$=w()};v(self.c$);c$=q(function(){this.modalComponent=null;k(this,arguments)},java.awt.EventDispatchThread,"HierarchyEventFilter",null,java.awt.EventFilter);g(c$,function(a){this.modalComponent=a},"java.awt.Component");d(c$,"acceptEvent",function(a){if(null!=this.modalComponent){var b=a.getID(),c=500<=b&&507>=b,d=1001<=b&&1001>=b,b=201==b;if(java.awt.Component.isInstanceOf(this.modalComponent,"javax.swing.JInternalFrame"))return b?java.awt.EventFilter.FilterAction.REJECT:java.awt.EventFilter.FilterAction.ACCEPT; +if(c||d||b)if(a=a.getSource(),!j(a,jssun.awt.ModalExclude)&&j(a,java.awt.Component)){c=!1;if(j(this.modalComponent,java.awt.Container))for(;a!==this.modalComponent&&null!=a;){if(j(a,java.awt.Window)&&jssun.awt.SunToolkit.isModalExcluded(a)){c=!0;break}a=a.getParent()}if(!c&&a!==this.modalComponent)return java.awt.EventFilter.FilterAction.REJECT}}return java.awt.EventFilter.FilterAction.ACCEPT},"java.awt.AWTEvent");c$=w();x(c$,"ANY_EVENT",-1)});p("java.awt");n(["java.lang.Enum"],"java.awt.EventFilter", +null,function(){y(java.awt,"EventFilter");v(self.c$);c$=t(java.awt.EventFilter,"FilterAction",Enum);F(c$,"ACCEPT",0,[]);F(c$,"REJECT",1,[]);F(c$,"ACCEPT_IMMEDIATELY",2,[]);c$=w()});p("java.awt");n(["java.awt.EventFilter"],"java.awt.ModalEventFilter",["java.awt.Component","$.Dialog","$.Window","jssun.awt.ModalExclude"],function(){c$=q(function(){this.modalDialog=null;this.disabled=!1;k(this,arguments)},java.awt,"ModalEventFilter",null,java.awt.EventFilter);g(c$,function(a){this.modalDialog=a;this.disabled= !1},"java.awt.Dialog");c(c$,"getModalDialog",function(){return this.modalDialog});d(c$,"acceptEvent",function(a){if(this.disabled||!this.modalDialog.isVisible())return java.awt.EventFilter.FilterAction.ACCEPT;var b=a.getID();if(500<=b&&507>=b||1001<=b&&1001>=b||201==b)if(a=a.getSource(),!j(a,jssun.awt.ModalExclude)&&j(a,java.awt.Component)){for(;null!=a&&!j(a,java.awt.Window);)a=a.getParent_NoClientCode();if(null!=a)return this.acceptWindow(a)}return java.awt.EventFilter.FilterAction.ACCEPT},"java.awt.AWTEvent"); c(c$,"disable",function(){this.disabled=!0});c(c$,"compareTo",function(a){a=a.getModalDialog();for(var b=this.modalDialog;null!=b;){if(b===a)return 1;b=b.getParent_NoClientCode()}for(b=a;null!=b;){if(b===this.modalDialog)return-1;b=b.getParent_NoClientCode()}for(b=this.modalDialog.getModalBlocker();null!=b;){if(b===a)return-1;b=b.getModalBlocker()}for(b=a.getModalBlocker();null!=b;){if(b===this.modalDialog)return 1;b=b.getModalBlocker()}return this.modalDialog.getModalityType().compareTo(a.getModalityType())}, "java.awt.ModalEventFilter");c$.createFilterForDialog=c(c$,"createFilterForDialog",function(a){switch(a.getModalityType()){case java.awt.Dialog.ModalityType.DOCUMENT_MODAL:return new java.awt.ModalEventFilter.DocumentModalEventFilter(a);case java.awt.Dialog.ModalityType.APPLICATION_MODAL:return new java.awt.ModalEventFilter.ApplicationModalEventFilter(a);case java.awt.Dialog.ModalityType.TOOLKIT_MODAL:return new java.awt.ModalEventFilter.ToolkitModalEventFilter(a)}return null},"java.awt.Dialog"); -w(self.c$);c$=q(function(){this.appContext=null;k(this,arguments)},java.awt.ModalEventFilter,"ToolkitModalEventFilter",java.awt.ModalEventFilter);g(c$,function(a){r(this,java.awt.ModalEventFilter.ToolkitModalEventFilter,[a]);this.appContext=a.appContext},"java.awt.Dialog");d(c$,"acceptWindow",function(a){if(a.isModalExcluded(java.awt.Dialog.ModalExclusionType.TOOLKIT_EXCLUDE))return java.awt.EventFilter.FilterAction.ACCEPT;if(a.appContext!==this.appContext)return java.awt.EventFilter.FilterAction.REJECT; -for(;null!=a;){if(a===this.modalDialog)return java.awt.EventFilter.FilterAction.ACCEPT_IMMEDIATELY;a=a.getOwner()}return java.awt.EventFilter.FilterAction.REJECT},"java.awt.Window");c$=v();w(self.c$);c$=q(function(){this.appContext=null;k(this,arguments)},java.awt.ModalEventFilter,"ApplicationModalEventFilter",java.awt.ModalEventFilter);g(c$,function(a){r(this,java.awt.ModalEventFilter.ApplicationModalEventFilter,[a]);this.appContext=a.appContext},"java.awt.Dialog");d(c$,"acceptWindow",function(a){if(a.isModalExcluded(java.awt.Dialog.ModalExclusionType.APPLICATION_EXCLUDE))return java.awt.EventFilter.FilterAction.ACCEPT; -if(a.appContext===this.appContext){for(;null!=a;){if(a===this.modalDialog)return java.awt.EventFilter.FilterAction.ACCEPT_IMMEDIATELY;a=a.getOwner()}return java.awt.EventFilter.FilterAction.REJECT}return java.awt.EventFilter.FilterAction.ACCEPT},"java.awt.Window");c$=v();w(self.c$);c$=q(function(){this.documentRoot=null;k(this,arguments)},java.awt.ModalEventFilter,"DocumentModalEventFilter",java.awt.ModalEventFilter);g(c$,function(a){r(this,java.awt.ModalEventFilter.DocumentModalEventFilter,[a]); +v(self.c$);c$=q(function(){this.appContext=null;k(this,arguments)},java.awt.ModalEventFilter,"ToolkitModalEventFilter",java.awt.ModalEventFilter);g(c$,function(a){r(this,java.awt.ModalEventFilter.ToolkitModalEventFilter,[a]);this.appContext=a.appContext},"java.awt.Dialog");d(c$,"acceptWindow",function(a){if(a.isModalExcluded(java.awt.Dialog.ModalExclusionType.TOOLKIT_EXCLUDE))return java.awt.EventFilter.FilterAction.ACCEPT;if(a.appContext!==this.appContext)return java.awt.EventFilter.FilterAction.REJECT; +for(;null!=a;){if(a===this.modalDialog)return java.awt.EventFilter.FilterAction.ACCEPT_IMMEDIATELY;a=a.getOwner()}return java.awt.EventFilter.FilterAction.REJECT},"java.awt.Window");c$=w();v(self.c$);c$=q(function(){this.appContext=null;k(this,arguments)},java.awt.ModalEventFilter,"ApplicationModalEventFilter",java.awt.ModalEventFilter);g(c$,function(a){r(this,java.awt.ModalEventFilter.ApplicationModalEventFilter,[a]);this.appContext=a.appContext},"java.awt.Dialog");d(c$,"acceptWindow",function(a){if(a.isModalExcluded(java.awt.Dialog.ModalExclusionType.APPLICATION_EXCLUDE))return java.awt.EventFilter.FilterAction.ACCEPT; +if(a.appContext===this.appContext){for(;null!=a;){if(a===this.modalDialog)return java.awt.EventFilter.FilterAction.ACCEPT_IMMEDIATELY;a=a.getOwner()}return java.awt.EventFilter.FilterAction.REJECT}return java.awt.EventFilter.FilterAction.ACCEPT},"java.awt.Window");c$=w();v(self.c$);c$=q(function(){this.documentRoot=null;k(this,arguments)},java.awt.ModalEventFilter,"DocumentModalEventFilter",java.awt.ModalEventFilter);g(c$,function(a){r(this,java.awt.ModalEventFilter.DocumentModalEventFilter,[a]); this.documentRoot=a.getDocumentRoot()},"java.awt.Dialog");d(c$,"acceptWindow",function(a){if(a.isModalExcluded(java.awt.Dialog.ModalExclusionType.APPLICATION_EXCLUDE)){for(var b=this.modalDialog.getOwner();null!=b;){if(b===a)return java.awt.EventFilter.FilterAction.REJECT;b=b.getOwner()}return java.awt.EventFilter.FilterAction.ACCEPT}for(;null!=a;){if(a===this.modalDialog)return java.awt.EventFilter.FilterAction.ACCEPT_IMMEDIATELY;if(a===this.documentRoot)return java.awt.EventFilter.FilterAction.REJECT; -a=a.getOwner()}return java.awt.EventFilter.FilterAction.ACCEPT},"java.awt.Window");c$=v()});p("java.awt.peer");n(["java.awt.peer.ComponentPeer"],"java.awt.peer.CanvasPeer",null,function(){y(java.awt.peer,"CanvasPeer",java.awt.peer.ComponentPeer)});p("java.awt.peer");c$=y(java.awt.peer,"ComponentPeer");x(c$,"SET_LOCATION",1,"SET_SIZE",2,"SET_BOUNDS",3,"SET_CLIENT_SIZE",4,"RESET_OPERATION",5,"NO_EMBEDDED_CHECK",16384,"DEFAULT_OPERATION",3);p("java.awt.peer");n(["java.awt.peer.ComponentPeer"],"java.awt.peer.ContainerPeer", +a=a.getOwner()}return java.awt.EventFilter.FilterAction.ACCEPT},"java.awt.Window");c$=w()});p("java.awt.peer");n(["java.awt.peer.ComponentPeer"],"java.awt.peer.CanvasPeer",null,function(){y(java.awt.peer,"CanvasPeer",java.awt.peer.ComponentPeer)});p("java.awt.peer");c$=y(java.awt.peer,"ComponentPeer");x(c$,"SET_LOCATION",1,"SET_SIZE",2,"SET_BOUNDS",3,"SET_CLIENT_SIZE",4,"RESET_OPERATION",5,"NO_EMBEDDED_CHECK",16384,"DEFAULT_OPERATION",3);p("java.awt.peer");n(["java.awt.peer.ComponentPeer"],"java.awt.peer.ContainerPeer", null,function(){y(java.awt.peer,"ContainerPeer",java.awt.peer.ComponentPeer)});p("java.awt.peer");n(["java.awt.peer.WindowPeer"],"java.awt.peer.FramePeer",null,function(){y(java.awt.peer,"FramePeer",java.awt.peer.WindowPeer)});p("java.awt.peer");n(["java.awt.peer.ComponentPeer"],"java.awt.peer.LightweightPeer",null,function(){y(java.awt.peer,"LightweightPeer",java.awt.peer.ComponentPeer)});p("java.awt.peer");n(["java.awt.peer.ContainerPeer"],"java.awt.peer.PanelPeer",null,function(){y(java.awt.peer, "PanelPeer",java.awt.peer.ContainerPeer)});p("java.awt.peer");n(["java.awt.peer.ContainerPeer"],"java.awt.peer.WindowPeer",null,function(){y(java.awt.peer,"WindowPeer",java.awt.peer.ContainerPeer)});p("java.awt");n(["java.awt.AWTEvent","$.ActiveEvent"],"java.awt.SentEvent",["java.awt.Toolkit","jssun.awt.SunToolkit"],function(){c$=q(function(){this.$dispatched=!1;this.toNotify=this.nested=null;k(this,arguments)},java.awt,"SentEvent",java.awt.AWTEvent,java.awt.ActiveEvent);g(c$,function(){this.construct(null)}); g(c$,function(a){this.construct(a,null)},"java.awt.AWTEvent");g(c$,function(a,b){r(this,java.awt.SentEvent,[null!=a?a.getSource():java.awt.Toolkit.getDefaultToolkit(),1007]);this.nested=a;this.toNotify=b},"java.awt.AWTEvent,jssun.awt.AppContext");d(c$,"dispatch",function(){try{null!=this.nested&&java.awt.Toolkit.getEventQueue().dispatchEvent(this.nested)}finally{this.$dispatched=!0,null!=this.toNotify&&jssun.awt.SunToolkit.postEvent(this.toNotify,new java.awt.SentEvent),this.notifyAll()}});c(c$,"dispose", @@ -1582,8 +1582,8 @@ function(){this.$dispatched=!0;null!=this.toNotify&&jssun.awt.SunToolkit.postEve java.awt,"SequencedEvent",java.awt.AWTEvent,java.awt.ActiveEvent);g(c$,function(a){r(this,java.awt.SequencedEvent,[a.getSource(),1006]);this.nested=a;java.awt.SequencedEvent.list.add(this)},"java.awt.AWTEvent");d(c$,"dispatch",function(){try{this.appContext=jssun.awt.AppContext.getAppContext();if(java.awt.SequencedEvent.getFirst()!==this)if(java.awt.EventQueue.isDispatchThread())Thread.currentThread().pumpEvents(1007,(C("java.awt.SequencedEvent$1")?0:java.awt.SequencedEvent.$SequencedEvent$1$(),D(java.awt.SequencedEvent$1, this,null)));else for(;!this.isFirstOrDisposed();)try{swingjs.JSToolkit.warn("Cannot wait in SequenceEvent"),java.awt.SequencedEvent.wait(1E3)}catch(a){if(z(a,InterruptedException))break;else throw a;}this.disposed||java.awt.Toolkit.getEventQueue().dispatchEvent(this.nested)}finally{this.dispose()}});c$.isOwnerAppContextDisposed=c(c$,"isOwnerAppContextDisposed",function(a){return null!=a&&(a=a.nested.getSource(),j(a,java.awt.Component))?a.appContext.isDisposed():!1},"java.awt.SequencedEvent");c(c$, "isFirstOrDisposed",function(){return this.disposed?!0:this===java.awt.SequencedEvent.getFirstWithContext()||this.disposed});c$.getFirst=c(c$,"getFirst",function(){return java.awt.SequencedEvent.list.getFirst()});c$.getFirstWithContext=c(c$,"getFirstWithContext",function(){for(var a=java.awt.SequencedEvent.getFirst();java.awt.SequencedEvent.isOwnerAppContextDisposed(a);)a.dispose(),a=java.awt.SequencedEvent.getFirst();return a});c(c$,"dispose",function(){if(!this.disposed){this.disposed=!0;null!= -this.appContext&&jssun.awt.SunToolkit.postEvent(this.appContext,new java.awt.SentEvent);var a=null;java.awt.SequencedEvent.notifyAll();java.awt.SequencedEvent.list.getFirst()===this?(java.awt.SequencedEvent.list.removeFirst(),java.awt.SequencedEvent.list.isEmpty()||(a=java.awt.SequencedEvent.list.getFirst())):java.awt.SequencedEvent.list.remove(this);null!=a&&null!=a.appContext&&jssun.awt.SunToolkit.postEvent(a.appContext,new java.awt.SentEvent)}});c$.$SequencedEvent$1$=function(){w(self.c$);c$=G(java.awt, -"SequencedEvent$1",null,java.awt.Conditional);d(c$,"evaluate",function(){return!this.b$["java.awt.SequencedEvent"].isFirstOrDisposed()});c$=v()};x(c$,"ID",1006);c$.list=c$.prototype.list=new java.util.LinkedList});n(["java.util.AbstractList"],"java.util.AbstractSequentialList",["java.lang.IndexOutOfBoundsException"],function(){c$=t(java.util,"AbstractSequentialList",java.util.AbstractList);c(c$,"add",function(a,b){this.listIterator(a).add(b)},"~N,~O");c(c$,"addAll",function(a,b){for(var c=this.listIterator(a), +this.appContext&&jssun.awt.SunToolkit.postEvent(this.appContext,new java.awt.SentEvent);var a=null;java.awt.SequencedEvent.notifyAll();java.awt.SequencedEvent.list.getFirst()===this?(java.awt.SequencedEvent.list.removeFirst(),java.awt.SequencedEvent.list.isEmpty()||(a=java.awt.SequencedEvent.list.getFirst())):java.awt.SequencedEvent.list.remove(this);null!=a&&null!=a.appContext&&jssun.awt.SunToolkit.postEvent(a.appContext,new java.awt.SentEvent)}});c$.$SequencedEvent$1$=function(){v(self.c$);c$=G(java.awt, +"SequencedEvent$1",null,java.awt.Conditional);d(c$,"evaluate",function(){return!this.b$["java.awt.SequencedEvent"].isFirstOrDisposed()});c$=w()};x(c$,"ID",1006);c$.list=c$.prototype.list=new java.util.LinkedList});n(["java.util.AbstractList"],"java.util.AbstractSequentialList",["java.lang.IndexOutOfBoundsException"],function(){c$=t(java.util,"AbstractSequentialList",java.util.AbstractList);c(c$,"add",function(a,b){this.listIterator(a).add(b)},"~N,~O");c(c$,"addAll",function(a,b){for(var c=this.listIterator(a), d=b.iterator(),f=c.nextIndex();d.hasNext();)c.add(d.next()),c.previous();return f!=c.nextIndex()},"~N,java.util.Collection");d(c$,"get",function(a){try{return this.listIterator(a).next()}catch(b){if(j(b,java.util.NoSuchElementException))throw new IndexOutOfBoundsException;throw b;}},"~N");d(c$,"iterator",function(){return this.listIterator(0)});c(c$,"remove",function(a){try{var b=this.listIterator(a),c=b.next();b.remove();return c}catch(d){if(j(d,java.util.NoSuchElementException))throw new IndexOutOfBoundsException; throw d;}},"~N");d(c$,"set",function(a,b){var c=this.listIterator(a),d=c.next();c.set(b);return d},"~N,~O")});n(["java.util.AbstractSequentialList","$.List","$.ListIterator","$.Queue"],"java.util.LinkedList",["java.lang.IllegalStateException","$.IndexOutOfBoundsException","java.lang.reflect.Array","java.util.ConcurrentModificationException","$.NoSuchElementException"],function(){c$=q(function(){this.$size=0;this.voidLink=null;k(this,arguments)},java.util,"LinkedList",java.util.AbstractSequentialList, [java.util.List,java.util.Queue,Cloneable,java.io.Serializable]);g(c$,function(){r(this,java.util.LinkedList,[]);this.voidLink=new java.util.LinkedList.Link(null,null,null);this.voidLink.previous=this.voidLink;this.voidLink.next=this.voidLink});g(c$,function(a){this.construct();this.addAll(a)},"java.util.Collection");c(c$,"add",function(a,b){if(0<=a&&a<=this.$size){var c=this.voidLink;if(aa;d--)c=c.previous;var d=c.previous, @@ -1596,12 +1596,12 @@ function(a){var b=this.$size,c=this.voidLink.previous;if(null!=a)for(;c!==this.v c=b.next;a.next=c;c.previous=a;this.$size--;this.modCount++;return b.data}throw new IndexOutOfBoundsException;},"~N");c(c$,"remove",function(a){var b=this.voidLink.next;if(null!=a)for(;b!==this.voidLink&&!a.equals(b.data);)b=b.next;else for(;b!==this.voidLink&&null!=b.data;)b=b.next;if(b===this.voidLink)return!1;a=b.next;b=b.previous;b.next=a;a.previous=b;this.$size--;this.modCount++;return!0},"~O");c(c$,"removeFirst",function(){var a=this.voidLink.next;if(a!==this.voidLink){var b=a.next;this.voidLink.next= b;b.previous=this.voidLink;this.$size--;this.modCount++;return a.data}throw new java.util.NoSuchElementException;});c(c$,"removeLast",function(){var a=this.voidLink.previous;if(a!==this.voidLink){var b=a.previous;this.voidLink.previous=b;b.next=this.voidLink;this.$size--;this.modCount++;return a.data}throw new java.util.NoSuchElementException;});d(c$,"set",function(a,b){if(0<=a&&aa;d--)c= c.previous;d=c.data;c.data=b;return d}throw new IndexOutOfBoundsException;},"~N,~O");d(c$,"size",function(){return this.$size});d(c$,"offer",function(a){this.add(a);return!0},"~O");d(c$,"poll",function(){return 0==this.$size?null:this.removeFirst()});c(c$,"remove",function(){return this.removeFirst()});d(c$,"peek",function(){var a=this.voidLink.next;return a===this.voidLink?null:a.data});d(c$,"element",function(){return this.getFirst()});c(c$,"toArray",function(){for(var a=0,b=Array(this.$size),c= -this.voidLink.next;c!==this.voidLink;)b[a++]=c.data,c=c.next;return b});c(c$,"toArray",function(a){var b=0;this.$size>a.length&&(a=a.getClass().getComponentType(),a=java.lang.reflect.Array.newInstance(a,this.$size));for(var c=this.voidLink.next;c!==this.voidLink;)a[b++]=c.data,c=c.next;b= +this.voidLink.next;c!==this.voidLink;)b[a++]=c.data,c=c.next;return b});c(c$,"toArray",function(a){var b=0;this.$size>a.length&&(a=a.getClass().getComponentType(),a=java.lang.reflect.Array.newInstance(a,this.$size));for(var c=this.voidLink.next;c!==this.voidLink;)a[b++]=c.data,c=c.next;b= b;this.pos--)this.link=this.link.previous;else throw new IndexOutOfBoundsException;},"java.util.LinkedList,~N");d(c$,"add",function(a){if(this.expectedModCount==this.list.modCount){var b=this.link.next;a=new java.util.LinkedList.Link(a,this.link,b);this.link.next=a;this.link=b.previous=a;this.lastLink=null;this.pos++;this.expectedModCount++;this.list.$size++;this.list.modCount++}else throw new java.util.ConcurrentModificationException;},"~O");d(c$,"hasNext",function(){return this.link.next!==this.list.voidLink}); d(c$,"hasPrevious",function(){return this.link!==this.list.voidLink});d(c$,"next",function(){if(this.expectedModCount==this.list.modCount){var a=this.link.next;if(a!==this.list.voidLink)return this.lastLink=this.link=a,this.pos++,this.link.data;throw new java.util.NoSuchElementException;}throw new java.util.ConcurrentModificationException;});d(c$,"nextIndex",function(){return this.pos+1});d(c$,"previous",function(){if(this.expectedModCount==this.list.modCount){if(this.link!==this.list.voidLink)return this.lastLink= this.link,this.link=this.link.previous,this.pos--,this.lastLink.data;throw new java.util.NoSuchElementException;}throw new java.util.ConcurrentModificationException;});d(c$,"previousIndex",function(){return this.pos});d(c$,"remove",function(){if(this.expectedModCount==this.list.modCount)if(null!=this.lastLink){var a=this.lastLink.next,b=this.lastLink.previous;a.previous=b;b.next=a;this.lastLink===this.link&&this.pos--;this.link=b;this.lastLink=null;this.expectedModCount++;this.list.$size--;this.list.modCount++}else throw new IllegalStateException; -else throw new java.util.ConcurrentModificationException;});d(c$,"set",function(a){if(this.expectedModCount==this.list.modCount)if(null!=this.lastLink)this.lastLink.data=a;else throw new IllegalStateException;else throw new java.util.ConcurrentModificationException;},"~O");c$=v()});p("JU");n(["JU.T3"],"JU.V3",null,function(){c$=t(JU,"V3",JU.T3);g(c$,function(){});c$.newV=c(c$,"newV",function(a){return JU.V3.new3(a.x,a.y,a.z)},"JU.T3");c$.newVsub=c(c$,"newVsub",function(a,b){return JU.V3.new3(a.x- +else throw new java.util.ConcurrentModificationException;});d(c$,"set",function(a){if(this.expectedModCount==this.list.modCount)if(null!=this.lastLink)this.lastLink.data=a;else throw new IllegalStateException;else throw new java.util.ConcurrentModificationException;},"~O");c$=w()});p("JU");n(["JU.T3"],"JU.V3",null,function(){c$=t(JU,"V3",JU.T3);g(c$,function(){});c$.newV=c(c$,"newV",function(a){return JU.V3.new3(a.x,a.y,a.z)},"JU.T3");c$.newVsub=c(c$,"newVsub",function(a,b){return JU.V3.new3(a.x- b.x,a.y-b.y,a.z-b.z)},"JU.T3,JU.T3");c$.new3=c(c$,"new3",function(a,b,c){var d=new JU.V3;d.x=a;d.y=b;d.z=c;return d},"~N,~N,~N");c(c$,"angle",function(a){var b=this.y*a.z-this.z*a.y,c=this.z*a.x-this.x*a.z,d=this.x*a.y-this.y*a.x,b=Math.sqrt(b*b+c*c+d*d);return Math.abs(Math.atan2(b,this.dot(a)))},"JU.V3")});p("javax.swing");n(["java.util.Vector"],"javax.swing.ButtonGroup",null,function(){c$=q(function(){this.selection=this.buttons=null;k(this,arguments)},javax.swing,"ButtonGroup");I(c$,function(){this.buttons= new java.util.Vector});g(c$,function(){});c(c$,"add",function(a){null!=a&&(this.buttons.addElement(a),a.isSelected()&&(null==this.selection?this.selection=a.getModel():a.setSelected(!1)),a.getModel().setGroup(this))},"javax.swing.AbstractButton");c(c$,"remove",function(a){null!=a&&(this.buttons.removeElement(a),a.getModel()===this.selection&&(this.selection=null),a.getModel().setGroup(null))},"javax.swing.AbstractButton");c(c$,"clearSelection",function(){if(null!=this.selection){var a=this.selection; this.selection=null;a.setSelected(!1)}});c(c$,"getElements",function(){return this.buttons.elements()});c(c$,"getSelection",function(){return this.selection});c(c$,"setSelected",function(a,b){if(b&&null!=a&&a!==this.selection){var c=this.selection;this.selection=a;null!=c&&c.setSelected(!1);a.setSelected(!0)}},"javax.swing.ButtonModel,~B");c(c$,"isSelected",function(a){return a===this.selection},"javax.swing.ButtonModel");c(c$,"getButtonCount",function(){return null==this.buttons?0:this.buttons.size()})}); @@ -1610,7 +1610,7 @@ p("javax.swing");n(["jssun.awt.PaintEventDispatcher"],"javax.swing.SwingPaintEve k(this,arguments)},jssun.awt,"AWTAutoShutdown",null,Runnable);I(c$,function(){this.busyThreadSet=new java.util.HashSet(7);this.peerMap=new java.util.IdentityHashMap});g(c$,function(){});c$.getInstance=c(c$,"getInstance",function(){return null==jssun.awt.AWTAutoShutdown.theInstance?jssun.awt.AWTAutoShutdown.theInstance=new jssun.awt.AWTAutoShutdown:jssun.awt.AWTAutoShutdown.theInstance});c$.notifyToolkitThreadBusy=c(c$,"notifyToolkitThreadBusy",function(){jssun.awt.AWTAutoShutdown.getInstance().setToolkitBusy(!0)}); c$.notifyToolkitThreadFree=c(c$,"notifyToolkitThreadFree",function(){jssun.awt.AWTAutoShutdown.getInstance().setToolkitBusy(!1)});c(c$,"notifyThreadBusy",function(a){this.busyThreadSet.add(a)},"Thread");c(c$,"notifyThreadFree",function(a){this.busyThreadSet.remove(a)},"Thread");c(c$,"notifyPeerMapUpdated",function(){this.isReadyToShutdown()||this.activateBlockerThread()});c(c$,"isReadyToShutdown",function(){return!this.toolkitThreadBusy&&this.peerMap.isEmpty()&&this.busyThreadSet.isEmpty()});c(c$, "setToolkitBusy",function(a){a!=this.toolkitThreadBusy&&a!=this.toolkitThreadBusy&&(this.toolkitThreadBusy=a)},"~B");d(c$,"run",function(){});c$.getShutdownEvent=c(c$,"getShutdownEvent",function(){return C("jssun.awt.AWTAutoShutdown$1")?0:jssun.awt.AWTAutoShutdown.$AWTAutoShutdown$1$(),D(jssun.awt.AWTAutoShutdown$1,this,null,jssun.awt.AWTAutoShutdown.getInstance(),0)});c(c$,"activateBlockerThread",function(){});c(c$,"registerPeer",function(a,b){this.peerMap.put(a,b);this.notifyPeerMapUpdated()},"~O,~O"); -c(c$,"unregisterPeer",function(a,b){this.peerMap.get(a)===b&&this.peerMap.remove(a)},"~O,~O");c(c$,"getPeer",function(a){return this.peerMap.get(a)},"~O");c(c$,"dumpPeers",function(a){a.fine("Mapped peers:");for(var b,c=this.peerMap.keySet().iterator();c.hasNext()&&((b=c.next())||1);)a.fine(b+"->"+this.peerMap.get(b))},"java.util.logging.Logger");c$.$AWTAutoShutdown$1$=function(){w(self.c$);c$=G(jssun.awt,"AWTAutoShutdown$1",java.awt.AWTEvent);c$=v()};x(c$,"theInstance",null)});p("jssun.awt");c$= +c(c$,"unregisterPeer",function(a,b){this.peerMap.get(a)===b&&this.peerMap.remove(a)},"~O,~O");c(c$,"getPeer",function(a){return this.peerMap.get(a)},"~O");c(c$,"dumpPeers",function(a){a.fine("Mapped peers:");for(var b,c=this.peerMap.keySet().iterator();c.hasNext()&&((b=c.next())||1);)a.fine(b+"->"+this.peerMap.get(b))},"java.util.logging.Logger");c$.$AWTAutoShutdown$1$=function(){v(self.c$);c$=G(jssun.awt,"AWTAutoShutdown$1",java.awt.AWTEvent);c$=w()};x(c$,"theInstance",null)});p("jssun.awt");c$= q(function(){this.next=this.event=null;k(this,arguments)},jssun.awt,"EventQueueItem");g(c$,function(a){this.event=a},"java.awt.AWTEvent");p("jssun.awt");y(jssun.awt,"ModalExclude");p("jssun.awt");n(["java.awt.peer.CanvasPeer","$.LightweightPeer","$.PanelPeer"],"jssun.awt.NullComponentPeer","java.lang.IllegalStateException $.UnsupportedOperationException java.awt.Dimension $.Insets $.Point $.Rectangle".split(" "),function(){c$=t(jssun.awt,"NullComponentPeer",null,[java.awt.peer.LightweightPeer,java.awt.peer.CanvasPeer, java.awt.peer.PanelPeer]);d(c$,"isObscured",function(){return!1});d(c$,"canDetermineObscurity",function(){return!1});d(c$,"isFocusable",function(){return!1});d(c$,"setVisible",function(){},"~B");c(c$,"show",function(){});c(c$,"hide",function(){});d(c$,"setEnabled",function(){},"~B");c(c$,"enable",function(){});c(c$,"disable",function(){});d(c$,"paint",function(){},"java.awt.Graphics");d(c$,"repaint",function(){},"~N,~N,~N,~N,~N");d(c$,"print",function(){},"java.awt.Graphics");d(c$,"setBounds",function(){}, "~N,~N,~N,~N,~N");c(c$,"reshape",function(){},"~N,~N,~N,~N");d(c$,"coalescePaintEvent",function(){},"java.awt.event.PaintEvent");c(c$,"handleEvent",function(){return!1},"java.awt.Event");c(c$,"handleEvent",function(){},"java.awt.AWTEvent");d(c$,"getPreferredSize",function(){return new java.awt.Dimension(1,1)});d(c$,"getMinimumSize",function(){return new java.awt.Dimension(1,1)});d(c$,"getToolkit",function(){return null});d(c$,"getColorModel",function(){return null});d(c$,"getGraphics",function(){return null}); @@ -1632,8 +1632,8 @@ c(c$,"getString",function(a,c){var d=null==c?java.util.Locale.getDefault():c.get function(a,c){return javax.swing.UIManager.getDefaults().getBoolean(a,c)},"~O,java.util.Locale");c$.getInsets=c(c$,"getInsets",function(a){return javax.swing.UIManager.getDefaults().getInsets(a)},"~O");c$.getInsets=c(c$,"getInsets",function(a,c){return javax.swing.UIManager.getDefaults().getInsets(a,c)},"~O,java.util.Locale");c$.getDimension=c(c$,"getDimension",function(a){return javax.swing.UIManager.getDefaults().getDimension(a)},"~O");c$.getDimension=c(c$,"getDimension",function(a,c){return javax.swing.UIManager.getDefaults().getDimension(a, c)},"~O,java.util.Locale");c$.get=c(c$,"get",function(a){return javax.swing.UIManager.getDefaults().get(a)},"~O");c$.get=c(c$,"get",function(a,c){return javax.swing.UIManager.getDefaults().get(a,c)},"~O,java.util.Locale");c$.put=c(c$,"put",function(a,c){return javax.swing.UIManager.getDefaults().put(a,c)},"~O,~O");c$.getUI=c(c$,"getUI",function(a){javax.swing.UIManager.maybeInitialize();var c=null,c=javax.swing.UIManager.getDefaults().getUI(a);null==c&&System.out.println(a.getUIClassID()+" has not been implemented"); return c},"javax.swing.JComponent");c$.addPropertyChangeListener=c(c$,"addPropertyChangeListener",function(){},"java.beans.PropertyChangeListener");c$.removePropertyChangeListener=c(c$,"removePropertyChangeListener",function(){},"java.beans.PropertyChangeListener");c$.getPropertyChangeListeners=c(c$,"getPropertyChangeListeners",function(){return[]});c$.maybeInitialize=c(c$,"maybeInitialize",function(){null==javax.swing.UIManager.uid&&(javax.swing.UIManager.uid=swingjs.JSToolkit.getLookAndFeelDefaults(), -javax.swing.UIManager.initialize())});c$.initialize=c(c$,"initialize",function(){javax.swing.RepaintManager.HANDLE_TOP_LEVEL_PAINT&&jssun.awt.PaintEventDispatcher.setPaintEventDispatcher(new javax.swing.SwingPaintEventDispatcher)});w(self.c$);c$=q(function(){this.className=this.name=null;k(this,arguments)},javax.swing.UIManager,"LookAndFeelInfo");g(c$,function(a,c){this.name=a;this.className=c},"~S,~S");c(c$,"getName",function(){return this.name});c(c$,"getClassName",function(){return this.className}); -d(c$,"toString",function(){return this.getClass().getName()+"["+this.getName()+" "+this.getClassName()+"]"});c$=v();x(c$,"installedLAFs",null);var a=new java.util.ArrayList(4);a.add(new javax.swing.UIManager.LookAndFeelInfo("HTML5","swingjs.plaf.HTML5LookAndFeel"));javax.swing.UIManager.installedLAFs=a.toArray(Array(a.size()));x(c$,"laf",null,"uid",null)});p("javax.swing");n(["java.util.Hashtable","java.util.Locale"],"javax.swing.UIDefaults","java.lang.Boolean $.Error java.util.HashMap $.Vector java.awt.Color $.Dimension $.Font $.Insets javax.swing.Icon $.SwingUtilities javax.swing.border.Border javax.swing.event.SwingPropertyChangeSupport swingjs.JSToolkit".split(" "), +javax.swing.UIManager.initialize())});c$.initialize=c(c$,"initialize",function(){javax.swing.RepaintManager.HANDLE_TOP_LEVEL_PAINT&&jssun.awt.PaintEventDispatcher.setPaintEventDispatcher(new javax.swing.SwingPaintEventDispatcher)});v(self.c$);c$=q(function(){this.className=this.name=null;k(this,arguments)},javax.swing.UIManager,"LookAndFeelInfo");g(c$,function(a,c){this.name=a;this.className=c},"~S,~S");c(c$,"getName",function(){return this.name});c(c$,"getClassName",function(){return this.className}); +d(c$,"toString",function(){return this.getClass().getName()+"["+this.getName()+" "+this.getClassName()+"]"});c$=w();x(c$,"installedLAFs",null);var a=new java.util.ArrayList(4);a.add(new javax.swing.UIManager.LookAndFeelInfo("HTML5","swingjs.plaf.HTML5LookAndFeel"));javax.swing.UIManager.installedLAFs=a.toArray(Array(a.size()));x(c$,"laf",null,"uid",null)});p("javax.swing");n(["java.util.Hashtable","java.util.Locale"],"javax.swing.UIDefaults","java.lang.Boolean $.Error java.util.HashMap $.Vector java.awt.Color $.Dimension $.Font $.Insets javax.swing.Icon $.SwingUtilities javax.swing.border.Border javax.swing.event.SwingPropertyChangeSupport swingjs.JSToolkit".split(" "), function(){c$=q(function(){this.resourceCache=this.defaultLocale=this.resourceBundles=this.changeSupport=null;k(this,arguments)},javax.swing,"UIDefaults",java.util.Hashtable);I(c$,function(){this.defaultLocale=java.util.Locale.getDefault()});g(c$,function(){this.construct(700,0.75)});g(c$,function(a,b){r(this,javax.swing.UIDefaults,[a,b]);this.resourceCache=new java.util.HashMap},"~N,~N");g(c$,function(a){r(this,javax.swing.UIDefaults,[A(a.length/2)]);for(var b=0;b=this.getWidth()){var d=c.getX(),f=c.getY();a.translate(d,f);a.setClip(b.x-d,b.y-f,b.width,b.height);c.paintForceDoubleBuffered(a);a.translate(-d,-f);a.setClip(b.x,b.y,b.width, b.height)}else try{this.inBlitPaint=!0,this.paintForceDoubleBuffered(a)}finally{this.inBlitPaint=!1}},"java.awt.Graphics");c(c$,"canUseWindowBlitter",function(){if(!this.isShowing()||!j(this.getParent(),javax.swing.JComponent)&&!j(this.getView(),javax.swing.JComponent)||this.isPainting())return!1;var a=javax.swing.RepaintManager.currentManager(this).getDirtyRegion(this.getParent());if(null!=a&&0a||a>=this.getComponentCount()?null:this.getComponent(a)},"~N");c(c$,"getComponentIndex",function(a){for(var b=this.getComponentCount(),c=this.getComponents(),d=0;db.size()?b.add(a):a._dispose())},"javax.swing.PopupFactory.HeavyWeightPopup");c(c$,"hide",function(){u(this,javax.swing.PopupFactory.HeavyWeightPopup,"hide",[]);javax.swing.PopupFactory.HeavyWeightPopup.recycleHeavyWeightPopup(this)});c(c$,"dispose",function(){});c(c$,"_dispose",function(){u(this, -javax.swing.PopupFactory.HeavyWeightPopup,"dispose",[])});c$.$PopupFactory$HeavyWeightPopup$1$=function(){w(self.c$);c$=G(javax.swing,"PopupFactory$HeavyWeightPopup$1",java.awt.event.WindowAdapter);d(c$,"windowClosed",function(){var a,b=javax.swing.PopupFactory.HeavyWeightPopup.getHeavyWeightPopupCache();a=b.remove(this.f$.e);if(null!=a)for(b=a.size()-1;0<=b;b--)a.get(b)._dispose()},"java.awt.event.WindowEvent");c$=v()};c$.heavyWeightPopupCacheKey=c$.prototype.heavyWeightPopupCacheKey=new J._O;c$= -v();w(self.c$);c$=q(function(){this.owner=null;this.y=this.x=0;k(this,arguments)},javax.swing.PopupFactory,"ContainerPopup",javax.swing.Popup);d(c$,"hide",function(){var a=this.getComponent();if(null!=a){var b=a.getParent();if(null!=b){var c=a.getBounds();b.remove(a);b.repaint(c.x,c.y,c.width,c.height)}}this.owner=null});d(c$,"pack",function(){var a=this.getComponent();null!=a&&a.setSize(a.getPreferredSize())});c(c$,"reset",function(a,b,c,d){if(j(a,javax.swing.JFrame)||j(a,javax.swing.JDialog)||j(a, +javax.swing.PopupFactory.HeavyWeightPopup,"dispose",[])});c$.$PopupFactory$HeavyWeightPopup$1$=function(){v(self.c$);c$=G(javax.swing,"PopupFactory$HeavyWeightPopup$1",java.awt.event.WindowAdapter);d(c$,"windowClosed",function(){var a,b=javax.swing.PopupFactory.HeavyWeightPopup.getHeavyWeightPopupCache();a=b.remove(this.f$.e);if(null!=a)for(b=a.size()-1;0<=b;b--)a.get(b)._dispose()},"java.awt.event.WindowEvent");c$=w()};c$.heavyWeightPopupCacheKey=c$.prototype.heavyWeightPopupCacheKey=new J._O;c$= +w();v(self.c$);c$=q(function(){this.owner=null;this.y=this.x=0;k(this,arguments)},javax.swing.PopupFactory,"ContainerPopup",javax.swing.Popup);d(c$,"hide",function(){var a=this.getComponent();if(null!=a){var b=a.getParent();if(null!=b){var c=a.getBounds();b.remove(a);b.repaint(c.x,c.y,c.width,c.height)}}this.owner=null});d(c$,"pack",function(){var a=this.getComponent();null!=a&&a.setSize(a.getPreferredSize())});c(c$,"reset",function(a,b,c,d){if(j(a,javax.swing.JFrame)||j(a,javax.swing.JDialog)||j(a, javax.swing.JWindow))a=a.getLayeredPane();u(this,javax.swing.PopupFactory.ContainerPopup,"reset",[a,b,c,d]);this.x=c;this.y=d;this.owner=a},"java.awt.Component,java.awt.Component,~N,~N");c(c$,"overlappedByOwnedWindow",function(){var a=this.getComponent();if(null!=this.owner&&null!=a){var b=javax.swing.SwingUtilities.getWindowAncestor(this.owner);if(null==b)return!1;b=b.getOwnedWindows();if(null!=b)for(var a=a.getBounds(),c=0;cb.size()&&b.add(a)},"javax.swing.PopupFactory.MediumWeightPopup"); c$.getRecycledMediumWeightPopup=c(c$,"getRecycledMediumWeightPopup",function(){var a=javax.swing.PopupFactory.MediumWeightPopup.getMediumWeightPopupCache();if(0d||0==g)return f=Array(1),f[0]=a,f;for(var j=a.length-g;0<=d&&dd||0==g)return f=Array(1),f[0]=a,f;for(var j=a.length-g;0<=d&&d -a.charCodeAt(0)?E(this.getWidthsFloat()[a.charCodeAt(0)]):this.stringWidth(""+a)},"~S");c(c$,"charWidth",function(a){return 256>a?E(this.getWidthsFloat()[a]):this.stringWidth(""+String.fromCharCode(a))},"~N");d(c$,"stringWidth",function(a){return E(swingjs.JSToolkit.getStringWidth(null,this.font,a))},"~S");d(c$,"getWidths",function(){if(null!=this.iwidths)return this.iwidths;this.iwidths=H(256,0);this.getWidthsFloat();for(var a=0;256>a;a++)this.iwidths[a]=E(this.widths[a]);return this.iwidths});c(c$, -"getWidthsFloat",function(){if(null!=this.widths)return this.widths;this.widths=M(256,0);for(var a=0;256>a;a++)this.widths[a]=swingjs.JSToolkit.getStringWidth(null,this.font,""+String.fromCharCode(a));return this.widths})});p("swingjs");n(["java.lang.Thread","swingjs.api.JSFunction"],"swingjs.JSThread",null,function(){c$=q(function(){this.isJS=!1;k(this,arguments)},swingjs,"JSThread",Thread,swingjs.api.JSFunction);g(c$,function(a,b){r(this,swingjs.JSThread,[a,b]);this.isJS=!0},"ThreadGroup,~S");d(c$, -"run",function(){this.run1(0)});c(c$,"start",function(){swingjs.JSToolkit.setTimeout(this,1,0)});c(c$,"sleepAndReturn",function(a,b){if(!this.isJS)return Thread.sleep(a),!1;var c=this,d=(C("swingjs.JSThread$1")?0:swingjs.JSThread.$JSThread$1$(),D(swingjs.JSThread$1,this,P("me",c,"state",b)));setTimeout(function(){java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new java.awt.event.InvocationEvent(c,d))},a);return!0},"~N,~N");c$.$JSThread$1$=function(){w(self.c$);c$=G(swingjs,"JSThread$1", -null,Runnable);d(c$,"run",function(){this.f$.me.run1(this.f$.state)});c$=v()};x(c$,"INIT",0,"LOOP",1,"DONE",2)});p("swingjs");n(["java.lang.ThreadGroup"],"swingjs.JSThreadGroup",null,function(){c$=q(function(){this.html5Applet=null;k(this,arguments)},swingjs,"JSThreadGroup",ThreadGroup);c(c$,"setHtmlApplet",function(a){this.html5Applet=a},"swingjs.api.HTML5Applet");c(c$,"getHtmlApplet",function(){return this.html5Applet})});p("swingjs");n(["java.applet.AppletContext","$.AppletStub","java.awt.Panel", -"swingjs.api.JSInterface","java.awt.Dimension"],"swingjs.JSAppletPanel","java.lang.InstantiationException java.net.URL java.awt.BorderLayout $.Font $.Toolkit javax.swing.JApplet jssun.applet.AppletEvent $.AppletEventMulticaster swingjs.JSAppletThread $.JSGraphics2D $.JSMouse $.JSThreadGroup $.JSToolkit $.JSUtil swingjs.api.Interface".split(" "),function(){c$=q(function(){this.appletDocumentBase=this.appletIdiomaBase=this.appletCodeBase=this.fullName=this.html5Applet=this.params=null;this.maximumSize= -2147483647;this.syncId=this.appletName=null;this.async=this.testAsync=!1;this.currentAppletSize=this.defaultAppletSize=this.applet=this.jsgraphics=this.canvas=this.display=this.strJavaVendor=this.strJavaVersion=null;this.status=this.nextStatus=0;this.mouse=this.listeners=null;k(this,arguments)},swingjs,"JSAppletPanel",java.awt.Panel,[java.applet.AppletStub,java.applet.AppletContext,swingjs.api.JSInterface]);I(c$,function(){this.defaultAppletSize=new java.awt.Dimension(10,10);this.currentAppletSize= -new java.awt.Dimension(10,10)});g(c$,function(a){r(this,swingjs.JSAppletPanel,[]);this.setPanel();this.set(a)},"java.util.Hashtable");c(c$,"set",function(a){System.out.println("JSAppletPanel initializing");this.params=a;this.htmlName=swingjs.JSUtil.split(""+this.getParameter("name"),"_object")[0];this.appletName=swingjs.JSUtil.split(this.htmlName+"_","_")[0];this.syncId=this.getParameter("syncId");this.fullName=this.htmlName+"__"+this.syncId+"__";a.put("fullName",this.fullName);var b=a.get("codePath"); -null==b&&(b="../java/");this.appletCodeBase=b.toString();this.appletIdiomaBase=this.appletCodeBase.substring(0,this.appletCodeBase.lastIndexOf("/",this.appletCodeBase.length-2)+1)+"idioma";b=a.get("documentBase");this.appletDocumentBase=null==b?"":b.toString();a.containsKey("maximumSize")&&Math.max(a.get("maximumSize").intValue(),100);this.async=this.testAsync||a.containsKey("async");var b=null,c="?";self.Jmol&&(b=Jmol._applets[this.htmlName.split("_object")[0]],c=Jmol._version);this.html5Applet= -b;this.strJavaVersion=c;this.strJavaVendor="Java2Script/Java 1.6 (HTML5)";this.display=a.get("display");this.threadGroup=new swingjs.JSThreadGroup(this.appletName);this.myThread=new swingjs.JSAppletThread(this,this.threadGroup,this.appletName);this.threadGroup.setHtmlApplet(this.html5Applet);Jmol._applets[this.appletName+"_thread"]=java.lang.Thread.thisThread=this.myThread;this.appContext=swingjs.JSToolkit.createNewAppContext();java.awt.Toolkit.getDefaultToolkit();try{java.net.URL.setURLStreamHandlerFactory(swingjs.api.Interface.getInstance("JU.AjaxURLStreamHandlerFactory", -!1))}catch(d){}System.out.println("JSAppletPanel initialized")},"java.util.Hashtable");c(c$,"start",function(){0==this.status?this.myThread.start():this.showStatus("already started")});c(c$,"addAppletListener",function(a){this.listeners=jssun.applet.AppletEventMulticaster.add(this.listeners,a)},"jssun.applet.AppletListener");c(c$,"removeAppletListener",function(a){this.listeners=jssun.applet.AppletEventMulticaster.remove(this.listeners,a)},"jssun.applet.AppletListener");c(c$,"dispatchAppletEvent", -function(a,b){if(null!=this.listeners){var c=new jssun.applet.AppletEvent(this,a,b);this.listeners.appletStateChanged(c)}},"~N,~O");c(c$,"getCode",function(){return this.getParameter("code")});c(c$,"getCanvas",function(){return null==this.canvas?this.canvas=this.html5Applet._getHtml5Canvas():this.canvas});d(c$,"isActive",function(){return!0});d(c$,"appletResize",function(a,b){var c=new java.awt.Dimension(this.currentAppletSize.width,this.currentAppletSize.height);this.currentAppletSize.width=a;this.currentAppletSize.height= -b;this.applet.setBounds(0,0,this.getWidth(),this.getHeight());this.applet.getRootPane().setBounds(0,0,this.getWidth(),this.getHeight());this.applet.getContentPane().setBounds(0,0,this.getWidth(),this.getHeight());this.applet.getContentPane().revalidate();this.dispatchAppletEvent(51234,c)},"~N,~N");d(c$,"getDocumentBase",function(){try{return new java.net.URL(this.params.get("documentBase"))}catch(a){if(z(a,java.net.MalformedURLException))return null;throw a;}});d(c$,"getCodeBase",function(){try{return new java.net.URL(this.params.get("codePath"))}catch(a){if(z(a, +function(){v(self.c$);c$=G(swingjs,"JSToolkit$1",null,Runnable);d(c$,"run",function(){this.f$.ui.requestFocus(null,!1,!1,0,null)});c$=w()};x(c$,"gc",null,"defaultContext",null,"mapNotImpl",null,"uid",null,"dispatchID",0,"compositor",null)});p("swingjs");n(["java.awt.event.InvocationEvent"],"swingjs.JSEvent",null,function(){c$=t(swingjs,"JSEvent",java.awt.event.InvocationEvent);g(c$,function(a,b){r(this,swingjs.JSEvent,[a,1201,b,null,!1])},"swingjs.JSThread,Runnable")});p("swingjs");n(["java.awt.FontMetrics"], +"swingjs.JSFontMetrics",["swingjs.JSToolkit"],function(){c$=q(function(){this.iwidths=this.fwidths=null;this.FIRST_PRINTABLE=32;k(this,arguments)},swingjs,"JSFontMetrics",java.awt.FontMetrics);g(c$,function(){r(this,swingjs.JSFontMetrics,[null])});c(c$,"setFont",function(a){this.font=a},"java.awt.Font");d(c$,"getLeading",function(){return A(this.font.getSize()/20)+1});d(c$,"getAscent",function(){return this.font.getSize()});d(c$,"getDescent",function(){return A(this.font.getSize()/4)+1});c(c$,"charWidth", +function(a){var b;return 256>(a+0==a?a:a=(b=a).charCodeAt(0))?E(this.getWidthsFloat()[a]):this.stringWidth(isChar?b:String.fromCharCode(a))},"~N");d(c$,"stringWidth",function(a){return E(swingjs.JSToolkit.getStringWidth(null,this.font,a))},"~S");d(c$,"getWidths",function(){if(null!=this.iwidths)return this.iwidths;this.iwidths=H(256,0);this.getWidthsFloat();for(var a=this.FIRST_PRINTABLE;256>a;a++)this.iwidths[a]=E(this.fwidths[a]);return this.iwidths});c(c$,"getWidthsFloat",function(){if(null!=this.fwidths)return this.fwidths; +this.fwidths=M(256,0);for(var a=this.FIRST_PRINTABLE;256>a;a++)this.fwidths[a]=swingjs.JSToolkit.getStringWidth(null,this.font,""+String.fromCharCode(a));return this.fwidths})});p("swingjs");n(["java.lang.Thread","swingjs.api.JSFunction"],"swingjs.JSThread",null,function(){c$=q(function(){this.isJS=!1;k(this,arguments)},swingjs,"JSThread",Thread,swingjs.api.JSFunction);g(c$,function(a,b){r(this,swingjs.JSThread,[a,b]);this.isJS=!0},"ThreadGroup,~S");d(c$,"run",function(){this.run1(0)});c(c$,"start", +function(){swingjs.JSToolkit.setTimeout(this,1,0)});c(c$,"sleepAndReturn",function(a,b){if(!this.isJS)return Thread.sleep(a),!1;var c=this,d=(C("swingjs.JSThread$1")?0:swingjs.JSThread.$JSThread$1$(),D(swingjs.JSThread$1,this,P("me",c,"state",b)));setTimeout(function(){java.awt.Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(new java.awt.event.InvocationEvent(c,d))},a);return!0},"~N,~N");c$.$JSThread$1$=function(){v(self.c$);c$=G(swingjs,"JSThread$1",null,Runnable);d(c$,"run",function(){this.f$.me.run1(this.f$.state)}); +c$=w()};x(c$,"INIT",0,"LOOP",1,"DONE",2)});p("swingjs");n(["java.lang.ThreadGroup"],"swingjs.JSThreadGroup",null,function(){c$=q(function(){this.html5Applet=null;k(this,arguments)},swingjs,"JSThreadGroup",ThreadGroup);c(c$,"setHtmlApplet",function(a){this.html5Applet=a},"swingjs.api.HTML5Applet");c(c$,"getHtmlApplet",function(){return this.html5Applet})});p("swingjs");n(["java.applet.AppletContext","$.AppletStub","java.awt.Panel","swingjs.api.JSInterface","java.awt.Dimension"],"swingjs.JSAppletPanel", +"java.lang.InstantiationException java.net.URL java.awt.BorderLayout $.Font $.Toolkit javax.swing.JApplet jssun.applet.AppletEvent $.AppletEventMulticaster swingjs.JSAppletThread $.JSGraphics2D $.JSMouse $.JSThreadGroup $.JSToolkit $.JSUtil swingjs.api.Interface".split(" "),function(){c$=q(function(){this.appletDocumentBase=this.appletIdiomaBase=this.appletCodeBase=this.fullName=this.html5Applet=this.params=null;this.maximumSize=2147483647;this.syncId=this.appletName=null;this.async=this.testAsync= +!1;this.currentAppletSize=this.defaultAppletSize=this.applet=this.jsgraphics=this.canvas=this.display=this.strJavaVendor=this.strJavaVersion=null;this.status=this.nextStatus=0;this.mouse=this.listeners=null;k(this,arguments)},swingjs,"JSAppletPanel",java.awt.Panel,[java.applet.AppletStub,java.applet.AppletContext,swingjs.api.JSInterface]);I(c$,function(){this.defaultAppletSize=new java.awt.Dimension(10,10);this.currentAppletSize=new java.awt.Dimension(10,10)});g(c$,function(a){r(this,swingjs.JSAppletPanel, +[]);this.setPanel();this.set(a)},"java.util.Hashtable");c(c$,"set",function(a){System.out.println("JSAppletPanel initializing");this.params=a;this.htmlName=swingjs.JSUtil.split(""+this.getParameter("name"),"_object")[0];this.appletName=swingjs.JSUtil.split(this.htmlName+"_","_")[0];this.syncId=this.getParameter("syncId");this.fullName=this.htmlName+"__"+this.syncId+"__";a.put("fullName",this.fullName);var b=a.get("codePath");null==b&&(b="../java/");this.appletCodeBase=b.toString();this.appletIdiomaBase= +this.appletCodeBase.substring(0,this.appletCodeBase.lastIndexOf("/",this.appletCodeBase.length-2)+1)+"idioma";b=a.get("documentBase");this.appletDocumentBase=null==b?"":b.toString();a.containsKey("maximumSize")&&Math.max(a.get("maximumSize").intValue(),100);this.async=this.testAsync||a.containsKey("async");var b=null,c="?";self.Jmol&&(b=Jmol._applets[this.htmlName.split("_object")[0]],c=Jmol._version);this.html5Applet=b;this.strJavaVersion=c;this.strJavaVendor="Java2Script/Java 1.6 (HTML5)";this.display= +a.get("display");this.threadGroup=new swingjs.JSThreadGroup(this.appletName);this.myThread=new swingjs.JSAppletThread(this,this.threadGroup,this.appletName);this.threadGroup.setHtmlApplet(this.html5Applet);Jmol._applets[this.appletName+"_thread"]=java.lang.Thread.thisThread=this.myThread;this.appContext=swingjs.JSToolkit.createNewAppContext();java.awt.Toolkit.getDefaultToolkit();try{java.net.URL.setURLStreamHandlerFactory(swingjs.api.Interface.getInstance("JU.AjaxURLStreamHandlerFactory",!1))}catch(d){}System.out.println("JSAppletPanel initialized")}, +"java.util.Hashtable");c(c$,"start",function(){0==this.status?this.myThread.start():this.showStatus("already started")});c(c$,"addAppletListener",function(a){this.listeners=jssun.applet.AppletEventMulticaster.add(this.listeners,a)},"jssun.applet.AppletListener");c(c$,"removeAppletListener",function(a){this.listeners=jssun.applet.AppletEventMulticaster.remove(this.listeners,a)},"jssun.applet.AppletListener");c(c$,"dispatchAppletEvent",function(a,b){if(null!=this.listeners){var c=new jssun.applet.AppletEvent(this, +a,b);this.listeners.appletStateChanged(c)}},"~N,~O");c(c$,"getCode",function(){return this.getParameter("code")});c(c$,"getCanvas",function(){return null==this.canvas?this.canvas=this.html5Applet._getHtml5Canvas():this.canvas});d(c$,"isActive",function(){return!0});d(c$,"appletResize",function(a,b){var c=new java.awt.Dimension(this.currentAppletSize.width,this.currentAppletSize.height);this.currentAppletSize.width=a;this.currentAppletSize.height=b;this.applet.setBounds(0,0,this.getWidth(),this.getHeight()); +this.applet.getRootPane().setBounds(0,0,this.getWidth(),this.getHeight());this.applet.getContentPane().setBounds(0,0,this.getWidth(),this.getHeight());this.applet.getContentPane().revalidate();this.dispatchAppletEvent(51234,c)},"~N,~N");d(c$,"getDocumentBase",function(){try{return new java.net.URL(this.params.get("documentBase"))}catch(a){if(z(a,java.net.MalformedURLException))return null;throw a;}});d(c$,"getCodeBase",function(){try{return new java.net.URL(this.params.get("codePath"))}catch(a){if(z(a, java.net.MalformedURLException))return null;throw a;}});d(c$,"getParameter",function(a){var b=this.params.get(a);System.out.println("get parameter: "+a+" = "+b);return null==b?null:""+b},"~S");d(c$,"getAppletContext",function(){return this});c(c$,"getHeight",function(){return this.html5Applet._getHeight()});c(c$,"getWidth",function(){return this.html5Applet._getWidth()});c(c$,"setBounds",function(a,b,c,d){this.reshape(a,b,c,d);this.currentAppletSize.width=c;this.currentAppletSize.height=d},"~N,~N,~N,~N"); d(c$,"getImage",function(){return null},"java.net.URL");d(c$,"getApplet",function(a){var b=null;(b=Jmol._applets[a])&&(b=b._applet);return b},"~S");d(c$,"getApplets",function(){return null});c(c$,"showDocument",function(a){window.open(a.toString())},"java.net.URL");c(c$,"showDocument",function(a,b){window.open(a.toString(),b)},"java.net.URL,~S");c(c$,"showStatus",function(a){swingjs.JSToolkit.log(a);J._LoaderProgressMonitor.showStatus(a,!0)},"~S");d(c$,"cacheFileByName",function(){return 0},"~S,~B"); d(c$,"cachePut",function(){},"~S,~O");d(c$,"destroy",function(){});d(c$,"getFullName",function(){return this.fullName});d(c$,"openFileAsyncSpecial",function(){},"~S,~N");c(c$,"processMouseEvent",function(a,b,c,d,f){this.getMouse().processEvent(a,b,c,d,f);return!1},"~N,~N,~N,~N,~N");c(c$,"getMouse",function(){return null==this.mouse?this.mouse=new swingjs.JSMouse(this):this.mouse});d(c$,"processTwoPointGesture",function(a){this.getMouse().processTwoPointGesture(a)},"~A");d(c$,"setDisplay",function(a){this.canvas= @@ -2080,7 +2080,7 @@ this.fillRect(a,b,c,d)},"~N,~N,~N,~N,~N,~N");d(c$,"drawOval",function(){swingjs. return null});d(c$,"getFontRenderContext",function(){swingjs.JSToolkit.notImplemented(null);return null});d(c$,"setPaintMode",function(){swingjs.JSToolkit.notImplemented(null)});d(c$,"setXORMode",function(){swingjs.JSToolkit.notImplemented(null)},"java.awt.Color");c(c$,"getClipBounds",function(){var a=null;1==arguments.length&&(a=arguments[0]);var b=this.getClipBoundsImpl();null==a?a=b:(a.x=b.x,a.y=b.y,a.width=b.width,a.height=b.height);return a});c(c$,"getClipBoundsImpl",function(){null==this.currentClip&& (this.currentClip=new java.awt.Rectangle(0,0,this.windowWidth,this.windowHeight));return this.currentClip});d(c$,"setComposite",function(a){var b=0;if((null==a||j(a,java.awt.AlphaComposite)&&(b=a.getRule())!=this.compositeState)&&swingjs.JSToolkit.setGraphicsCompositeAlpha(this,b))this.compositeState=b},"java.awt.Composite");c(c$,"drawImage",function(a,b,c,d){swingjs.JSToolkit.drawImageOp(this,a,b,c,d)},"java.awt.image.BufferedImage,java.awt.image.BufferedImageOp,~N,~N");c(c$,"setAlpha",function(a){this.ctx.globalAlpha= a},"~N");x(c$,"saveLevel",0)});p("swingjs");n(["swingjs.JSThread"],"swingjs.JSAppletThread",["javax.swing.SwingUtilities"],function(){c$=q(function(){this.ap=null;k(this,arguments)},swingjs,"JSAppletThread",swingjs.JSThread);g(c$,function(a,b,c){r(this,swingjs.JSAppletThread,[b,c]);this.ap=a},"swingjs.JSAppletPanel,ThreadGroup,~S");d(c$,"run1",function(a){a=this.ap.run1(a);2!=a&&this.dispatchAndReturn(null,a)},"~N");c(c$,"dispatchAndReturn",function(a,b){javax.swing.SwingUtilities.invokeLater((C("swingjs.JSAppletThread$1")? -0:swingjs.JSAppletThread.$JSAppletThread$1$(),D(swingjs.JSAppletThread$1,this,P("m",b))))},"Runnable,~N");c$.$JSAppletThread$1$=function(){w(self.c$);c$=G(swingjs,"JSAppletThread$1",null,Runnable);d(c$,"run",function(){this.b$["swingjs.JSAppletThread"].run1(this.f$.m)});c$=v()}});p("swingjs");n(null,"swingjs.JSMouse",["JU.V3","java.awt.Toolkit","java.awt.event.MouseEvent"],function(){c$=q(function(){this.ap=null;this.wheeling=this.isMouseDown=!1;this.modifiersWhenPressed10=this.yWhenPressed=this.xWhenPressed= +0:swingjs.JSAppletThread.$JSAppletThread$1$(),D(swingjs.JSAppletThread$1,this,P("m",b))))},"Runnable,~N");c$.$JSAppletThread$1$=function(){v(self.c$);c$=G(swingjs,"JSAppletThread$1",null,Runnable);d(c$,"run",function(){this.b$["swingjs.JSAppletThread"].run1(this.f$.m)});c$=w()}});p("swingjs");n(null,"swingjs.JSMouse",["JU.V3","java.awt.Toolkit","java.awt.event.MouseEvent"],function(){c$=q(function(){this.ap=null;this.wheeling=this.isMouseDown=!1;this.modifiersWhenPressed10=this.yWhenPressed=this.xWhenPressed= 0;k(this,arguments)},swingjs,"JSMouse");g(c$,function(a){this.ap=a},"swingjs.JSAppletPanel");c(c$,"processEvent",function(a,b,c,d,f){-1!=a&&(d=swingjs.JSMouse.applyLeftMouse(d));switch(a){case -1:this.wheeled(f,b,d);break;case 501:this.xWhenPressed=b;this.yWhenPressed=c;this.modifiersWhenPressed10=d;this.pressed(f,b,c,d,!1);break;case 506:this.dragged(f,b,c,d);break;case 504:this.entry(f,b,c,!1);break;case 505:this.entry(f,b,c,!0);break;case 503:this.moved(f,b,c,d);break;case 502:this.released(f, b,c,d);b==this.xWhenPressed&&(c==this.yWhenPressed&&d==this.modifiersWhenPressed10)&&this.clicked(f,b,c,d,1);break;default:return!1}return!0},"~N,~N,~N,~N,~N");c(c$,"processTwoPointGesture",function(a){if(!(2>a[0].length)){var b=a[0],c=a[1],d=b[0],f=b[c.length-1];a=d[0];var g=f[0],d=d[1],f=f[1],j=JU.V3.new3(g-a,f-d,0),k=j.length(),n=c[0],p=c[c.length-1],c=n[0],q=p[0],n=n[1],p=p[1],r=JU.V3.new3(q-c,p-n,0),t=r.length();1>k||1>t||(j.normalize(),r.normalize(),j=j.dot(r),0.8j&&(j=JU.V3.new3(c-a,n-d,0),r=JU.V3.new3(q-g,p-f,0),b=r.length()-j.length(),this.wheeled(System.currentTimeMillis(),0>b?-1:1,32)))}},"~A");c(c$,"translateXYBy",function(){},"~N,~N");c(c$,"mouseClicked",function(a){this.clicked(a.getWhen(),a.getX(),a.getY(),a.getModifiers(),a.getClickCount())},"java.awt.event.MouseEvent");c(c$,"mouseEntered",function(a){this.entry(a.getWhen(),a.getX(),a.getY(),!1)},"java.awt.event.MouseEvent");c(c$,"mouseExited", @@ -2115,8 +2115,8 @@ new javax.swing.plaf.DimensionUIResource(146,12),"ProgressBar.verticalSize",new 5),"Spinner.editorAlignment",new Integer(11),"SplitPane.background",q,"SplitPane.dividerSize",new Integer(7),"SplitPaneDivider.draggingColor",p,"TabbedPane.selected",null,"TabbedPane.textIconGap",J,"TabbedPane.tabsOverlapBorder",Boolean.FALSE,"TabbedPane.labelShift",new Integer(1),"TabbedPane.selectedLabelShift",new Integer(-1),"TabbedPane.tabInsets",F,"TabbedPane.selectedTabPadInsets",G,"TabbedPane.tabAreaInsets",H,"TabbedPane.contentBorderInsets",I,"TabbedPane.tabRunOverlay",new Integer(2),"Table.background", w,"Table.dropLineShortColor",j,"Table.gridColor",n,"Table.focusCellBackground",w,"Table.focusCellForeground",r,"TextField.font",d,"TextField.background",w,"TextField.foreground",v,"TextField.margin",x,"FormattedTextField.font",d,"FormattedTextField.background",w,"FormattedTextField.foreground",v,"FormattedTextField.caretForeground",v,"FormattedTextField.margin",x,"PasswordField.font",g,"PasswordField.background",w,"PasswordField.foreground",v,"PasswordField.margin",x,"PasswordField.echoChar",new Character("*"), "TextArea.font",g,"TextArea.background",w,"TextArea.foreground",v,"TextArea.margin",x,"TextPane.font",c,"TextPane.background",k,"TextPane.foreground",v,"TextPane.margin",z,"EditorPane.font",c,"EditorPane.background",k,"EditorPane.foreground",v,"EditorPane.margin",z,"TitledBorder.titleColor",r,"Tree.paintLines",Boolean.TRUE,"Tree.lineTypeDashed",Boolean.FALSE,"Tree.background",w,"Tree.foreground",v,"Tree.hash",n,"Tree.textForeground",v,"Tree.textBackground",a.get("text"),"Tree.leftChildIndent",new Integer(7), -"Tree.rightChildIndent",new Integer(13),"Tree.rowHeight",new Integer(16),"Tree.scrollsOnExpand",Boolean.TRUE,"Tree.timeFactor",b]);a.putDefaults(b)},"javax.swing.UIDefaults");d(c$,"getName",function(){return"SwingJS"});d(c$,"getID",function(){return"SwingJS"});d(c$,"getDescription",function(){return"SwingJS L&F"});d(c$,"isNativeLookAndFeel",function(){return!0});d(c$,"isSupportedLookAndFeel",function(){return!0});c$.$HTML5LookAndFeel$1$=function(){w(self.c$);c$=G(swingjs.plaf,"HTML5LookAndFeel$1", -null,javax.swing.UIDefaults.ActiveValue);d(c$,"createValue",function(){return new javax.swing.DefaultListCellRenderer.UIResource},"javax.swing.UIDefaults");c$=v()}});p("swingjs.plaf");n(["javax.swing.plaf.ComponentUI","swingjs.plaf.JSEventHandler"],"swingjs.plaf.JSComponentUI","java.lang.IllegalArgumentException $.NullPointerException java.awt.Color $.Component $.Dimension $.Point $.Toolkit java.awt.event.FocusEvent swingjs.JSToolkit swingjs.api.DOMNode".split(" "),function(){c$=q(function(){this.components= +"Tree.rightChildIndent",new Integer(13),"Tree.rowHeight",new Integer(16),"Tree.scrollsOnExpand",Boolean.TRUE,"Tree.timeFactor",b]);a.putDefaults(b)},"javax.swing.UIDefaults");d(c$,"getName",function(){return"SwingJS"});d(c$,"getID",function(){return"SwingJS"});d(c$,"getDescription",function(){return"SwingJS L&F"});d(c$,"isNativeLookAndFeel",function(){return!0});d(c$,"isSupportedLookAndFeel",function(){return!0});c$.$HTML5LookAndFeel$1$=function(){v(self.c$);c$=G(swingjs.plaf,"HTML5LookAndFeel$1", +null,javax.swing.UIDefaults.ActiveValue);d(c$,"createValue",function(){return new javax.swing.DefaultListCellRenderer.UIResource},"javax.swing.UIDefaults");c$=w()}});p("swingjs.plaf");n(["javax.swing.plaf.ComponentUI","swingjs.plaf.JSEventHandler"],"swingjs.plaf.JSComponentUI","java.lang.IllegalArgumentException $.NullPointerException java.awt.Color $.Component $.Dimension $.Point $.Toolkit java.awt.event.FocusEvent swingjs.JSToolkit swingjs.api.DOMNode".split(" "),function(){c$=q(function(){this.components= this.focusNode=this.scrollNode=this.valueNode=this.textNode=this.enableNode=this.domNode=this.outerNode=this.c=this.id=null;this.num=0;this.isTainted=!0;this.y=this.x=0;this.preferredSize=null;this.isContainer=!1;this.body=this.document=this.classID=this.scrollerNode=this.currentText=this.parent=null;this.needPreferred=!1;k(this,arguments)},swingjs.plaf,"JSComponentUI",javax.swing.plaf.ComponentUI,swingjs.plaf.JSEventHandler);g(c$,function(){r(this,swingjs.plaf.JSComponentUI,[]);this.setDoc()});c(c$, "setDoc",function(){this.document=document;this.body=document.body});d(c$,"installUI",function(){},"javax.swing.JComponent");d(c$,"uninstallUI",function(){this.uninstallJSUI()},"javax.swing.JComponent");c(c$,"$",function(a){return swingjs.JSToolkit.getJQuery().$(a)},"swingjs.api.DOMNode");c(c$,"setTainted",function(){this.isTainted=!0});c(c$,"set",function(a){this.c=a;this.newID();this.needPreferred&&this.getPreferredSize(this.c);this.installJSUI();return this},"javax.swing.JComponent");c(c$,"newID", function(){this.classID=this.c.getUIClassID();null==this.id&&(this.num=++swingjs.plaf.JSComponentUI.incr,this.id=this.c.getHTMLName(this.classID)+"_"+this.num)});c(c$,"setCssFont",function(a,b){if(null!=b){var c=b.getStyle(),d=b.getFamily();"Dialog"===d&&(d="Arial");swingjs.api.DOMNode.setStyles(a,["font-family",d,"font-size",b.getSize()+"px","font-style",0==(c&2)?"normal":"italic","font-weight",0==(c&1)?"normal":"bold"])}this.c.isBackgroundSet()&&this.setBackground(this.c.getBackground());this.setForeground(this.c.getForeground()); @@ -2152,8 +2152,8 @@ null)},"javax.swing.JComponent");c(c$,"getInputMap",function(){return null},"~N, 0,!0),"released")}else c=javax.swing.SwingUtilities.getUIInputMap(a,2),null!=c&&c.clear()},"javax.swing.AbstractButton");d(c$,"stateChanged",function(a){a.getSource().repaint()},"javax.swing.event.ChangeEvent");d(c$,"focusGained",function(){},"java.awt.event.FocusEvent");d(c$,"focusLost",function(a){a=a.getSource().getModel();a.setArmed(!1);a.setPressed(!1)},"java.awt.event.FocusEvent");d(c$,"mouseMoved",function(){},"java.awt.event.MouseEvent");d(c$,"mouseDragged",function(){},"java.awt.event.MouseEvent"); d(c$,"mouseClicked",function(){},"java.awt.event.MouseEvent");d(c$,"mousePressed",function(a){if(javax.swing.SwingUtilities.isLeftMouseButton(a)){var b=a.getSource();if(b.contains(a.getX(),a.getY())){b.getUI().verifyButtonClick(!1);var c=b.getMultiClickThreshhold(),d=this.lastPressedTimestamp;a=this.lastPressedTimestamp=a.getWhen();-1!=d&&a-d maxX) { -gg.drawString (string, (i - startx - 1) * avcharWidth, y); +awt2swing.Util.drawString (gg, string, (i - startx - 1) * avcharWidth, y); maxX = (i - startx + 1) * avcharWidth + fm.stringWidth (string); }gg.drawLine (((i - startx - 1) * avcharWidth) + (Clazz.doubleToInt (avcharWidth / 2)), y + 2, ((i - startx - 1) * avcharWidth) + (Clazz.doubleToInt (avcharWidth / 2)), y + (fm.getDescent () * 2)); } else { @@ -203,7 +203,7 @@ continue; }gg.fillPolygon ( Clazz.newIntArray (-1, [res * avcharWidth - Clazz.doubleToInt (avcharHeight / 4), res * avcharWidth + Clazz.doubleToInt (avcharHeight / 4), res * avcharWidth]), Clazz.newIntArray (-1, [y - Clazz.doubleToInt (avcharHeight / 2), y - Clazz.doubleToInt (avcharHeight / 2), y + 8]), 3); } }if (this.reveal != null && this.reveal[0] > startx && this.reveal[0] < endx) { -gg.drawString (jalview.util.MessageManager.getString ("label.reveal_columns"), this.reveal[0] * avcharWidth, 0); +awt2swing.Util.drawString (gg, jalview.util.MessageManager.getString ("label.reveal_columns"), this.reveal[0] * avcharWidth, 0); }}}, "java.awt.Graphics,~N,~N,~N,~N"); c$.$ScalePanel$1$ = function () { Clazz.pu$h(self.c$); diff --git a/site/j2s/jalview/appletgui/SeqCanvas.js b/site/j2s/jalview/appletgui/SeqCanvas.js index faa6bae..1d1a64d 100644 --- a/site/j2s/jalview/appletgui/SeqCanvas.js +++ b/site/j2s/jalview/appletgui/SeqCanvas.js @@ -1,5 +1,5 @@ Clazz.declarePackage ("jalview.appletgui"); -Clazz.load (["awt2swing.Panel"], "jalview.appletgui.SeqCanvas", ["jalview.appletgui.AnnotationPanel", "$.FeatureRenderer", "$.PaintRefresher", "$.SequenceRenderer", "jalview.util.Comparison", "java.awt.Color"], function () { +Clazz.load (["awt2swing.Panel"], "jalview.appletgui.SeqCanvas", ["awt2swing.Util", "jalview.appletgui.AnnotationPanel", "$.FeatureRenderer", "$.PaintRefresher", "$.SequenceRenderer", "jalview.util.Comparison", "java.awt.Color"], function () { c$ = Clazz.decorateAsClass (function () { this.fr = null; this.sr = null; @@ -54,7 +54,7 @@ for (var i = scalestartx; i < endx; i += 10) { var value = i; if (this.av.hasHiddenColumns ()) { value = this.av.getColumnSelection ().adjustForHiddenColumns (value); -}g.drawString (String.valueOf (value), (i - startx - 1) * this.avcharWidth, ypos - (Clazz.doubleToInt (this.avcharHeight / 2))); +}awt2swing.Util.drawString (g, String.valueOf (value), (i - startx - 1) * this.avcharWidth, ypos - (Clazz.doubleToInt (this.avcharHeight / 2))); g.drawLine (((i - startx - 1) * this.avcharWidth) + (Clazz.doubleToInt (this.avcharWidth / 2)), (ypos + 2) - (Clazz.doubleToInt (this.avcharHeight / 2)), ((i - startx - 1) * this.avcharWidth) + (Clazz.doubleToInt (this.avcharWidth / 2)), ypos - 2); } }, "java.awt.Graphics,~N,~N,~N"); @@ -81,7 +81,7 @@ break; } if (value != -1) { var x = this.LABEL_WEST - fm.stringWidth (String.valueOf (value)) - Clazz.doubleToInt (this.avcharWidth / 2); -g.drawString (value + "", x, (ypos + (i * this.avcharHeight)) - (Clazz.doubleToInt (this.avcharHeight / 5))); +awt2swing.Util.drawString (g, value + "", x, (ypos + (i * this.avcharHeight)) - (Clazz.doubleToInt (this.avcharHeight / 5))); }} }, "java.awt.Graphics,~N,~N,~N"); Clazz.defineMethod (c$, "drawEastScale", @@ -102,7 +102,7 @@ continue; break; } if (value != -1) { -g.drawString (String.valueOf (value), 0, (ypos + (i * this.avcharHeight)) - (Clazz.doubleToInt (this.avcharHeight / 5))); +awt2swing.Util.drawString (g, String.valueOf (value), 0, (ypos + (i * this.avcharHeight)) - (Clazz.doubleToInt (this.avcharHeight / 5))); }} }, "java.awt.Graphics,~N,~N,~N"); Clazz.defineMethod (c$, "fastPaint", diff --git a/site/j2s/jalview/appletgui/SequenceRenderer.js b/site/j2s/jalview/appletgui/SequenceRenderer.js index 103924e..908e633 100644 --- a/site/j2s/jalview/appletgui/SequenceRenderer.js +++ b/site/j2s/jalview/appletgui/SequenceRenderer.js @@ -1,5 +1,5 @@ Clazz.declarePackage ("jalview.appletgui"); -Clazz.load (["jalview.api.SequenceRenderer"], "jalview.appletgui.SequenceRenderer", ["jalview.util.Comparison", "java.awt.Color", "$.Font"], function () { +Clazz.load (["jalview.api.SequenceRenderer"], "jalview.appletgui.SequenceRenderer", ["awt2swing.Util", "jalview.util.Comparison", "java.awt.Color", "$.Font"], function () { c$ = Clazz.decorateAsClass (function () { this.av = null; this.fm = null; @@ -41,7 +41,7 @@ col = fr.findFeatureColour (col, seq, position); Clazz.defineMethod (c$, "getBoxColour", function (cs, seq, i) { if (cs != null) { -this.resBoxColour = cs.findColour (seq.getCharAt (i), i, seq); +this.resBoxColour = cs.findColourSeq (seq.getCharAt (i), i, seq); } else if (this.forOverview && !jalview.util.Comparison.isGap (seq.getCharAt (i))) { this.resBoxColour = java.awt.Color.lightGray; } else { @@ -141,7 +141,7 @@ this.graphics.setFont (boldFont); this.graphics.setFont (this.av.font); bold = false; }}charOffset = Clazz.doubleToInt ((avCharWidth - this.fm.charWidth (s)) / 2); -this.graphics.drawString (String.valueOf (s), charOffset + avCharWidth * (i - start), y1); +awt2swing.Util.drawString (this.graphics, String.valueOf (s), charOffset + avCharWidth * (i - start), y1); } }, "jalview.datamodel.SequenceI,~N,~N,~N"); Clazz.defineMethod (c$, "getDisplayChar", @@ -177,7 +177,7 @@ for (var i = start; i <= end; i++) { if (i < seq.getLength ()) { s = seq.getCharAt (i); }charOffset = Clazz.doubleToInt ((avCharWidth - this.fm.charWidth (s)) / 2); -this.graphics.drawString (String.valueOf (s), charOffset + x1 + avCharWidth * (i - start), y1 + avCharHeight - pady); +awt2swing.Util.drawString (this.graphics, String.valueOf (s), charOffset + x1 + avCharWidth * (i - start), y1 + avCharHeight - pady); } }}, "jalview.datamodel.SequenceI,~N,~N,~N,~N"); Clazz.defineMethod (c$, "drawCursor", @@ -191,6 +191,6 @@ this.graphics.setColor (java.awt.Color.white); var s = seq.getCharAt (res); if (this.av.validCharWidth) { charOffset = Clazz.doubleToInt ((this.av.getCharWidth () - this.fm.charWidth (s)) / 2); -this.graphics.drawString (String.valueOf (s), charOffset + x1, (y1 + this.av.getCharHeight ()) - pady); +awt2swing.Util.drawString (this.graphics, String.valueOf (s), charOffset + x1, (y1 + this.av.getCharHeight ()) - pady); }}, "jalview.datamodel.SequenceI,~N,~N,~N"); }); diff --git a/site/j2s/jalview/appletgui/TitledPanel.js b/site/j2s/jalview/appletgui/TitledPanel.js index 026a455..480b54d 100644 --- a/site/j2s/jalview/appletgui/TitledPanel.js +++ b/site/j2s/jalview/appletgui/TitledPanel.js @@ -1,5 +1,5 @@ Clazz.declarePackage ("jalview.appletgui"); -Clazz.load (["awt2swing.Panel", "java.awt.Insets"], "jalview.appletgui.TitledPanel", null, function () { +Clazz.load (["awt2swing.Panel", "java.awt.Insets"], "jalview.appletgui.TitledPanel", ["awt2swing.Util"], function () { c$ = Clazz.decorateAsClass (function () { this.title = null; this.$insets = null; @@ -30,7 +30,7 @@ var width = g.getFontMetrics ().stringWidth (this.getTitle ()); g.setColor (this.getBackground ()); g.fillRect (10, 0, width, 10); g.setColor (this.getForeground ()); -g.drawString (this.getTitle (), 10, 10); +awt2swing.Util.drawString (g, this.getTitle (), 10, 10); }, "java.awt.Graphics"); Clazz.defineMethod (c$, "getTitle", function () { diff --git a/site/j2s/jalview/appletgui/TreeCanvas.js b/site/j2s/jalview/appletgui/TreeCanvas.js index 69da9f2..43b95d7 100644 --- a/site/j2s/jalview/appletgui/TreeCanvas.js +++ b/site/j2s/jalview/appletgui/TreeCanvas.js @@ -1,5 +1,5 @@ Clazz.declarePackage ("jalview.appletgui"); -Clazz.load (["awt2swing.Panel", "java.awt.event.MouseListener", "$.MouseMotionListener", "java.util.Hashtable"], "jalview.appletgui.TreeCanvas", ["jalview.analysis.Conservation", "jalview.appletgui.PaintRefresher", "jalview.datamodel.SequenceGroup", "$.SequenceI", "$.SequenceNode", "jalview.schemes.ColourSchemeProperty", "$.ResidueProperties", "$.UserColourScheme", "jalview.util.Format", "$.MappingUtils", "java.awt.Color", "$.Dimension", "$.Point", "$.Rectangle", "java.util.Vector"], function () { +Clazz.load (["awt2swing.Panel", "java.awt.event.MouseListener", "$.MouseMotionListener", "java.util.Hashtable"], "jalview.appletgui.TreeCanvas", ["awt2swing.Util", "jalview.analysis.Conservation", "jalview.appletgui.PaintRefresher", "jalview.datamodel.SequenceGroup", "$.SequenceI", "$.SequenceNode", "jalview.schemes.ColourSchemeProperty", "$.ResidueProperties", "$.UserColourScheme", "jalview.util.Format", "$.MappingUtils", "java.awt.Color", "$.Dimension", "$.Point", "$.Rectangle", "java.util.Vector"], function () { c$ = Clazz.decorateAsClass (function () { this.tree = null; this.scrollPane = null; @@ -90,7 +90,7 @@ if (this.showDistances) { nodeLabel = nodeLabel + " : "; }nodeLabel = nodeLabel + String.valueOf (node.getBootstrap ()); }}if (!nodeLabel.equals ("")) { -g.drawString (nodeLabel, xstart + 2, ypos - 2); +awt2swing.Util.drawString (g, nodeLabel, xstart + 2, ypos - 2); }var name = (this.markPlaceholders && node.isPlaceholder ()) ? (" * " + node.getName ()) : node.getName (); var fm = g.getFontMetrics (this.$font); var charWidth = fm.stringWidth (name) + 3; @@ -102,7 +102,7 @@ if (selected != null && selected.getSequences (null).contains (node.element ())) g.setColor (java.awt.Color.gray); g.fillRect (xend + 10, ypos - charHeight + 3, charWidth, charHeight); g.setColor (java.awt.Color.white); -}g.drawString (name, xend + 10, ypos); +}awt2swing.Util.drawString (g, name, xend + 10, ypos); g.setColor (java.awt.Color.black); } else { this.drawNode (g, node.left (), chunk, scale, width, offx, offy); @@ -133,7 +133,7 @@ if (this.showDistances) { nodeLabel = nodeLabel + " : "; }nodeLabel = nodeLabel + String.valueOf (node.getBootstrap ()); }}if (!nodeLabel.equals ("")) { -g.drawString (nodeLabel, xstart + 2, ypos - 2); +awt2swing.Util.drawString (g, nodeLabel, xstart + 2, ypos - 2); }}}, "java.awt.Graphics,jalview.datamodel.SequenceNode,~N,~N,~N,~N,~N"); Clazz.defineMethod (c$, "findElement", function (x, y) { diff --git a/site/j2s/jalview/appletgui/UserDefinedColours.js b/site/j2s/jalview/appletgui/UserDefinedColours.js index c0ad316..01a51a6 100644 --- a/site/j2s/jalview/appletgui/UserDefinedColours.js +++ b/site/j2s/jalview/appletgui/UserDefinedColours.js @@ -274,7 +274,7 @@ var button = new awt2swing.Button (); var col = java.awt.Color.white; if (this.oldColourScheme != null) { try { -col = this.oldColourScheme.findColour (aa.charAt (0), -1, null); +col = this.oldColourScheme.findColourSeq (aa.charAt (0), -1, null); } catch (ex) { if (Clazz.exceptionOf (ex, Exception)) { } else { diff --git a/site/j2s/jalview/bin/JalviewLite.js b/site/j2s/jalview/bin/JalviewLite.js index 0b04f24..a905d67 100644 --- a/site/j2s/jalview/bin/JalviewLite.js +++ b/site/j2s/jalview/bin/JalviewLite.js @@ -1,5 +1,5 @@ Clazz.declarePackage ("jalview.bin"); -Clazz.load (["jalview.api.StructureSelectionManagerProvider", "jalview.javascript.JalviewLiteJsApi", "java.lang.Thread", "javax.swing.JApplet", "jalview.util.MessageManager", "java.util.Hashtable", "$.Vector", "javax.swing.JButton"], "jalview.bin.JalviewLite", ["jalview.analysis.SequenceIdMatcher", "jalview.appletgui.AlignFrame", "$.EmbmenuFrame", "$.FeatureSettings", "$.SplitFrame", "jalview.datamodel.Alignment", "$.AlignmentOrder", "$.ColumnSelection", "$.PDBEntry", "$.SequenceGroup", "jalview.io.AnnotationFile", "$.AppletFormatAdapter", "$.FileParse", "$.IdentifyFile", "$.JnetAnnotationMaker", "$.NewickFile", "jalview.javascript.JSFunctionExec", "$.JsSelectionSender", "$.MouseOverListener", "$.MouseOverStructureListener", "jalview.jsdev.GenericFileAdapter", "jalview.schemes.ColourSchemeProperty", "$.UserColourScheme", "jalview.structure.SelectionListener", "$.StructureSelectionManager", "java.awt.Color", "$.EventQueue", "$.Font", "java.awt.event.ActionListener", "$.WindowAdapter", "java.io.BufferedReader", "$.InputStreamReader", "java.lang.Error", "$.StringBuffer", "java.net.URL", "java.util.StringTokenizer", "netscape.javascript.JSObject"], function () { +Clazz.load (["jalview.api.StructureSelectionManagerProvider", "jalview.javascript.JalviewLiteJsApi", "java.lang.Thread", "javax.swing.JApplet", "jalview.util.MessageManager", "java.util.Hashtable", "$.Vector", "javax.swing.JButton"], "jalview.bin.JalviewLite", ["awt2swing.Util", "jalview.analysis.SequenceIdMatcher", "jalview.appletgui.AlignFrame", "$.EmbmenuFrame", "$.FeatureSettings", "$.SplitFrame", "jalview.datamodel.Alignment", "$.AlignmentOrder", "$.ColumnSelection", "$.PDBEntry", "$.SequenceGroup", "jalview.io.AnnotationFile", "$.AppletFormatAdapter", "$.FileParse", "$.IdentifyFile", "$.JnetAnnotationMaker", "$.NewickFile", "jalview.javascript.JSFunctionExec", "$.JsSelectionSender", "$.MouseOverListener", "$.MouseOverStructureListener", "jalview.jsdev.GenericFileAdapter", "jalview.schemes.ColourSchemeProperty", "$.UserColourScheme", "jalview.structure.SelectionListener", "$.StructureSelectionManager", "java.awt.Color", "$.EventQueue", "$.Font", "java.awt.event.ActionListener", "$.WindowAdapter", "java.io.BufferedReader", "$.InputStreamReader", "java.lang.Error", "$.StringBuffer", "java.net.URL", "java.util.StringTokenizer", "netscape.javascript.JSObject"], function () { c$ = Clazz.decorateAsClass (function () { this.embedded = false; this.enableSplitFrame = false; @@ -818,13 +818,13 @@ g.setColor ( new java.awt.Color (200, 200, 200)); g.setColor (java.awt.Color.cyan); g.fillRect (0, 0, this.getSize ().width, this.getSize ().height); g.setColor (java.awt.Color.red); -g.drawString (jalview.util.MessageManager.getString ("label.jalview_cannot_open_file"), 5, 15); -g.drawString ("\"" + this.startupFile + "\"", 5, 30); +awt2swing.Util.drawString (g, jalview.util.MessageManager.getString ("label.jalview_cannot_open_file"), 5, 15); +awt2swing.Util.drawString (g, "\"" + this.startupFile + "\"", 5, 30); } else if (this.embedded && !this.haveShownLoadMessage) { g.setColor (java.awt.Color.black); g.setFont ( new java.awt.Font ("Arial", 1, 24)); -g.drawString (jalview.util.MessageManager.getString ("label.jalview_applet"), 50, Clazz.doubleToInt (this.getSize ().height / 2) - 30); -g.drawString (jalview.util.MessageManager.getString ("label.loading_data") + "...", 50, Clazz.doubleToInt (this.getSize ().height / 2)); +awt2swing.Util.drawString (g, jalview.util.MessageManager.getString ("label.jalview_applet"), 50, Clazz.doubleToInt (this.getSize ().height / 2) - 30); +awt2swing.Util.drawString (g, jalview.util.MessageManager.getString ("label.loading_data") + "...", 50, Clazz.doubleToInt (this.getSize ().height / 2)); this.haveShownLoadMessage = true; }}, "java.awt.Graphics"); Clazz.defineMethod (c$, "getAppletWindow", diff --git a/site/j2s/jalview/jsdev/GenericFileAdapter.js b/site/j2s/jalview/jsdev/GenericFileAdapter.js index 6df0a9f..3c4f852 100644 --- a/site/j2s/jalview/jsdev/GenericFileAdapter.js +++ b/site/j2s/jalview/jsdev/GenericFileAdapter.js @@ -82,4 +82,15 @@ if (!forceURL && !jalview.jsdev.GenericFileAdapter.isJS ()) return new java.io. if (fileName.indexOf ("//") < 0) fileName = "file://" + fileName; return new java.io.BufferedReader ( new java.io.InputStreamReader ( new java.net.URL (fileName).openStream ())); }, "~S,~B"); +Clazz.defineStatics (c$, +"TCOFFEE_SCORE", "TCoffeeScore", +"Phylip_FILE", 1, +"Phylip_FILE_EXT", "phy", +"Phylip_FILE_DESC", "PHYLIP", +"JSON_FILE", 2, +"JSON_FILE_EXT", "json", +"JSON_FILE_DESC", "JSON", +"Html_FILE", 3, +"Html_FILE_EXT", "html", +"Html_FILE_DESC", "HTML"); }); diff --git a/site/j2s/jalview/renderer/AnnotationRenderer.js b/site/j2s/jalview/renderer/AnnotationRenderer.js index 221e5d3..4fa68cb 100644 --- a/site/j2s/jalview/renderer/AnnotationRenderer.js +++ b/site/j2s/jalview/renderer/AnnotationRenderer.js @@ -1,5 +1,5 @@ Clazz.declarePackage ("jalview.renderer"); -Clazz.load (["jalview.util.Platform", "java.awt.Color"], "jalview.renderer.AnnotationRenderer", ["jalview.analysis.AAFrequency", "$.CodingUtils", "$.StructureFrequency", "jalview.jsdev.RegExp", "jalview.schemes.NucleotideColourScheme", "$.ResidueProperties", "$.ZappoColourScheme", "java.awt.BasicStroke", "java.awt.geom.AffineTransform", "java.util.BitSet"], function () { +Clazz.load (["jalview.util.Platform", "java.awt.Color"], "jalview.renderer.AnnotationRenderer", ["awt2swing.Util", "jalview.analysis.AAFrequency", "$.CodingUtils", "$.StructureFrequency", "jalview.jsdev.RegExp", "jalview.schemes.NucleotideColourScheme", "$.ResidueProperties", "$.ZappoColourScheme", "java.awt.BasicStroke", "java.awt.geom.AffineTransform", "java.util.BitSet"], function () { c$ = Clazz.decorateAsClass (function () { this.debugRedraw = false; this.charWidth = 0; @@ -270,9 +270,9 @@ g.setColor (java.awt.Color.black); } else { g.setColor (row_annotations[column].colour); }if (column == 0 || row.graph > 0) { -g.drawString (displayChar, (x * this.charWidth) + charOffset, y + iconOffset); +awt2swing.Util.drawString (g, displayChar, (x * this.charWidth) + charOffset, y + iconOffset); } else if (row_annotations[column - 1] == null || (labelAllCols || !displayChar.equals (row_annotations[column - 1].displayCharacter) || (displayChar.length < 2 && row_annotations[column].secondaryStructure == ' '))) { -g.drawString (displayChar, x * this.charWidth + charOffset, y + iconOffset); +awt2swing.Util.drawString (g, displayChar, x * this.charWidth + charOffset, y + iconOffset); }g.setFont (ofont); }}if (row.hasIcons) { var ss = validRes ? row_annotations[column].secondaryStructure : '-'; @@ -663,9 +663,9 @@ lm = g.getFontMetrics ().getLineMetrics (dc, 0, 1, g); var colour = null; if (isCdnaProfile) { var codonTranslation = jalview.schemes.ResidueProperties.codonTranslate ( String.instantialize (dc)); -colour = this.profcolour.findColour (codonTranslation.charAt (0), column, null); +colour = this.profcolour.findColourSeq (codonTranslation.charAt (0), column, null); } else { -colour = this.profcolour.findColour (dc[0], column, null); +colour = this.profcolour.findColourSeq (dc[0], column, null); }g.setColor (colour === java.awt.Color.white ? java.awt.Color.lightGray : colour); hght = (ht + (scl - lm.getDescent () - lm.getBaselineOffsets ()[lm.getBaselineIndex ()])); g.drawChars (dc, 0, dc.length, x * this.charWidth, Clazz.doubleToInt (hght)); diff --git a/site/j2s/jalview/renderer/seqfeatures/FeatureRenderer.js b/site/j2s/jalview/renderer/seqfeatures/FeatureRenderer.js index 7dc84b1..e4a1026 100644 --- a/site/j2s/jalview/renderer/seqfeatures/FeatureRenderer.js +++ b/site/j2s/jalview/renderer/seqfeatures/FeatureRenderer.js @@ -1,5 +1,5 @@ Clazz.declarePackage ("jalview.renderer.seqfeatures"); -Clazz.load (["jalview.viewmodel.seqfeatures.FeatureRendererModel"], "jalview.renderer.seqfeatures.FeatureRenderer", ["jalview.util.Comparison", "java.awt.AlphaComposite", "$.Color", "java.awt.image.BufferedImage", "java.lang.Float"], function () { +Clazz.load (["jalview.viewmodel.seqfeatures.FeatureRendererModel"], "jalview.renderer.seqfeatures.FeatureRenderer", ["awt2swing.Util", "jalview.util.Comparison", "java.awt.AlphaComposite", "$.Color", "java.awt.image.BufferedImage", "java.lang.Float"], function () { c$ = Clazz.decorateAsClass (function () { this.fm = null; this.charOffset = 0; @@ -46,7 +46,7 @@ if (this.offscreenRender || !this.av_validCharWidth) { continue; }g.setColor (java.awt.Color.white); this.charOffset = Clazz.doubleToInt ((this.av_charWidth - this.fm.charWidth (this.s)) / 2); -g.drawString (String.valueOf (this.s), this.charOffset + (this.av_charWidth * (this.i - start)), pady); +awt2swing.Util.drawString (g, String.valueOf (this.s), this.charOffset + (this.av_charWidth * (this.i - start)), pady); } }}, "java.awt.Graphics,jalview.datamodel.SequenceI,~N,~N,java.awt.Color,~N,~N,~N"); Clazz.defineMethod (c$, "renderScoreFeature", @@ -82,7 +82,7 @@ if (this.offscreenRender || !this.av_validCharWidth) { continue; }g.setColor (java.awt.Color.black); this.charOffset = Clazz.doubleToInt ((this.av_charWidth - this.fm.charWidth (this.s)) / 2); -g.drawString (String.valueOf (this.s), this.charOffset + (this.av_charWidth * (this.i - start)), pady); +awt2swing.Util.drawString (g, String.valueOf (this.s), this.charOffset + (this.av_charWidth * (this.i - start)), pady); } }}, "java.awt.Graphics,jalview.datamodel.SequenceI,~N,~N,java.awt.Color,~N,~N,~N,~A"); Clazz.defineMethod (c$, "findFeatureColour", diff --git a/site/j2s/jalview/schemes/AnnotationColourGradient.js b/site/j2s/jalview/schemes/AnnotationColourGradient.js index a1b8db6..adc6c46 100644 --- a/site/j2s/jalview/schemes/AnnotationColourGradient.js +++ b/site/j2s/jalview/schemes/AnnotationColourGradient.js @@ -121,11 +121,11 @@ Clazz.defineMethod (c$, "getMaxColour", function () { return new java.awt.Color (Clazz.floatToInt (this.r1 + this.rr), Clazz.floatToInt (this.g1 + this.gg), Clazz.floatToInt (this.b1 + this.bb)); }); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColour", function (c) { return java.awt.Color.red; }, "~S"); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (c, j, seq) { var currentColour = java.awt.Color.white; var annotation = (this.seqAssociated && this.seqannot != null ? this.seqannot.get (seq) : this.annotation); @@ -140,7 +140,7 @@ currentColour = aj.colour; } else if (annotation.hasIcons && annotation.graph == 0) { if (aj.secondaryStructure > ' ' && aj.secondaryStructure != '.' && aj.secondaryStructure != '-') { if (this.colourScheme != null) { -currentColour = this.colourScheme.findColour (c, j, seq); +currentColour = this.colourScheme.findColourSeq (c, j, seq); } else { if (annotation.isRNA ()) { currentColour = jalview.schemes.ColourSchemeProperty.rnaHelices[Clazz.floatToInt (aj.value)]; @@ -150,7 +150,7 @@ currentColour = annotation.annotations[j].secondaryStructure == 'H' ? jalview.re return java.awt.Color.white; }} else if (this.noGradient) { if (this.colourScheme != null) { -currentColour = this.colourScheme.findColour (c, j, seq); +currentColour = this.colourScheme.findColourSeq (c, j, seq); } else { if (aj.colour != null) { currentColour = aj.colour; diff --git a/site/j2s/jalview/schemes/Blosum62ColourScheme.js b/site/j2s/jalview/schemes/Blosum62ColourScheme.js index 87c4a51..465bc97 100644 --- a/site/j2s/jalview/schemes/Blosum62ColourScheme.js +++ b/site/j2s/jalview/schemes/Blosum62ColourScheme.js @@ -1,7 +1,7 @@ Clazz.declarePackage ("jalview.schemes"); Clazz.load (["jalview.schemes.ResidueColourScheme"], "jalview.schemes.Blosum62ColourScheme", ["jalview.schemes.ResidueProperties", "jalview.util.Comparison", "java.awt.Color"], function () { c$ = Clazz.declareType (jalview.schemes, "Blosum62ColourScheme", jalview.schemes.ResidueColourScheme); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (res, j, seq) { if ('a' <= res && res <= 'z') { res = String.fromCharCode (res.charCodeAt (0) - (32)); diff --git a/site/j2s/jalview/schemes/ClustalxColourScheme.js b/site/j2s/jalview/schemes/ClustalxColourScheme.js index 0556777..36419d0 100644 --- a/site/j2s/jalview/schemes/ClustalxColourScheme.js +++ b/site/j2s/jalview/schemes/ClustalxColourScheme.js @@ -171,11 +171,11 @@ this.residueColour[17] = this.colours[0]; this.residueColour[18] = this.colours[10]; this.residueColour[19] = this.colours[0]; }); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColour", function (c) { return java.awt.Color.pink; }, "~S"); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (c, j, seq) { var currentColour; if (this.cons2.length <= j || (this.includeGaps && this.threshold != 0 && !this.aboveThreshold (c, j))) { diff --git a/site/j2s/jalview/schemes/NucleotideColourScheme.js b/site/j2s/jalview/schemes/NucleotideColourScheme.js index abdfb5e..6594167 100644 --- a/site/j2s/jalview/schemes/NucleotideColourScheme.js +++ b/site/j2s/jalview/schemes/NucleotideColourScheme.js @@ -5,11 +5,11 @@ Clazz.makeConstructor (c$, function () { Clazz.superConstructor (this, jalview.schemes.NucleotideColourScheme, [jalview.schemes.ResidueProperties.nucleotideIndex, jalview.schemes.ResidueProperties.nucleotide, 0]); }); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColour", function (c) { return this.colors[jalview.schemes.ResidueProperties.nucleotideIndex[c.charCodeAt (0)]]; }, "~S"); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (c, j, seq) { var currentColour; if ((this.threshold == 0) || this.aboveThreshold (c, j)) { diff --git a/site/j2s/jalview/schemes/PIDColourScheme.js b/site/j2s/jalview/schemes/PIDColourScheme.js index bdf6f24..77099d7 100644 --- a/site/j2s/jalview/schemes/PIDColourScheme.js +++ b/site/j2s/jalview/schemes/PIDColourScheme.js @@ -12,7 +12,7 @@ Clazz.superConstructor (this, jalview.schemes.PIDColourScheme, []); this.pidColours = jalview.schemes.ResidueProperties.pidColours; this.thresholds = jalview.schemes.ResidueProperties.pidThresholds; }); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (c, j, seq) { if ('a' <= c && c <= 'z') { c = String.fromCharCode (c.charCodeAt (0) - (32)); diff --git a/site/j2s/jalview/schemes/RNAHelicesColour.js b/site/j2s/jalview/schemes/RNAHelicesColour.js index c7d3af2..abfa7ae 100644 --- a/site/j2s/jalview/schemes/RNAHelicesColour.js +++ b/site/j2s/jalview/schemes/RNAHelicesColour.js @@ -51,11 +51,11 @@ if (!this.helixcolorhash.containsKey (Integer.toString (j))) { this.helixcolorhash.put (Integer.toString (j), jalview.util.ColorUtils.generateRandomColor (java.awt.Color.white)); }} }}); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColour", function (c) { return jalview.schemes.ResidueProperties.purinepyrimidine[jalview.schemes.ResidueProperties.purinepyrimidineIndex[c.charCodeAt (0)]]; }, "~S"); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (c, j, seq) { this.refresh (); var currentColour = java.awt.Color.white; diff --git a/site/j2s/jalview/schemes/RNAInteractionColourScheme.js b/site/j2s/jalview/schemes/RNAInteractionColourScheme.js index 6935253..5c8425b 100644 --- a/site/j2s/jalview/schemes/RNAInteractionColourScheme.js +++ b/site/j2s/jalview/schemes/RNAInteractionColourScheme.js @@ -1,11 +1,11 @@ Clazz.declarePackage ("jalview.schemes"); Clazz.load (["jalview.schemes.ResidueColourScheme"], "jalview.schemes.RNAInteractionColourScheme", ["jalview.schemes.ResidueProperties", "java.awt.Color"], function () { c$ = Clazz.declareType (jalview.schemes, "RNAInteractionColourScheme", jalview.schemes.ResidueColourScheme); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColour", function (c) { return this.colors[jalview.schemes.ResidueProperties.nucleotideIndex[c.charCodeAt (0)]]; }, "~S"); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (c, j, seq) { var currentColour; if ((this.threshold == 0) || this.aboveThreshold (c, j)) { diff --git a/site/j2s/jalview/schemes/ResidueColourScheme.js b/site/j2s/jalview/schemes/ResidueColourScheme.js index 9b2382f..23a1c72 100644 --- a/site/j2s/jalview/schemes/ResidueColourScheme.js +++ b/site/j2s/jalview/schemes/ResidueColourScheme.js @@ -26,11 +26,11 @@ Clazz.makeConstructor (c$, function () { this.symbolIndex = null; }); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColour", function (c) { return this.colors == null ? java.awt.Color.white : this.colors[this.symbolIndex[c.charCodeAt (0)]]; }, "~S"); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (c, j, seq) { var currentColour; if (this.colors != null && this.symbolIndex != null && (this.threshold == 0) || this.aboveThreshold (c, j)) { diff --git a/site/j2s/jalview/schemes/ScoreColourScheme.js b/site/j2s/jalview/schemes/ScoreColourScheme.js index f097a40..2ba5128 100644 --- a/site/j2s/jalview/schemes/ScoreColourScheme.js +++ b/site/j2s/jalview/schemes/ScoreColourScheme.js @@ -24,7 +24,7 @@ red = 0.0; }this.colors[i] = this.makeColour (red); } }, "~A,~A,~N,~N"); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (c, j, seq) { if (this.threshold > 0) { if (!this.aboveThreshold (c, j)) { diff --git a/site/j2s/jalview/schemes/TCoffeeColourScheme.js b/site/j2s/jalview/schemes/TCoffeeColourScheme.js index 6350ad9..185348c 100644 --- a/site/j2s/jalview/schemes/TCoffeeColourScheme.js +++ b/site/j2s/jalview/schemes/TCoffeeColourScheme.js @@ -28,7 +28,7 @@ scores[i++] = (an != null) ? an.colour : java.awt.Color.white; this.seqMap.put (al.sequenceRef, scores); }} }, "jalview.datamodel.AnnotatedCollectionI,java.util.Map"); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (c, j, seq) { var cols; if (this.seqMap == null || (cols = this.seqMap.get (seq)) == null) { diff --git a/site/j2s/jalview/schemes/UserColourScheme.js b/site/j2s/jalview/schemes/UserColourScheme.js index ee83987..9167b50 100644 --- a/site/j2s/jalview/schemes/UserColourScheme.js +++ b/site/j2s/jalview/schemes/UserColourScheme.js @@ -143,7 +143,7 @@ throw ex; } } }, "~S"); -Clazz.defineMethod (c$, "findColour", +Clazz.overrideMethod (c$, "findColourSeq", function (c, j, seq) { var currentColour; var index = jalview.schemes.ResidueProperties.aaIndex[c.charCodeAt (0)]; diff --git a/site/j2s/java/awt/Color.js b/site/j2s/java/awt/Color.js index c726fe1..431d7e7 100644 --- a/site/j2s/java/awt/Color.js +++ b/site/j2s/java/awt/Color.js @@ -40,9 +40,17 @@ case 2: this.value = (a[1] ? a[0] : 0xff000000 | a[0]); break; case 3: +var n = a[0] + a[1] + a[2]; +if (n > 0 && n < 3.001) +this.setFloat(a[0], a[1], a[2], 1); +else this.setColor4(a[0], a[1], a[2], 255); break; case 4: +var n = a[0] + a[1] + a[2] + a[3]; +if (n > 0 && n < 4.001) +this.setFloat(a[0], a[1], a[2], a[3]); +else this.setColor4(a[0], a[1], a[2], a[3]); break; } diff --git a/site/j2s/java/util/ArrayList.js b/site/j2s/java/util/ArrayList.js index 71e92a9..78c4c54 100644 --- a/site/j2s/java/util/ArrayList.js +++ b/site/j2s/java/util/ArrayList.js @@ -310,7 +310,7 @@ return i-this.firstIndex; },"~O"); Clazz.overrideMethod(c$,"remove", function(location){ -if (0+location != location) return this.removeObject(location) +if (0 + location != location)return this.removeObject(location) var result; var size=this.size(); if(0<=location&&location -Jmol._checkLoad = false; - -Jmol._isAsync = false; +Jmol._checkLoad = false; // gets a list of classes loaded when true +Jmol._debugCode = false; // this should not be necessary +Jmol._isAsync = false; // do not set this true. Jmol.getProfile() // records repeat calls to overridden or overloaded Java methods @@ -37,7 +37,7 @@ Info = { defaultColour: "Zappo", width: 1050, height: 550, - debug: true, + debug: false, color: "#F0F0F0", zIndexBase: 20000, z:{monitorZIndex:100}, diff --git a/src/fr/orsay/lri/varna/models/rna/RNA.java b/src/fr/orsay/lri/varna/models/rna/RNA.java index d72bb20..2f6e5d7 100644 --- a/src/fr/orsay/lri/varna/models/rna/RNA.java +++ b/src/fr/orsay/lri/varna/models/rna/RNA.java @@ -1,22 +1,21 @@ package fr.orsay.lri.varna.models.rna; /** - * jsapplet?yes! test 2 Bob changes + * no significant reference in applet? * -lots of changes * @author Bob Hanson * */ public class RNA { public int getSize() { - // all // TODO Auto-generated method stub + // TODO Auto-generated method stub return 0; } public String getStructDBN(boolean b) { - //over // TODO Auto-generated method stub + // TODO Auto-generated method stub return null; } -// the place + } diff --git a/src/jalview/analysis/Conservation.java b/src/jalview/analysis/Conservation.java index 94da265..1ac9d86 100644 --- a/src/jalview/analysis/Conservation.java +++ b/src/jalview/analysis/Conservation.java @@ -719,7 +719,7 @@ public class Conservation + (maxB * vprop))); } } - DebugJS._("Conservation"); +// DebugJS._("Conservation"); } diff --git a/src/jalview/appletgui/AlignFrame.java b/src/jalview/appletgui/AlignFrame.java index 3699fca..c639445 100644 --- a/src/jalview/appletgui/AlignFrame.java +++ b/src/jalview/appletgui/AlignFrame.java @@ -2938,32 +2938,32 @@ public class AlignFrame extends EmbmenuFrame implements ActionListener, // TODO: update this text for each release or centrally store it for // lite and application g.setFont(new Font("Helvetica", Font.BOLD, 14)); - g.drawString(MessageManager.formatMessage( + awt2swing.Util.drawString(g, MessageManager.formatMessage( "label.jalviewLite_release", new String[] { version }), x, y += fh); g.setFont(new Font("Helvetica", Font.BOLD, 12)); - g.drawString(MessageManager.formatMessage( + awt2swing.Util.drawString(g, MessageManager.formatMessage( "label.jaview_build_date", new String[] { builddate }), x, y += fh); g.setFont(new Font("Helvetica", Font.PLAIN, 12)); - g.drawString(MessageManager.getString("label.jalview_authors_1"), + awt2swing.Util.drawString(g, MessageManager.getString("label.jalview_authors_1"), x, y += fh * 1.5); - g.drawString(MessageManager.getString("label.jalview_authors_2"), + awt2swing.Util.drawString(g, MessageManager.getString("label.jalview_authors_2"), x + 50, y += fh + 8); - g.drawString( + awt2swing.Util.drawString(g, MessageManager.getString("label.jalview_dev_managers"), x, y += fh); - g.drawString(MessageManager + awt2swing.Util.drawString(g, MessageManager .getString("label.jalview_distribution_lists"), x, y += fh); - g.drawString(MessageManager.getString("label.jalview_please_cite"), + awt2swing.Util.drawString(g, MessageManager.getString("label.jalview_please_cite"), x, y += fh + 8); - g.drawString( + awt2swing.Util.drawString(g, MessageManager.getString("label.jalview_cite_1_authors"), x, y += fh); - g.drawString( + awt2swing.Util.drawString(g, MessageManager.getString("label.jalview_cite_1_title"), x, y += fh); - g.drawString(MessageManager.getString("label.jalview_cite_1_ref"), + awt2swing.Util.drawString(g, MessageManager.getString("label.jalview_cite_1_ref"), x, y += fh); } } diff --git a/src/jalview/appletgui/AnnotationLabels.java b/src/jalview/appletgui/AnnotationLabels.java index cf24f85..083578b 100644 --- a/src/jalview/appletgui/AnnotationLabels.java +++ b/src/jalview/appletgui/AnnotationLabels.java @@ -831,7 +831,7 @@ public class AnnotationLabels extends Panel implements ActionListener, y += aa[i].height; offset = -(aa[i].height - fy) / 2; - g.drawString(aa[i].label, x, y + offset); + awt2swing.Util.drawString(g, aa[i].label, x, y + offset); } } g.translate(0, +scrollOffset); @@ -845,15 +845,15 @@ public class AnnotationLabels extends Panel implements ActionListener, else if (!dragCancelled && dragEvent != null && aa != null) { g.setColor(Color.lightGray); - g.drawString(aa[selectedRow].label, dragEvent.getX(), + awt2swing.Util.drawString(g, aa[selectedRow].label, dragEvent.getX(), dragEvent.getY()); } if (!av.getWrapAlignment() && ((aa == null) || (aa.length < 1))) { g.setColor(Color.black); - g.drawString(MessageManager.getString("label.right_click"), 2, 8); - g.drawString(MessageManager.getString("label.to_add_annotation"), 2, + awt2swing.Util.drawString(g, MessageManager.getString("label.right_click"), 2, 8); + awt2swing.Util.drawString(g, MessageManager.getString("label.to_add_annotation"), 2, 18); } } diff --git a/src/jalview/appletgui/AnnotationPanel.java b/src/jalview/appletgui/AnnotationPanel.java index 3b3252c..72dbfff 100644 --- a/src/jalview/appletgui/AnnotationPanel.java +++ b/src/jalview/appletgui/AnnotationPanel.java @@ -637,7 +637,7 @@ public class AnnotationPanel extends Panel implements AwtRenderPanelI, g.setColor(Color.black); if (av.validCharWidth) { - g.drawString(MessageManager + awt2swing.Util.drawString(g, MessageManager .getString("label.alignment_has_no_annotations"), 20, 15); } diff --git a/src/jalview/appletgui/AppletJmol.java b/src/jalview/appletgui/AppletJmol.java index aa18f5f..cc4090f 100644 --- a/src/jalview/appletgui/AppletJmol.java +++ b/src/jalview/appletgui/AppletJmol.java @@ -670,7 +670,7 @@ public class AppletJmol //extends EmbmenuFrame implements // g.fillRect(0, 0, currentSize.width, currentSize.height); // g.setColor(Color.white); // g.setFont(new Font("Verdana", Font.BOLD, 14)); -// g.drawString(MessageManager.getString("label.retrieving_pdb_data"), +// awt2swing.Util.drawString(g, MessageManager.getString("label.retrieving_pdb_data"), // 20, currentSize.height / 2); // } // else diff --git a/src/jalview/appletgui/FeatureRenderer.java b/src/jalview/appletgui/FeatureRenderer.java index 2d996c7..f46810d 100644 --- a/src/jalview/appletgui/FeatureRenderer.java +++ b/src/jalview/appletgui/FeatureRenderer.java @@ -168,7 +168,7 @@ public class FeatureRenderer extends g.setColor(Color.black); Font f = new Font("Verdana", Font.PLAIN, 10); g.setFont(f); - g.drawString(MessageManager.getString("label.label"), 0, 0); + awt2swing.Util.drawString(g, MessageManager.getString("label.label"), 0, 0); } else { diff --git a/src/jalview/appletgui/FeatureSettings.java b/src/jalview/appletgui/FeatureSettings.java index d8a6140..9bb1426 100644 --- a/src/jalview/appletgui/FeatureSettings.java +++ b/src/jalview/appletgui/FeatureSettings.java @@ -187,12 +187,12 @@ public class FeatureSettings extends Panel implements ItemListener, public void PaintComponent(Graphics g) { g.setColor(Color.black); - g.drawString(MessageManager + awt2swing.Util.drawString(g, MessageManager .getString("label.no_features_added_to_this_alignment"), 10, 20); - g.drawString(MessageManager + awt2swing.Util.drawString(g, MessageManager .getString("label.features_can_be_added_from_searches_1"), 10, 40); - g.drawString(MessageManager + awt2swing.Util.drawString(g, MessageManager .getString("label.features_can_be_added_from_searches_2"), 10, 60); } @@ -772,7 +772,7 @@ public class FeatureSettings extends Panel implements ItemListener, * // g.setFont(g.getFont().deriveFont( // * AffineTransform.getScaleInstance( // * width/g.getFontMetrics().stringWidth("Label"), // - * height/g.getFontMetrics().getHeight()))); g.drawString("Label", + * height/g.getFontMetrics().getHeight()))); awt2swing.Util.drawString(g, "Label", * width/2, 0); */ diff --git a/src/jalview/appletgui/IdCanvas.java b/src/jalview/appletgui/IdCanvas.java index a045541..0e142ae 100644 --- a/src/jalview/appletgui/IdCanvas.java +++ b/src/jalview/appletgui/IdCanvas.java @@ -85,7 +85,7 @@ public class IdCanvas extends Panel gg.setColor(Color.black); } - gg.drawString(s.getDisplayId(av.getShowJVSuffix()), 0, + awt2swing.Util.drawString(gg, s.getDisplayId(av.getShowJVSuffix()), 0, ((i - starty) * charHeight) + ypos + charHeight - (charHeight / 5)); @@ -297,7 +297,7 @@ public class IdCanvas extends Panel avcharHeight); gg.setColor(currentTextColor); - gg.drawString(seq.getDisplayId(av.getShowJVSuffix()), 0, + awt2swing.Util.drawString(gg, seq.getDisplayId(av.getShowJVSuffix()), 0, (((i - starty) * avcharHeight) + avcharHeight) - (avcharHeight / 5)); diff --git a/src/jalview/appletgui/RotatableCanvas.java b/src/jalview/appletgui/RotatableCanvas.java index 2602e89..ad580d1 100644 --- a/src/jalview/appletgui/RotatableCanvas.java +++ b/src/jalview/appletgui/RotatableCanvas.java @@ -331,7 +331,7 @@ public class RotatableCanvas extends Panel implements MouseListener, if (points == null) { g.setFont(new Font("Verdana", Font.PLAIN, 18)); - g.drawString(MessageManager.getString("label.calculating_pca") + awt2swing.Util.drawString(g, MessageManager.getString("label.calculating_pca") + "....", 20, getSize().height / 2); } else @@ -362,7 +362,7 @@ public class RotatableCanvas extends Panel implements MouseListener, if (tooltip != null) { ig.setColor(Color.red); - ig.drawString(tooltip, toolx, tooly); + awt2swing.Util.drawString(ig, tooltip, toolx, tooly); } g.drawImage(img, 0, 0, this); @@ -428,7 +428,7 @@ public class RotatableCanvas extends Panel implements MouseListener, if (showLabels) { g.setColor(Color.red); - g.drawString( + awt2swing.Util.drawString(g, ((SequencePoint) points.elementAt(i)).sequence.getName(), x - 3, y - 4); } diff --git a/src/jalview/appletgui/ScalePanel.java b/src/jalview/appletgui/ScalePanel.java index 371b0c7..281a3ea 100644 --- a/src/jalview/appletgui/ScalePanel.java +++ b/src/jalview/appletgui/ScalePanel.java @@ -413,7 +413,7 @@ public class ScalePanel extends Panel implements MouseMotionListener, .adjustForHiddenColumns(i)); if ((i - startx - 1) * avcharWidth > maxX) { - gg.drawString(string, (i - startx - 1) * avcharWidth, y); + awt2swing.Util.drawString(gg, string, (i - startx - 1) * avcharWidth, y); maxX = (i - startx + 1) * avcharWidth + fm.stringWidth(string); } @@ -465,7 +465,7 @@ public class ScalePanel extends Panel implements MouseMotionListener, if (reveal != null && reveal[0] > startx && reveal[0] < endx) { - gg.drawString(MessageManager.getString("label.reveal_columns"), + awt2swing.Util.drawString(gg, MessageManager.getString("label.reveal_columns"), reveal[0] * avcharWidth, 0); } } diff --git a/src/jalview/appletgui/SeqCanvas.java b/src/jalview/appletgui/SeqCanvas.java index a85e783..0526e63 100644 --- a/src/jalview/appletgui/SeqCanvas.java +++ b/src/jalview/appletgui/SeqCanvas.java @@ -104,7 +104,7 @@ public class SeqCanvas extends Panel value = av.getColumnSelection().adjustForHiddenColumns(value); } - g.drawString(String.valueOf(value), (i - startx - 1) * avcharWidth, + awt2swing.Util.drawString(g, String.valueOf(value), (i - startx - 1) * avcharWidth, ypos - (avcharHeight / 2)); g.drawLine(((i - startx - 1) * avcharWidth) + (avcharWidth / 2), @@ -155,7 +155,7 @@ public class SeqCanvas extends Panel { int x = LABEL_WEST - fm.stringWidth(String.valueOf(value)) - avcharWidth / 2; - g.drawString(value + "", x, (ypos + (i * avcharHeight)) + awt2swing.Util.drawString(g, value + "", x, (ypos + (i * avcharHeight)) - (avcharHeight / 5)); } } @@ -194,7 +194,7 @@ public class SeqCanvas extends Panel if (value != -1) { - g.drawString(String.valueOf(value), 0, (ypos + (i * avcharHeight)) + awt2swing.Util.drawString(g, String.valueOf(value), 0, (ypos + (i * avcharHeight)) - (avcharHeight / 5)); } } diff --git a/src/jalview/appletgui/SequenceRenderer.java b/src/jalview/appletgui/SequenceRenderer.java index e2e98cb..b0733e4 100644 --- a/src/jalview/appletgui/SequenceRenderer.java +++ b/src/jalview/appletgui/SequenceRenderer.java @@ -116,7 +116,7 @@ public class SequenceRenderer implements jalview.api.SequenceRenderer { if (cs != null) { - resBoxColour = cs.findColour(seq.getCharAt(i), i, seq); + resBoxColour = cs.findColourSeq(seq.getCharAt(i), i, seq); } else if (forOverview && !Comparison.isGap(seq.getCharAt(i))) { @@ -308,7 +308,7 @@ public class SequenceRenderer implements jalview.api.SequenceRenderer } charOffset = (avCharWidth - fm.charWidth(s)) / 2; - graphics.drawString(String.valueOf(s), charOffset + avCharWidth + awt2swing.Util.drawString(graphics, String.valueOf(s), charOffset + avCharWidth * (i - start), y1); } @@ -370,7 +370,7 @@ public class SequenceRenderer implements jalview.api.SequenceRenderer } charOffset = (avCharWidth - fm.charWidth(s)) / 2; - graphics.drawString(String.valueOf(s), charOffset + x1 + awt2swing.Util.drawString(graphics, String.valueOf(s), charOffset + x1 + avCharWidth * (i - start), y1 + avCharHeight - pady); } } @@ -391,7 +391,7 @@ public class SequenceRenderer implements jalview.api.SequenceRenderer { charOffset = (av.getCharWidth() - fm.charWidth(s)) / 2; - graphics.drawString(String.valueOf(s), charOffset + x1, + awt2swing.Util.drawString(graphics, String.valueOf(s), charOffset + x1, (y1 + av.getCharHeight()) - pady); } } diff --git a/src/jalview/appletgui/TitledPanel.java b/src/jalview/appletgui/TitledPanel.java index 4594ba2..f4cf685 100644 --- a/src/jalview/appletgui/TitledPanel.java +++ b/src/jalview/appletgui/TitledPanel.java @@ -39,7 +39,7 @@ public class TitledPanel extends Panel g.setColor(getBackground()); g.fillRect(10, 0, width, 10); g.setColor(getForeground()); - g.drawString(getTitle(), 10, 10); + awt2swing.Util.drawString(g, getTitle(), 10, 10); } /** diff --git a/src/jalview/appletgui/Tooltip.java b/src/jalview/appletgui/Tooltip.java index 4ed029b..06c6004 100644 --- a/src/jalview/appletgui/Tooltip.java +++ b/src/jalview/appletgui/Tooltip.java @@ -98,20 +98,20 @@ public class Tooltip // extends Canvas implements MouseListener, // { // if (lindex > 0) // { -// g.drawString(tip[i].substring(0, lindex), 3, (i + 1) * fontHeight +// awt2swing.Util.drawString(g, tip[i].substring(0, lindex), 3, (i + 1) * fontHeight // - 3); // x += fm.stringWidth(tip[i].substring(0, lindex) + 3); // } // g.drawImage(linkImage, x, i * fontHeight + 1, this); // if (lindex + 6 < tip[i].length()) // { -// g.drawString(tip[i].substring(lindex + 6), +// awt2swing.Util.drawString(g, tip[i].substring(lindex + 6), // x + linkImage.getWidth(this), (i + 1) * fontHeight - 3); // } // } // else // { -// g.drawString(tip[i], 3, (i + 1) * fontHeight - 3); +// awt2swing.Util.drawString(g, tip[i], 3, (i + 1) * fontHeight - 3); // } // } // } diff --git a/src/jalview/appletgui/TreeCanvas.java b/src/jalview/appletgui/TreeCanvas.java index 3f149d0..a16cc8c 100644 --- a/src/jalview/appletgui/TreeCanvas.java +++ b/src/jalview/appletgui/TreeCanvas.java @@ -207,7 +207,7 @@ public class TreeCanvas extends Panel implements MouseListener, } if (!nodeLabel.equals("")) { - g.drawString(nodeLabel, xstart + 2, ypos - 2); + awt2swing.Util.drawString(g, nodeLabel, xstart + 2, ypos - 2); } String name = (markPlaceholders && node.isPlaceholder()) ? (PLACEHOLDER + node @@ -231,7 +231,7 @@ public class TreeCanvas extends Panel implements MouseListener, g.fillRect(xend + 10, ypos - charHeight + 3, charWidth, charHeight); g.setColor(Color.white); } - g.drawString(name, xend + 10, ypos); + awt2swing.Util.drawString(g, name, xend + 10, ypos); g.setColor(Color.black); } else @@ -294,7 +294,7 @@ public class TreeCanvas extends Panel implements MouseListener, if (!nodeLabel.equals("")) { - g.drawString(nodeLabel, xstart + 2, ypos - 2); + awt2swing.Util.drawString(g, nodeLabel, xstart + 2, ypos - 2); } } diff --git a/src/jalview/appletgui/UserDefinedColours.java b/src/jalview/appletgui/UserDefinedColours.java index af8a155..af1d25c 100644 --- a/src/jalview/appletgui/UserDefinedColours.java +++ b/src/jalview/appletgui/UserDefinedColours.java @@ -406,7 +406,7 @@ public class UserDefinedColours extends Panel implements ActionListener, { try { - col = oldColourScheme.findColour(aa.charAt(0), -1, null); + col = oldColourScheme.findColourSeq(aa.charAt(0), -1, null); } catch (Exception ex) { } diff --git a/src/jalview/bin/JalviewLite.java b/src/jalview/bin/JalviewLite.java index 2befd9a..07fdce5 100644 --- a/src/jalview/bin/JalviewLite.java +++ b/src/jalview/bin/JalviewLite.java @@ -1797,18 +1797,18 @@ public class JalviewLite extends JApplet implements g.setColor(Color.cyan); g.fillRect(0, 0, getSize().width, getSize().height); g.setColor(Color.red); - g.drawString( + awt2swing.Util.drawString(g, MessageManager.getString("label.jalview_cannot_open_file"), 5, 15); - g.drawString("\"" + startupFile + "\"", 5, 30); + awt2swing.Util.drawString(g, "\"" + startupFile + "\"", 5, 30); } else if (embedded && !haveShownLoadMessage) { g.setColor(Color.black); g.setFont(new Font("Arial", Font.BOLD, 24)); - g.drawString(MessageManager.getString("label.jalview_applet"), 50, + awt2swing.Util.drawString(g, MessageManager.getString("label.jalview_applet"), 50, getSize().height / 2 - 30); - g.drawString(MessageManager.getString("label.loading_data") + "...", + awt2swing.Util.drawString(g, MessageManager.getString("label.loading_data") + "...", 50, getSize().height / 2); haveShownLoadMessage = true; } diff --git a/src/jalview/io/AppletFormatAdapter.java b/src/jalview/io/AppletFormatAdapter.java index c908b15..ad3224a 100644 --- a/src/jalview/io/AppletFormatAdapter.java +++ b/src/jalview/io/AppletFormatAdapter.java @@ -34,7 +34,6 @@ import java.util.List; import javajs.J2SIgnoreImport; -import jalview.jsdev.Constants; import jalview.jsdev.GenericFileAdapter; /** @@ -90,7 +89,7 @@ public class AppletFormatAdapter */ public static final String[] READABLE_FORMATS = new String[] { "BLC", "CLUSTAL", "FASTA", "MSF", "PileUp", "PIR", "PFAM", "STH", - "PDB", "JnetFile", "RNAML", Constants.Phylip_FILE_DESC, Constants.JSON_FILE_DESC, IdentifyFile.GFF3File, + "PDB", "JnetFile", "RNAML", GenericFileAdapter.Phylip_FILE_DESC, GenericFileAdapter.JSON_FILE_DESC, IdentifyFile.GFF3File, "HTML" }; /** @@ -99,9 +98,9 @@ public class AppletFormatAdapter */ public static final String[] READABLE_EXTENSIONS = new String[] { "fa, fasta, mfa, fastq", "aln", "pfam", "msf", "pir", "blc", "amsa", - "sto,stk", "xml,rnaml", Constants.Phylip_FILE_EXT, Constants.JSON_FILE_EXT, + "sto,stk", "xml,rnaml", GenericFileAdapter.Phylip_FILE_EXT, GenericFileAdapter.JSON_FILE_EXT, ".gff2,gff3", - "jar,jvp", Constants.Html_FILE_EXT }; + "jar,jvp", GenericFileAdapter.Html_FILE_EXT }; /** * List of readable formats by application in order corresponding to @@ -109,8 +108,8 @@ public class AppletFormatAdapter */ public static final String[] READABLE_FNAMES = new String[] { "Fasta", "Clustal", "PFAM", "MSF", "PIR", "BLC", "AMSA", "Stockholm", - "RNAML", Constants.Phylip_FILE_DESC, Constants.JSON_FILE_DESC, IdentifyFile.GFF3File, "Jalview", - Constants.Html_FILE_DESC }; + "RNAML", GenericFileAdapter.Phylip_FILE_DESC, GenericFileAdapter.JSON_FILE_DESC, IdentifyFile.GFF3File, "Jalview", + GenericFileAdapter.Html_FILE_DESC }; /** * List of valid format strings for use by callers of the formatSequences @@ -118,7 +117,7 @@ public class AppletFormatAdapter */ public static final String[] WRITEABLE_FORMATS = new String[] { "BLC", "CLUSTAL", "FASTA", "MSF", "PileUp", "PIR", "PFAM", "AMSA", - "STH", Constants.Phylip_FILE_DESC, Constants.JSON_FILE_DESC }; + "STH", GenericFileAdapter.Phylip_FILE_DESC, GenericFileAdapter.JSON_FILE_DESC }; /** * List of extensions corresponding to file format types in WRITABLE_FNAMES @@ -126,7 +125,7 @@ public class AppletFormatAdapter */ public static final String[] WRITABLE_EXTENSIONS = new String[] { "fa, fasta, mfa, fastq", "aln", "pfam", "msf", "pir", "blc", "amsa", - "sto,stk", Constants.Phylip_FILE_EXT, Constants.JSON_FILE_EXT, "jvp" }; + "sto,stk", GenericFileAdapter.Phylip_FILE_EXT, GenericFileAdapter.JSON_FILE_EXT, "jvp" }; /** * List of writable formats by the application. Order must correspond with the @@ -134,7 +133,7 @@ public class AppletFormatAdapter */ public static final String[] WRITABLE_FNAMES = new String[] { "Fasta", "Clustal", "PFAM", "MSF", "PIR", "BLC", "AMSA", "STH", - Constants.Phylip_FILE_DESC, Constants.JSON_FILE_DESC, "Jalview" }; + GenericFileAdapter.Phylip_FILE_DESC, GenericFileAdapter.JSON_FILE_DESC, "Jalview" }; public static String INVALID_CHARACTERS = "Contains invalid characters"; @@ -297,11 +296,11 @@ public class AppletFormatAdapter { alignFile = GenericFileAdapter.getFile("PhylipFile", inFile, type); } - else if (format.equals(Constants.JSON_FILE_DESC)) + else if (format.equals(GenericFileAdapter.JSON_FILE_DESC)) { alignFile = GenericFileAdapter.getFile("JSONFile", inFile, type); } - else if (format.equals(Constants.Html_FILE_DESC)) + else if (format.equals(GenericFileAdapter.Html_FILE_DESC)) { alignFile = GenericFileAdapter.getFile("HtmlFile", inFile, type); } @@ -422,7 +421,7 @@ public class AppletFormatAdapter { alignFile = GenericFileAdapter.getFile("SimpleBlastFile", source); } - else if (format.equals(Constants.Phylip_FILE_DESC)) + else if (format.equals(GenericFileAdapter.Phylip_FILE_DESC)) { alignFile = GenericFileAdapter.getFile("PhylipFile", source); } @@ -430,11 +429,11 @@ public class AppletFormatAdapter { alignFile = GenericFileAdapter.getFile("Gff3File", inFile, type); } - else if (format.equals(Constants.JSON_FILE_DESC)) + else if (format.equals(GenericFileAdapter.JSON_FILE_DESC)) { alignFile = GenericFileAdapter.getFile("JSONFile", source); } - else if (format.equals(Constants.Html_FILE_DESC)) + else if (format.equals(GenericFileAdapter.Html_FILE_DESC)) { alignFile = GenericFileAdapter.getFile("HtmlFile", source); } @@ -586,11 +585,11 @@ public class AppletFormatAdapter { afile = GenericFileAdapter.getFile("AMSAFile", alignment); } - else if (format.equalsIgnoreCase(Constants.Phylip_FILE_DESC)) + else if (format.equalsIgnoreCase(GenericFileAdapter.Phylip_FILE_DESC)) { afile = GenericFileAdapter.getFile("PhylipFile"); } - else if (format.equalsIgnoreCase(Constants.JSON_FILE_DESC)) + else if (format.equalsIgnoreCase(GenericFileAdapter.JSON_FILE_DESC)) { afile = GenericFileAdapter.getFile("JSONFile"); } diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index 14848c7..f7c4286 100644 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -20,7 +20,6 @@ */ package jalview.io; -import jalview.jsdev.Constants; import jalview.jsdev.GenericFileAdapter; import java.io.IOException; @@ -148,7 +147,7 @@ public class IdentifyFile // if (data.matches("<(\"[^\"]*\"|'[^']*'|[^'\">])*>")) if (data.matches("])*>")) // BH was (?i)rnaml, but JavaScript regex does not support (?i); data is already upper case { - reply = Constants.Html_FILE_DESC; + reply = GenericFileAdapter.Html_FILE_DESC; break; } @@ -160,7 +159,7 @@ public class IdentifyFile if (data.indexOf("{\"") > -1) { - reply = Constants.JSON_FILE_DESC; + reply = GenericFileAdapter.JSON_FILE_DESC; break; } if ((data.length() < 1) || (data.indexOf("#") == 0)) @@ -290,7 +289,7 @@ public class IdentifyFile } else if (data.matches("\\s*\\d+\\s+\\d+\\s*")) { - reply = Constants.Phylip_FILE_DESC; + reply = GenericFileAdapter.Phylip_FILE_DESC; break; } diff --git a/src/jalview/jsdev/GenericFileAdapter.java b/src/jalview/jsdev/GenericFileAdapter.java index f112ebf..f73b53b 100644 --- a/src/jalview/jsdev/GenericFileAdapter.java +++ b/src/jalview/jsdev/GenericFileAdapter.java @@ -125,6 +125,17 @@ abstract public class GenericFileAdapter extends AlignFile { fileName = "file://" + fileName; return new BufferedReader(new InputStreamReader(new URL(fileName).openStream())); } + + public final static String TCOFFEE_SCORE = "TCoffeeScore"; + public static final int Phylip_FILE = 1; + public static final String Phylip_FILE_EXT = "phy"; + public static final String Phylip_FILE_DESC = "PHYLIP"; + public static final int JSON_FILE = 2; + public static final String JSON_FILE_EXT = "json"; + public static final String JSON_FILE_DESC = "JSON"; + public static final int Html_FILE = 3; + public static final String Html_FILE_EXT = "html"; + public static final String Html_FILE_DESC = "HTML"; } diff --git a/src/jalview/renderer/AnnotationRenderer.java b/src/jalview/renderer/AnnotationRenderer.java index debbf9a..231187f 100644 --- a/src/jalview/renderer/AnnotationRenderer.java +++ b/src/jalview/renderer/AnnotationRenderer.java @@ -533,7 +533,7 @@ public class AnnotationRenderer g.drawImage(fadedImage, 0, y - row.height, imgWidth, y, 0, y - row.height, imgWidth, y, annotationPanel); g.setColor(Color.black); - // g.drawString("Calculating "+aa[i].label+"....",20, y-row.height/2); + // awt2swing.Util.drawString(g, "Calculating "+aa[i].label+"....",20, y-row.height/2); continue; } @@ -547,7 +547,7 @@ public class AnnotationRenderer * annotationPanel.imgWidth, y, annotationPanel); * * g.setColor(Color.black); // - * g.drawString("Calculating Conservation.....",20, y-row.height/2); + * awt2swing.Util.drawString(g, "Calculating Conservation.....",20, y-row.height/2); * * continue; } else if (annotationPanel.av.updatingConservation && * aa[i].label.equals("Quality")) { @@ -556,7 +556,7 @@ public class AnnotationRenderer * row.height, annotationPanel.imgWidth, y, 0, y - row.height, * annotationPanel.imgWidth, y, annotationPanel); * g.setColor(Color.black); // / - * g.drawString("Calculating Quality....",20, y-row.height/2); + * awt2swing.Util.drawString(g, "Calculating Quality....",20, y-row.height/2); * * continue; } */ @@ -664,7 +664,7 @@ public class AnnotationRenderer if (column == 0 || row.graph > 0) { - g.drawString(displayChar, (x * charWidth) + charOffset, y + awt2swing.Util.drawString(g, displayChar, (x * charWidth) + charOffset, y + iconOffset); } else if (row_annotations[column - 1] == null @@ -673,7 +673,7 @@ public class AnnotationRenderer .equals(row_annotations[column - 1].displayCharacter) || (displayChar .length() < 2 && row_annotations[column].secondaryStructure == ' '))) { - g.drawString(displayChar, x * charWidth + charOffset, y + awt2swing.Util.drawString(g, displayChar, x * charWidth + charOffset, y + iconOffset); } g.setFont(ofont); @@ -1413,12 +1413,12 @@ public class AnnotationRenderer { final String codonTranslation = ResidueProperties .codonTranslate(new String(dc)); - colour = profcolour.findColour(codonTranslation.charAt(0), + colour = profcolour.findColourSeq(codonTranslation.charAt(0), column, null); } else { - colour = profcolour.findColour(dc[0], column, null); + colour = profcolour.findColourSeq(dc[0], column, null); } g.setColor(colour == Color.white ? Color.lightGray : colour); diff --git a/src/jalview/renderer/seqfeatures/FeatureRenderer.java b/src/jalview/renderer/seqfeatures/FeatureRenderer.java index e3280de..cc56b1f 100644 --- a/src/jalview/renderer/seqfeatures/FeatureRenderer.java +++ b/src/jalview/renderer/seqfeatures/FeatureRenderer.java @@ -76,7 +76,7 @@ public class FeatureRenderer extends FeatureRendererModel g.setColor(Color.white); charOffset = (av_charWidth - fm.charWidth(s)) / 2; - g.drawString(String.valueOf(s), charOffset + awt2swing.Util.drawString(g, String.valueOf(s), charOffset + (av_charWidth * (i - start)), pady); } @@ -141,7 +141,7 @@ public class FeatureRenderer extends FeatureRendererModel g.setColor(Color.black); charOffset = (av_charWidth - fm.charWidth(s)) / 2; - g.drawString(String.valueOf(s), charOffset + awt2swing.Util.drawString(g, String.valueOf(s), charOffset + (av_charWidth * (i - start)), pady); } } diff --git a/src/jalview/schemes/AnnotationColourGradient.java b/src/jalview/schemes/AnnotationColourGradient.java index e65d5f5..2198a4e 100644 --- a/src/jalview/schemes/AnnotationColourGradient.java +++ b/src/jalview/schemes/AnnotationColourGradient.java @@ -257,7 +257,7 @@ public class AnnotationColourGradient extends FollowerColourScheme * @return DOCUMENT ME! */ @Override - public Color findColour(char c, int j, SequenceI seq) { + public Color findColourSeq(char c, int j, SequenceI seq) { Color currentColour = Color.white; AlignmentAnnotation annotation = (seqAssociated && seqannot != null ? seqannot .get(seq) : this.annotation); @@ -289,7 +289,7 @@ public class AnnotationColourGradient extends FollowerColourScheme if (aj.secondaryStructure > ' ' && aj.secondaryStructure != '.' && aj.secondaryStructure != '-') { if (colourScheme != null) { - currentColour = colourScheme.findColour(c, j, seq); + currentColour = colourScheme.findColourSeq(c, j, seq); } else { if (annotation.isRNA()) { currentColour = ColourSchemeProperty.rnaHelices[(int) aj.value]; @@ -305,7 +305,7 @@ public class AnnotationColourGradient extends FollowerColourScheme } } else if (noGradient) { if (colourScheme != null) { - currentColour = colourScheme.findColour(c, j, seq); + currentColour = colourScheme.findColourSeq(c, j, seq); } else { if (aj.colour != null) { currentColour = aj.colour; diff --git a/src/jalview/schemes/Blosum62ColourScheme.java b/src/jalview/schemes/Blosum62ColourScheme.java index d5d2924..a435b5b 100644 --- a/src/jalview/schemes/Blosum62ColourScheme.java +++ b/src/jalview/schemes/Blosum62ColourScheme.java @@ -37,7 +37,7 @@ public class Blosum62ColourScheme extends ResidueColourScheme } @Override - public Color findColour(char res, int j, SequenceI seq) + public Color findColourSeq(char res, int j, SequenceI seq) { if ('a' <= res && res <= 'z') { diff --git a/src/jalview/schemes/ClustalxColourScheme.java b/src/jalview/schemes/ClustalxColourScheme.java index ca4316f..4fe4183 100644 --- a/src/jalview/schemes/ClustalxColourScheme.java +++ b/src/jalview/schemes/ClustalxColourScheme.java @@ -275,7 +275,7 @@ public class ClustalxColourScheme extends ResidueColourScheme } @Override - public Color findColour(char c, int j, SequenceI seq) + public Color findColourSeq(char c, int j, SequenceI seq) { Color currentColour; diff --git a/src/jalview/schemes/ColourSchemeI.java b/src/jalview/schemes/ColourSchemeI.java index 1589356..03256c6 100644 --- a/src/jalview/schemes/ColourSchemeI.java +++ b/src/jalview/schemes/ColourSchemeI.java @@ -48,7 +48,7 @@ public interface ColourSchemeI * @return context dependent colour for the given symbol at the position in * the given sequence */ - public Color findColour(char c, int j, SequenceI seq); + public Color findColourSeq(char c, int j, SequenceI seq); /** * assign the given consensus profile for the colourscheme diff --git a/src/jalview/schemes/NucleotideColourScheme.java b/src/jalview/schemes/NucleotideColourScheme.java index dff2bf3..1e44d91 100644 --- a/src/jalview/schemes/NucleotideColourScheme.java +++ b/src/jalview/schemes/NucleotideColourScheme.java @@ -67,7 +67,7 @@ public class NucleotideColourScheme extends ResidueColourScheme * @return DOCUMENT ME! */ @Override - public Color findColour(char c, int j, SequenceI seq) + public Color findColourSeq(char c, int j, SequenceI seq) { Color currentColour; if ((threshold == 0) || aboveThreshold(c, j)) diff --git a/src/jalview/schemes/PIDColourScheme.java b/src/jalview/schemes/PIDColourScheme.java index c59d579..7c48a7d 100644 --- a/src/jalview/schemes/PIDColourScheme.java +++ b/src/jalview/schemes/PIDColourScheme.java @@ -42,7 +42,7 @@ public class PIDColourScheme extends ResidueColourScheme } @Override - public Color findColour(char c, int j, SequenceI seq) + public Color findColourSeq(char c, int j, SequenceI seq) { if ('a' <= c && c <= 'z') { diff --git a/src/jalview/schemes/RNAHelicesColour.java b/src/jalview/schemes/RNAHelicesColour.java index be28d91..2f46cc2 100644 --- a/src/jalview/schemes/RNAHelicesColour.java +++ b/src/jalview/schemes/RNAHelicesColour.java @@ -178,7 +178,7 @@ public class RNAHelicesColour extends ResidueColourScheme * @return Color in RGB */ @Override - public Color findColour(char c, int j, SequenceI seq) + public Color findColourSeq(char c, int j, SequenceI seq) { refresh(); Color currentColour = Color.white; diff --git a/src/jalview/schemes/RNAInteractionColourScheme.java b/src/jalview/schemes/RNAInteractionColourScheme.java index 794195a..0d22b64 100644 --- a/src/jalview/schemes/RNAInteractionColourScheme.java +++ b/src/jalview/schemes/RNAInteractionColourScheme.java @@ -57,7 +57,7 @@ public class RNAInteractionColourScheme extends ResidueColourScheme * @return DOCUMENT ME! */ @Override - public Color findColour(char c, int j, SequenceI seq) + public Color findColourSeq(char c, int j, SequenceI seq) { Color currentColour; if ((threshold == 0) || aboveThreshold(c, j)) diff --git a/src/jalview/schemes/ResidueColourScheme.java b/src/jalview/schemes/ResidueColourScheme.java index 5294006..d7300e1 100644 --- a/src/jalview/schemes/ResidueColourScheme.java +++ b/src/jalview/schemes/ResidueColourScheme.java @@ -107,7 +107,7 @@ public class ResidueColourScheme implements ColourSchemeI } @Override - public Color findColour(char c, int j, SequenceI seq) + public Color findColourSeq(char c, int j, SequenceI seq) { Color currentColour; diff --git a/src/jalview/schemes/ScoreColourScheme.java b/src/jalview/schemes/ScoreColourScheme.java index beb7b59..e0430e8 100644 --- a/src/jalview/schemes/ScoreColourScheme.java +++ b/src/jalview/schemes/ScoreColourScheme.java @@ -93,7 +93,7 @@ public class ScoreColourScheme extends ResidueColourScheme * @return DOCUMENT ME! */ @Override - public Color findColour(char c, int j, SequenceI seq) + public Color findColourSeq(char c, int j, SequenceI seq) { if (threshold > 0) { diff --git a/src/jalview/schemes/TCoffeeColourScheme.java b/src/jalview/schemes/TCoffeeColourScheme.java index 9e8feea..47261f6 100644 --- a/src/jalview/schemes/TCoffeeColourScheme.java +++ b/src/jalview/schemes/TCoffeeColourScheme.java @@ -26,7 +26,7 @@ import jalview.datamodel.AnnotatedCollectionI; import jalview.datamodel.Annotation; import jalview.datamodel.SequenceCollectionI; import jalview.datamodel.SequenceI; -import jalview.jsdev.Constants; +import jalview.jsdev.GenericFileAdapter; import java.awt.Color; import java.util.ArrayList; @@ -91,7 +91,7 @@ public class TCoffeeColourScheme extends ResidueColourScheme : alignment.getContext(); int w = 0; for (AlignmentAnnotation al : alcontext - .findAnnotation(Constants.TCOFFEE_SCORE)) + .findAnnotation(GenericFileAdapter.TCOFFEE_SCORE)) { if (al.sequenceRef != null && !al.belowAlignment) { @@ -116,7 +116,7 @@ public class TCoffeeColourScheme extends ResidueColourScheme } @Override - public Color findColour(char c, int j, SequenceI seq) + public Color findColourSeq(char c, int j, SequenceI seq) { Color[] cols; diff --git a/src/jalview/schemes/UserColourScheme.java b/src/jalview/schemes/UserColourScheme.java index 80efaca..f75cf13 100644 --- a/src/jalview/schemes/UserColourScheme.java +++ b/src/jalview/schemes/UserColourScheme.java @@ -229,7 +229,7 @@ public class UserColourScheme extends ResidueColourScheme } @Override - public Color findColour(char c, int j, SequenceI seq) + public Color findColourSeq(char c, int j, SequenceI seq) { Color currentColour; int index = ResidueProperties.aaIndex[c]; diff --git a/src/swingjs/JSImage.java b/src/swingjs/JSImage.java index 1501688..0de3895 100644 --- a/src/swingjs/JSImage.java +++ b/src/swingjs/JSImage.java @@ -8,21 +8,15 @@ import java.awt.image.ImageObserver; public class JSImage extends BufferedImage { // a BufferedImage in name only, actually; int typeRequested; - int[] pix; // not used in Java, but may be used in JavaScript + int[] pix; public DOMNode _imgNode; // used by JSGraphics2D directly private int width, height; - public JSImage() { - super(1,1, TYPE_INT_ARGB); - - } - - public JSImage setData(int width, int height, int[] argb) { - pix = argb; + public JSImage(int[] argb, int width, int height) { + super(width, height, TYPE_INT_ARGB); this.width = width; this.height = height; - getColorModel().createCompatibleWritableRaster(width, height); - return this; + pix = argb; } /**