CPD Results

The following document contains the results of PMD's CPD 7.12.0.

Duplications

File Line
net\sourceforge\joceanus\tethys\javafx\pane\TethysUIFXBoxPaneManager.java 91
net\sourceforge\joceanus\tethys\javafx\pane\TethysUIFXFlowPaneManager.java 69
theBoxPane.getChildren().add(TethysUIFXNode.getNode(pNode));
    }

    @Override
    public void setChildVisible(final TethysUIComponent pChild,
                                final boolean pVisible) {
        /* Handle nothing to do */
        final Node myChildNode = TethysUIFXNode.getNode(pChild);
        final boolean isVisible = myChildNode.isVisible();
        if (isVisible == pVisible) {
            return;
        }

        /* If the node is not visible */
        if (pVisible) {
            /* Count visible prior siblings */
            final int myId = pChild.getId();
            int myIndex = 0;
            final Iterator<TethysUIComponent> myIterator = iterator();
            while (myIterator.hasNext()) {
                final TethysUIComponent myNode = myIterator.next();
                final Integer myNodeId = myNode.getId();

                /* If we have found the node */
                if (myNodeId == myId) {
                    /* Set visible and add into the list */
                    myChildNode.setVisible(true);
File Line
net\sourceforge\joceanus\tethys\javafx\chart\TethysUIFXAreaChart.java 116
net\sourceforge\joceanus\tethys\javafx\chart\TethysUIFXBarChart.java 79
theChart.setVerticalGridLinesVisible(false);

        /* Create the map */
        theSeries = new HashMap<>();

        /* Create Node */
        theNode = new TethysUIFXNode(theChart);
    }

    @Override
    public TethysUIFXNode getNode() {
        return theNode;
    }

    @Override
    public void setVisible(final boolean pVisible) {
        theNode.setManaged(pVisible);
        theNode.setVisible(pVisible);
    }

    @Override
    public void setEnabled(final boolean pEnabled) {
        theChart.setDisable(!pEnabled);
    }

    @Override
    public void setPreferredWidth(final Integer pWidth) {
        theChart.setPrefWidth(pWidth);
    }

    @Override
    public void setPreferredHeight(final Integer pHeight) {
        theChart.setPrefHeight(pHeight);
    }

    @Override
    public void updateAreaChart(final TethysUIAreaChartData pData) {
File Line
net\sourceforge\joceanus\tethys\javafx\button\TethysUIFXDateButtonManager.java 89
net\sourceforge\joceanus\tethys\javafx\button\TethysUIFXIconButtonManager.java 50
net\sourceforge\joceanus\tethys\javafx\button\TethysUIFXListButtonManager.java 71
net\sourceforge\joceanus\tethys\javafx\button\TethysUIFXScrollButtonManager.java 82
theDialog.showDialogUnderNode(getNode().getNode());
    }

    @Override
    public void setPreferredWidth(final Integer pWidth) {
        getNode().setPreferredWidth(pWidth);
    }

    @Override
    public void setPreferredHeight(final Integer pHeight) {
        getNode().setPreferredHeight(pHeight);
    }

    @Override
    public void setBorderPadding(final Integer pPadding) {
        super.setBorderPadding(pPadding);
        getNode().createWrapperPane(getBorderTitle(), getBorderPadding());
    }

    @Override
    public void setBorderTitle(final String pTitle) {
        super.setBorderTitle(pTitle);
        getNode().createWrapperPane(getBorderTitle(), getBorderPadding());
    }
}
File Line
net\sourceforge\joceanus\tethys\javafx\chart\TethysUIFXAreaChart.java 119
net\sourceforge\joceanus\tethys\javafx\chart\TethysUIFXPieChart.java 55
theSeries = new HashMap<>();

        /* Create Node */
        theNode = new TethysUIFXNode(theChart);
    }

    @Override
    public TethysUIFXNode getNode() {
        return theNode;
    }

    @Override
    public void setVisible(final boolean pVisible) {
        theNode.setManaged(pVisible);
        theNode.setVisible(pVisible);
    }

    @Override
    public void setEnabled(final boolean pEnabled) {
        theChart.setDisable(!pEnabled);
    }

    @Override
    public void setPreferredWidth(final Integer pWidth) {
        theChart.setPrefWidth(pWidth);
    }

    @Override
    public void setPreferredHeight(final Integer pHeight) {
        theChart.setPrefHeight(pHeight);
    }

    @Override
    public void updateAreaChart(final TethysUIAreaChartData pData) {
File Line
net\sourceforge\joceanus\tethys\javafx\chart\TethysUIFXBarChart.java 82
net\sourceforge\joceanus\tethys\javafx\chart\TethysUIFXPieChart.java 55
theSeries = new HashMap<>();

        /* Create Node */
        theNode = new TethysUIFXNode(theChart);
    }

    @Override
    public TethysUIFXNode getNode() {
        return theNode;
    }

    @Override
    public void setVisible(final boolean pVisible) {
        theNode.setManaged(pVisible);
        theNode.setVisible(pVisible);
    }

    @Override
    public void setEnabled(final boolean pEnabled) {
        theChart.setDisable(!pEnabled);
    }

    @Override
    public void setPreferredWidth(final Integer pWidth) {
        theChart.setPrefWidth(pWidth);
    }

    @Override
    public void setPreferredHeight(final Integer pHeight) {
        theChart.setPrefHeight(pHeight);
    }

    @Override
    public void updateBarChart(final TethysUIBarChartData pData) {
File Line
net\sourceforge\joceanus\tethys\javafx\dialog\TethysUIFXAboutBox.java 68
net\sourceforge\joceanus\tethys\javafx\dialog\TethysUIFXBusySpinner.java 58
TethysUIFXAboutBox(final TethysUICoreFactory<?> pFactory,
                       final Stage pStage) {
        /* Initialise underlying class */
        super(pFactory);
        if (pStage == null) {
            throw new IllegalArgumentException("Cannot create Dialog during initialisation");
        }

        /* Store parameters */
        theSceneRegister = (TethysUIFXSceneRegister) pFactory;
        theStage = pStage;
        thePanel = (Region) getNode().getNode();
    }

    @Override
    public TethysUIFXNode getNode() {
        return (TethysUIFXNode) super.getNode();
    }

    @Override
    public void showDialog() {
        /* If we have not made the dialog yet */
        if (theDialog == null) {
            makeDialog();
        }

        /* Centre on parent */
        final double myX = (theStage.getWidth() - APPROX_WIDTH) / 2;