|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel
at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl
at.tuwien.ifs.somtoolbox.apps.viewer.controls.AutoRoutePanel
public class AutoRoutePanel
Nested Class Summary | |
---|---|
class |
AutoRoutePanel.SimpleTSPSolver
|
Nested classes/interfaces inherited from class at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel |
---|
TitledCollapsiblePanel.Orientation |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private boolean |
applyTSP
|
private float |
bigD
|
private JCheckBox |
chkDebug
|
private JCheckBox |
chkTSP
|
private boolean |
debug
|
private edu.umd.cs.piccolo.PNode |
dots
|
private SpinnerNumberModel |
lineModel
|
private edu.umd.cs.piccolo.PNode |
lines
|
private static Logger |
log
|
private JPanel |
mainP
|
private Random |
rand
|
private JRadioButton |
rdoFlat
|
private JRadioButton |
rdoHigh
|
private JRadioButton |
rdoSnap
|
private edu.umd.cs.piccolo.PNode |
route
|
private static long |
serialVersionUID
|
private float |
smallD
|
private SpinnerNumberModel |
spinnerModel
|
private LinkedList<Unit> |
touchedUnits
|
Fields inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl |
---|
SMALL_INSETS, smallerFont, smallFont, state |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
AutoRoutePanel(String title,
CommonSOMViewerStateData state)
|
Method Summary | |
---|---|
private void |
createAndPlay()
|
private void |
doAutoRouting()
|
private void |
doFlatRouting(List<GeneralUnitPNode> units)
|
private void |
doHighDimRouting(List<GeneralUnitPNode> units)
|
private void |
doSnappedRouting(List<GeneralUnitPNode> units)
|
JPanel |
getAutoRoutePanel()
|
private double[] |
wgtAdd(double[] a,
double[] b)
|
Methods inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl |
---|
isFullFunctional, setIcon, setSelected, setVisible |
Methods inherited from class at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel |
---|
add, add, add, add, add, getContentBackground, getContentBorder, getContentPane, getDecoratorPadding, getHorizontalTitleAlignment, getHorizontalTitleTextPosition, getIcon, getIconTitleGap, getLayout, getOrientation, getPreferredSize, getShowTitleDecoration, getTitle, getTitleBackground, getTitleBorder, isAnimated, isCollapsed, pack, remove, remove, removeAll, setAnimated, setCollapsed, setContentBackground, setContentBorder, setContentPane, setDecoratorPadding, setHorizontalTitleAlignment, setHorizontalTitleTextPosition, setIcon, setIconTitleGap, setLayout, setOrientation, setShowTitleDecoration, setTitle, setTitleBackground, setTitleBorder |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private float bigD
private float smallD
private edu.umd.cs.piccolo.PNode route
private edu.umd.cs.piccolo.PNode dots
private edu.umd.cs.piccolo.PNode lines
private SpinnerNumberModel spinnerModel
private JRadioButton rdoFlat
private JRadioButton rdoSnap
private JRadioButton rdoHigh
private JPanel mainP
private JCheckBox chkTSP
private JCheckBox chkDebug
private boolean debug
private boolean applyTSP
private Random rand
private LinkedList<Unit> touchedUnits
private static Logger log
private SpinnerNumberModel lineModel
Constructor Detail |
---|
public AutoRoutePanel(String title, CommonSOMViewerStateData state)
Method Detail |
---|
public JPanel getAutoRoutePanel()
private void createAndPlay()
private void doAutoRouting()
private void doSnappedRouting(List<GeneralUnitPNode> units)
private void doHighDimRouting(List<GeneralUnitPNode> units)
private double[] wgtAdd(double[] a, double[] b)
private void doFlatRouting(List<GeneralUnitPNode> units)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |