Protege-2000 1.7

edu.stanford.smi.protegex.widget.diagram
Class DiagramWidgetState

java.lang.Object
  |
  +--java.util.Observable
        |
        +--edu.stanford.smi.protegex.util.AbstractWidgetState
              |
              +--edu.stanford.smi.protegex.util.ButtonRelatedWidgetState
                    |
                    +--edu.stanford.smi.protegex.widget.diagram.DiagramWidgetState
All Implemented Interfaces:
Constants

public class DiagramWidgetState
extends ButtonRelatedWidgetState
implements Constants

Description of the Class

Author:
William Grosso

Field Summary
protected  String _classBasedHiderButtonTooltip
           
protected  boolean _displayClassBasedHiderButton
           
protected  boolean _displayFlowchartButton
           
protected  boolean _displayLegendButton
           
protected  boolean _displayReusableFormButton
           
protected  boolean _displayThumbnailButton
           
protected  boolean _displayWirebuilderButton
           
protected  String _flowchartButtonTooltip
           
protected  String _legendButtonTooltip
           
protected  String _reusableFormButtonTooltip
           
protected  String _thumbnailButtonTooltip
           
protected  String _wirebuilderButtonTooltip
           
protected static String CLASS_BASED_HIDER_BUTTON_TOOLTIP
           
protected static String CLASS_BASED_HIDER_BUTTON_TOOLTIP_DEFAULT
           
protected static String DISPLAY_CLASS_BASED_HIDER_BUTTON
           
protected static String DISPLAY_FLOWCHART_BUTTON
           
protected static String DISPLAY_LEGEND_BUTTON
           
protected static String DISPLAY_REUSABLE_FORM_BUTTON
           
protected static String DISPLAY_THUMBNAIL_BUTTON
           
protected static String DISPLAY_WIRE_BUILDER_BUTTON
           
protected static String FLOWCHART_BUTTON_TOOLTIP
           
protected static String FLOWCHART_BUTTON_TOOLTIP_DEFAULT
           
protected static String LEGEND_BUTTON_TOOLTIP
           
protected static String LEGEND_BUTTON_TOOLTIP_DEFAULT
           
protected static String REUSABLE_FORM_BUTTON_TOOLTIP
           
protected static String REUSABLE_FORM_BUTTON_TOOLTIP_DEFAULT
           
protected static String THUMBNAIL_BUTTON_TOOLTIP
           
protected static String THUMBNAIL_BUTTON_TOOLTIP_DEFAULT
           
protected static String WIRE_BUILDER_BUTTON_TOOLTIP
           
protected static String WIRE_BUILDER_BUTTON_TOOLTIP_DEFAULT
           
 
Fields inherited from class edu.stanford.smi.protegex.util.ButtonRelatedWidgetState
_addInstanceButtonTooltip, _addInstanceDialogTitle, _createInstanceButtonTooltip, _createInstanceDialogTitle, _deleteInstanceButtonTooltip, _displayAddInstanceButton, _displayCreateInstanceButton, _displayDeleteInstanceButton, _displayPrototypeButton, _displayRemoveInstanceButton, _displayViewInstanceButton, _prototypeButtonTooltip, _prototypeDepth, _removeInstanceButtonTooltip, _viewInstanceButtonTooltip, ADD_INSTANCE_BUTTON_TOOLTIP, ADD_INSTANCE_BUTTON_TOOLTIP_DEFAULT, ADD_INSTANCE_DIALOG_TITLE, ADD_INSTANCE_DIALOG_TITLE_DEFAULT, CREATE_INSTANCE_BUTTON_TOOLTIP, CREATE_INSTANCE_BUTTON_TOOLTIP_DEFAULT, CREATE_INSTANCE_DIALOG_TITLE, CREATE_INSTANCE_DIALOG_TITLE_DEFAULT, DELETE_INSTANCE_BUTTON_TOOLTIP, DELETE_INSTANCE_BUTTON_TOOLTIP_DEFAULT, DISPLAY_ADD_INSTANCE_BUTTON, DISPLAY_CREATE_INSTANCE_BUTTON, DISPLAY_DELETE_INSTANCE_BUTTON, DISPLAY_PROTOTYPE_BUTTON, DISPLAY_REMOVE_INSTANCE_BUTTON, DISPLAY_VIEW_INSTANCE_BUTTON, PROTOTYPE_BUTTON_TOOLTIP, PROTOTYPE_BUTTON_TOOLTIP_DEFAULT, PROTOTYPE_DEPTH, REMOVE_INSTANCE_BUTTON_TOOLTIP, REMOVE_INSTANCE_BUTTON_TOOLTIP_DEFAULT, VIEW_INSTANCE_BUTTON_TOOLTIP, VIEW_INSTANCE_BUTTON_TOOLTIP_DEFAULT
 
