public JPanel getDOTItemDefinitionPanel() { DOTPoint dotPoint = (DOTPoint) _dotDefinitionDialogFrame.getScratchDisplayObjectType(); final PrimitiveForm primitiveForm = dotPoint.getPrimitiveForm(_dotDefinitionDialogFrame.getSelectedPrimitiveForm()); final DOTProperty property = _dotDefinitionDialogFrame.getSelectedProperty(); if ((primitiveForm == null) || (property == null)) { return null; } PrimitiveFormPropertyPair pfpPair = new PrimitiveFormPropertyPair(primitiveForm.getName(), property); final boolean isStatic = _dotDefinitionDialogFrame.getStaticCheckBoxState(); if (isStatic) { if (!_staticPanels.containsKey(pfpPair)) { _staticPanels.put(pfpPair, createStaticCenterPanel(primitiveForm, property)); } return _staticPanels.get(pfpPair); } else { if (!_dynamicPanels.containsKey(pfpPair)) { _dynamicPanels.put(pfpPair, createDynamicCenterPanel(primitiveForm, property)); } return _dynamicPanels.get(pfpPair); } }