The following document contains the results of PMD's CPD 6.46.0.
| File | Line |
|---|---|
| org/opentrafficsim/swing/gui/AnimationToggles.java | 115 |
| org/opentrafficsim/swing/gui/AnimationToggles.java | 158 |
panel.addToggleAnimationButtonIcon("Link", Link.class, "/icons/Link24.png", "Show/hide links", true, false);
panel.addToggleAnimationButtonIcon("LinkId", LinkAnimation.Text.class, "/icons/Id24.png", "Show/hide link Ids", false,
true);
panel.addToggleAnimationButtonIcon("Lane", Lane.class, "/icons/Lane24.png", "Show/hide lanes", true, false);
panel.addToggleAnimationButtonIcon("LaneId", LaneAnimation.Text.class, "/icons/Id24.png", "Show/hide lane Ids", false,
true);
panel.addToggleAnimationButtonIcon("LaneCenter", CenterLine.class, "/icons/CenterLine24.png",
"Show/hide lane center lines", false, false);
panel.addToggleAnimationButtonIcon("Stripe", Stripe.class, "/icons/Stripe24.png", "Show/hide stripes", true, false);
panel.addToggleAnimationButtonIcon("Shoulder", Shoulder.class, "/icons/Shoulder24.png", "Show/hide shoulders", true,
false);
panel.addToggleAnimationButtonIcon("GTU", Gtu.class, "/icons/Gtu24.png", "Show/hide GTUs", true, false);
panel.addToggleAnimationButtonIcon("GTUId", DefaultCarAnimation.Text.class, "/icons/Id24.png", "Show/hide GTU Ids",
false, true);
panel.addToggleAnimationButtonIcon("Detector", Detector.class, "/icons/Detector24.png", "Show/hide detectors", true, | |
| File | Line |
|---|---|
| org/opentrafficsim/swing/gui/AnimationToggles.java | 55 |
| org/opentrafficsim/swing/gui/AnimationToggles.java | 84 |
panel.addToggleAnimationButtonText("Link", Link.class, "Show/hide links", true);
panel.addToggleAnimationButtonText("LinkId", LinkAnimation.Text.class, "Show/hide link Ids", false);
panel.addToggleAnimationButtonText("Lane", Lane.class, "Show/hide lanes", true);
panel.addToggleAnimationButtonText("LaneId", LaneAnimation.Text.class, "Show/hide lane Ids", false);
panel.addToggleAnimationButtonText("LaneCenter", LaneAnimation.CenterLine.class, "Show/hide lane center lines", false);
panel.addToggleAnimationButtonText("Stripe", Stripe.class, "Show/hide stripes", true);
panel.addToggleAnimationButtonText("Shoulder", Shoulder.class, "Show/hide shoulders", true);
panel.addToggleAnimationButtonText("GTU", Gtu.class, "Show/hide GTUs", true);
panel.addToggleAnimationButtonText("GTUId", DefaultCarAnimation.Text.class, "Show/hide GTU Ids", false);
panel.addToggleAnimationButtonText("Detector", Detector.class, "Show/hide detectors", true); | |
| File | Line |
|---|---|
| org/opentrafficsim/swing/gui/OtsAnimationPanel.java | 701 |
| org/opentrafficsim/swing/gui/OtsControlPanel.java | 336 |
public DisposeOnCloseThread(final OtsAnimationPanel panel)
{
this.panel = panel;
}
/** {@inheritDoc} */
@Override
public final void run()
{
Container root = this.panel;
while (!(root instanceof JFrame))
{
try
{
Thread.sleep(10);
}
catch (InterruptedException exception)
{
// nothing to do
}
// Search towards the root of the Swing components until we find a JFrame
root = this.panel;
while (null != root.getParent() && !(root instanceof JFrame))
{
root = root.getParent();
}
}
JFrame frame = (JFrame) root;
frame.addWindowListener(this.panel);
this.panel.closeHandlerRegistered = true;
}
/** {@inheritDoc} */
@Override
public final String toString()
{
return "DisposeOnCloseThread of OtsAnimationPanel [panel=" + this.panel + "]"; | |
| File | Line |
|---|---|
| com/bric/multislider/DefaultMultiThumbSliderUi.java | 36 |
| com/bric/multislider/VistaMultiThumbSliderUI.java | 38 |
}
@Override
protected Dimension getThumbSize(int thumbIndex)
{
Thumb thumb = getThumb(thumbIndex);
if (Thumb.Hourglass.equals(thumb))
{
return new Dimension(8, 16);
}
else if (Thumb.Triangle.equals(thumb))
{
return new Dimension(10, 18);
}
else if (Thumb.Rectangle.equals(thumb))
{
return new Dimension(10, 20);
}
else
{
return new Dimension(16, 16);
}
}
@Override
protected void paintTrack(Graphics2D g)
{ | |