Fields inherited from class edu.stanford.smi.protegex.util.AbstractWidgetState
_properties
 
Fields inherited from interface edu.stanford.smi.protegex.widget.diagram.Constants
CONFIGURATION_BASED_VISIBILITY_CHECKER, CONNECTOR_CLASS, CONNECTORS_SLOT, DEFAULT_LAST_DIVIDER_LOCATION, DEFAULT_LOWER_BOUND_ON_DIAGRAM_LOGICAL_HEIGHT, DEFAULT_LOWER_BOUND_ON_DIAGRAM_LOGICAL_WIDTH, DEFAULT_NODE_HEIGHT, DEFAULT_NODE_WIDTH, FIRST_OBJECT_SLOT_NAME, FIRST_OBJECT_SLOT_POINTER_NAME, IMAGE_CONTROLPOINT_PRECISION, IMAGE_MINIMUM_SIZE, LAST_DIVIDER_LOCATION, LAYOUT_INFORMATION_SLOT, LOCATION_SLOT, LOWER_RIGHT_CORNER_SLOT, MAIN_SIDE_RECTANGLE_HEIGHT, MAIN_SIDE_RECTANGLE_WIDTH, NETWORK_CLASS, NETWORK_METACLASS, NODE_SLOT, OBJECT_LOCATION_CLASS, OBJECT_SLOT, POINT_CLASS, POINT_X_SLOT, POINT_Y_SLOT, PROJECT_VISIBILITY_CHECKER, RECTANGLE_CLASS, SECOND_OBJECT_SLOT_NAME, SECOND_OBJECT_SLOT_POINTER_NAME, UPPER_LEFT_CORNER_SLOT, WIRE_CONTROLPOINT_PRECISION, WIRE_MINIMUM_SIZE
 
Constructor Summary
DiagramWidgetState(DiagramWidget widget, edu.stanford.smi.protege.util.PropertyList properties)
           
 
Method Summary
 String getClassBasedHiderButtonTooltip()
           
 Collection getConnectorClses()
           
 TypeBasedVisibilityChecker getDefaultVisibilityChecker()
           
 String getFlowchartButtonTooltip()
           
 String getLegendButtonTooltip()
           
 int getLowerBoundOnDiagramHeight()
           
 int getLowerBoundOnDiagramWidth()
           
 Collection getNodeClses()
           
 boolean getPaletteDisplayed()
           
 String getReusableFormButtonTooltip()
           
 WireState getStateForConnector(edu.stanford.smi.protege.model.Cls connectorClass)
           
 WireState getStateForConnector(edu.stanford.smi.protege.model.Instance connectorInstance)
           
 WireState getStateForConnector(String connectorClassName)
           
 NodeState getStateForNode(edu.stanford.smi.protege.model.Cls nodeClass)
           
 NodeState getStateForNode(edu.stanford.smi.protege.model.Instance nodeInstance)
           
 NodeState getStateForNode(String nodeClassName)
           
 String getThumbnailButtonTooltip()
           
 String getWirebuilderButtonTooltip()
           
 boolean isDisplayClassBasedHiderButton()
           
 boolean isDisplayFlowchartButton()
           
 boolean isDisplayLegendButton()
           
 boolean isDisplayReusableFormButton()
           
 boolean isDisplayThumbnailButton()
           
 boolean isDisplayWirebuilderButton()
           
 boolean isPaletteDisplayed()
           
 void restore()
           
 void save()
           
 void setClassBasedHiderButtonTooltip(String classBasedHiderButtonTooltip)
           
 void setDefaultVisibilityChecker(TypeBasedVisibilityChecker defaultVisibilityChecker)
           
 void setDisplayClassBasedHiderButton(boolean displayClassBasedHiderButton)
           
 void setDisplayClassBasedHiderButton(Boolean displayClassBasedHiderButton)
           
 void setDisplayFlowchartButton(boolean displayFlowchartButton)
           
 void setDisplayFlowchartButton(Boolean displayFlowchartButton)
           
 void setDisplayLegendButton(boolean displayLegendButton)
           
 void setDisplayLegendButton(Boolean displayLegendButton)
           
 void setDisplayReusableFormButton(boolean displayReusableFormButton)
           
 void setDisplayReusableFormButton(Boolean displayReusableFormButton)
           
 void setDisplayThumbnailButton(boolean displayThumbnailButton)
           
 void setDisplayThumbnailButton(Boolean displayThumbnailButton)
           
 void setDisplayWirebuilderButton(boolean displayWirebuilderButton)
           
 void setDisplayWirebuilderButton(Boolean displayWirebuilderButton)
           
 void setFlowchartButtonTooltip(String flowchartButtonTooltip)
           
 void setLegendButtonTooltip(String legendButtonTooltip)
           
 void setLowerBoundOnDiagramHeight(int lowerBoundOnDiagramHeight)
           
 void setLowerBoundOnDiagramWidth(int lowerBoundOnDiagramWidth)
           
 void setPaletteDisplayed(boolean paletteDisplayed)
           
 void setReusableFormButtonTooltip(String reusableFormButtonTooltip)
           
 void setThumbnailButtonTooltip(String thumbnailButtonTooltip)
           
 void setWirebuilderButtonTooltip(String wirebuilderButtonTooltip)
           
 
Methods inherited from class edu.stanford.smi.protegex.util.ButtonRelatedWidgetState
dispose, getAddInstanceButtonTooltip, getAddInstanceDialogTitle, getCreateInstanceButtonTooltip, getCreateInstanceDialogTitle, getDeleteInstanceButtonTooltip, getPrototypeButtonTooltip, getPrototypeDepth, getRemoveInstanceButtonTooltip, getViewInstanceButtonTooltip, isDisplayAddInstanceButton, isDisplayCreateInstanceButton, isDisplayDeleteInstanceButton, isDisplayPrototypeButton, isDisplayRemoveInstanceButton, isDisplayViewInstanceButton, setAddInstanceButtonTooltip, setAddInstanceDialogTitle, setCreateInstanceButtonTooltip, setCreateInstanceDialogTitle, setDeleteInstanceButtonTooltip, setDisplayAddInstanceButton, setDisplayAddInstanceButton, setDisplayCreateInstanceButton, setDisplayCreateInstanceButton, setDisplayDeleteInstanceButton, setDisplayDeleteInstanceButton, setDisplayPrototypeButton, setDisplayPrototypeButton, setDisplayRemoveInstanceButton, setDisplayRemoveInstanceButton, setDisplayViewInstanceButton, setDisplayViewInstanceButton, setPrototypeButtonTooltip, setPrototypeDepth, setPrototypeDepth, setRemoveInstanceButtonTooltip, setViewInstanceButtonTooltip
 
Methods inherited from class edu.stanford.smi.protegex.util.AbstractWidgetState
broadcast, isCustomized, readBoolean, readInt, readString
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISPLAY_CLASS_BASED_HIDER_BUTTON

protected static final String DISPLAY_CLASS_BASED_HIDER_BUTTON

DISPLAY_REUSABLE_FORM_BUTTON

protected static final String DISPLAY_REUSABLE_FORM_BUTTON

DISPLAY_LEGEND_BUTTON

protected static final String DISPLAY_LEGEND_BUTTON

DISPLAY_THUMBNAIL_BUTTON

protected static final String DISPLAY_THUMBNAIL_BUTTON

DISPLAY_WIRE_BUILDER_BUTTON

protected static final String DISPLAY_WIRE_BUILDER_BUTTON

DISPLAY_FLOWCHART_BUTTON

protected static final String DISPLAY_FLOWCHART_BUTTON

CLASS_BASED_HIDER_BUTTON_TOOLTIP

protected static final String CLASS_BASED_HIDER_BUTTON_TOOLTIP

REUSABLE_FORM_BUTTON_TOOLTIP

protected static final String REUSABLE_FORM_BUTTON_TOOLTIP

LEGEND_BUTTON_TOOLTIP

protected static final String LEGEND_BUTTON_TOOLTIP

THUMBNAIL_BUTTON_TOOLTIP

protected static final String THUMBNAIL_BUTTON_TOOLTIP

WIRE_BUILDER_BUTTON_TOOLTIP

protected static final String WIRE_BUILDER_BUTTON_TOOLTIP

FLOWCHART_BUTTON_TOOLTIP

protected static final String FLOWCHART_BUTTON_TOOLTIP

CLASS_BASED_HIDER_BUTTON_TOOLTIP_DEFAULT

protected static final String CLASS_BASED_HIDER_BUTTON_TOOLTIP_DEFAULT

REUSABLE_FORM_BUTTON_TOOLTIP_DEFAULT

protected static final String REUSABLE_FORM_BUTTON_TOOLTIP_DEFAULT

LEGEND_BUTTON_TOOLTIP_DEFAULT

protected static final String LEGEND_BUTTON_TOOLTIP_DEFAULT

THUMBNAIL_BUTTON_TOOLTIP_DEFAULT

protected static final String THUMBNAIL_BUTTON_TOOLTIP_DEFAULT

WIRE_BUILDER_BUTTON_TOOLTIP_DEFAULT

protected static final String WIRE_BUILDER_BUTTON_TOOLTIP_DEFAULT

FLOWCHART_BUTTON_TOOLTIP_DEFAULT

protected static final String FLOWCHART_BUTTON_TOOLTIP_DEFAULT

_displayClassBasedHiderButton

protected boolean _displayClassBasedHiderButton

_displayReusableFormButton

protected boolean _displayReusableFormButton

_displayLegendButton

protected boolean _displayLegendButton

_displayThumbnailButton

protected boolean _displayThumbnailButton

_displayWirebuilderButton

protected boolean _displayWirebuilderButton

_displayFlowchartButton

protected boolean _displayFlowchartButton

_classBasedHiderButtonTooltip

protected String _classBasedHiderButtonTooltip

_reusableFormButtonTooltip

protected String _reusableFormButtonTooltip

_legendButtonTooltip

protected String _legendButtonTooltip

_thumbnailButtonTooltip

protected String _thumbnailButtonTooltip

_wirebuilderButtonTooltip

protected String _wirebuilderButtonTooltip

_flowchartButtonTooltip

protected String _flowchartButtonTooltip
Constructor Detail

DiagramWidgetState

public DiagramWidgetState(DiagramWidget widget,
                          edu.stanford.smi.protege.util.PropertyList properties)
Method Detail

getClassBasedHiderButtonTooltip

public String getClassBasedHiderButtonTooltip()

getConnectorClses

public Collection getConnectorClses()

getDefaultVisibilityChecker

public TypeBasedVisibilityChecker getDefaultVisibilityChecker()

getFlowchartButtonTooltip

public String getFlowchartButtonTooltip()

getLegendButtonTooltip

public String getLegendButtonTooltip()

getLowerBoundOnDiagramHeight

public int getLowerBoundOnDiagramHeight()

getLowerBoundOnDiagramWidth

public int getLowerBoundOnDiagramWidth()

getNodeClses

public Collection getNodeClses()

getPaletteDisplayed

public boolean getPaletteDisplayed()

getReusableFormButtonTooltip

public String getReusableFormButtonTooltip()

getStateForConnector

public WireState getStateForConnector(edu.stanford.smi.protege.model.Cls connectorClass)

getStateForConnector

public WireState getStateForConnector(edu.stanford.smi.protege.model.Instance connectorInstance)

getStateForConnector

public WireState getStateForConnector(String connectorClassName)

getStateForNode

public NodeState getStateForNode(edu.stanford.smi.protege.model.Cls nodeClass)

getStateForNode

public NodeState getStateForNode(edu.stanford.smi.protege.model.Instance nodeInstance)

getStateForNode

public NodeState getStateForNode(String nodeClassName)

getThumbnailButtonTooltip

public String getThumbnailButtonTooltip()

getWirebuilderButtonTooltip

public String getWirebuilderButtonTooltip()

isDisplayClassBasedHiderButton

public boolean isDisplayClassBasedHiderButton()

isDisplayFlowchartButton

public boolean isDisplayFlowchartButton()

isDisplayLegendButton

public boolean isDisplayLegendButton()

isDisplayReusableFormButton

public boolean isDisplayReusableFormButton()

isDisplayThumbnailButton

public boolean isDisplayThumbnailButton()

isDisplayWirebuilderButton

public boolean isDisplayWirebuilderButton()

isPaletteDisplayed

public boolean isPaletteDisplayed()

restore

public void restore()
Overrides:
restore in class ButtonRelatedWidgetState

save

public void save()
Overrides:
save in class ButtonRelatedWidgetState

setClassBasedHiderButtonTooltip

public void setClassBasedHiderButtonTooltip(String classBasedHiderButtonTooltip)

setDefaultVisibilityChecker

public void setDefaultVisibilityChecker(TypeBasedVisibilityChecker defaultVisibilityChecker)

setDisplayClassBasedHiderButton

public void setDisplayClassBasedHiderButton(Boolean displayClassBasedHiderButton)

setDisplayClassBasedHiderButton

public void setDisplayClassBasedHiderButton(boolean displayClassBasedHiderButton)

setDisplayFlowchartButton

public void setDisplayFlowchartButton(Boolean displayFlowchartButton)

setDisplayFlowchartButton

public void setDisplayFlowchartButton(boolean displayFlowchartButton)

setDisplayLegendButton

public void setDisplayLegendButton(Boolean displayLegendButton)

setDisplayLegendButton

public void setDisplayLegendButton(boolean displayLegendButton)

setDisplayReusableFormButton

public void setDisplayReusableFormButton(Boolean displayReusableFormButton)

setDisplayReusableFormButton

public void setDisplayReusableFormButton(boolean displayReusableFormButton)

setDisplayThumbnailButton

public void setDisplayThumbnailButton(Boolean displayThumbnailButton)

setDisplayThumbnailButton

public void setDisplayThumbnailButton(boolean displayThumbnailButton)

setDisplayWirebuilderButton

public void setDisplayWirebuilderButton(Boolean displayWirebuilderButton)

setDisplayWirebuilderButton

public void setDisplayWirebuilderButton(boolean displayWirebuilderButton)

setFlowchartButtonTooltip

public void setFlowchartButtonTooltip(String flowchartButtonTooltip)

setLegendButtonTooltip

public void setLegendButtonTooltip(String legendButtonTooltip)

setLowerBoundOnDiagramHeight

public void setLowerBoundOnDiagramHeight(int lowerBoundOnDiagramHeight)

setLowerBoundOnDiagramWidth

public void setLowerBoundOnDiagramWidth(int lowerBoundOnDiagramWidth)

setPaletteDisplayed

public void setPaletteDisplayed(boolean paletteDisplayed)

setReusableFormButtonTooltip

public void setReusableFormButtonTooltip(String reusableFormButtonTooltip)

setThumbnailButtonTooltip

public void setThumbnailButtonTooltip(String thumbnailButtonTooltip)

setWirebuilderButtonTooltip

public void setWirebuilderButtonTooltip(String wirebuilderButtonTooltip)

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.