public class HomerMainFrame
extends javax.swing.JFrame
| Red (ahuseyno) |
| Red (ahuseyno) |
javax.swing.JFrame.AccessibleJFramejava.awt.Window.AccessibleAWTWindow, java.awt.Window.TypeaccessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT| Constructor and Description |
|---|
HomerMainFrame(HomerApplication application)
Create the UI designer frame.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(TabScenePanel panel,
java.lang.String label,
java.awt.Dimension dimension,
java.awt.Point point)
Add a label to the scene.
|
void |
addNonVisualNamedObject(NamedObj object)
Add a non-visual NamedObj item to the panel.
|
void |
addTab(java.lang.String tabName)
Add a tab to the screen with the given name.
|
void |
addTab(java.lang.String tabTag,
java.lang.String tabName)
Add a tab to the screen with the given name and tag.
|
void |
addVisualNamedObject(java.lang.String tag,
HomerWidgetElement element)
Add a visual NamedObj item to the panel.
|
void |
addVisualNamedObject(TabScenePanel panel,
NamedObj object,
java.awt.Dimension dimension,
java.awt.Point point)
Add a visual NamedObj item to the panel.
|
boolean |
contains(NamedObj key)
See if the multi-content already has the NamedObj.
|
java.util.ArrayList<TabDefinition> |
getAllTabs()
Get all tab definitions.
|
java.net.URL |
getLayoutURL()
Get the current layout file URL.
|
java.net.URL |
getModelURL()
Get the model URL.
|
LayoutParser.ScreenOrientation |
getOrientation()
Get the selected screen orientation.
|
java.util.HashSet<NamedObj> |
getRemoteObjectSet()
Get the set of references to on-screen remote objects.
|
java.awt.Dimension |
getScreenSize()
Get the screen size.
|
TabbedLayoutScene |
getTabbedLayoutScene()
Get the tabbed layout scene.
|
org.netbeans.api.visual.widget.Scene |
getTabContent(java.lang.String tabTag)
Get the scene on the tab.
|
CompositeEntity |
getTopLevelActor()
Get the top level actor.
|
static boolean |
isLabelWidget(NamedObj object)
Return if the object argument is a label widget.
|
void |
newLayout(java.net.URL modelURL)
Prepare the scene for creating a new layout and prompt the user for
file selection.
|
void |
openLayout(java.net.URL modelURL,
java.net.URL layoutURL)
Prepare the scene for creating a new layout and prompt the user for
file selection.
|
void |
remove(NamedObj object)
Remove the NamedObj from the widget map and list of remote objects.
|
void |
removeTab(int index)
Remove the tab at the given index.
|
void |
removeVisualNamedObject(PositionableElement element)
Remove the visual named object from the scene.
|
void |
saveLayoutAs(java.io.File layoutFile)
Save the layout file.
|
void |
setOrientation(LayoutParser.ScreenOrientation orientation)
Set the orientation of the scene.
|
void |
setScreenSize(java.awt.Dimension dimension)
Set the screen size.
|
void |
setTabTitleAt(int position,
java.lang.String text)
Set the tab title.
|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic HomerMainFrame(HomerApplication application)
application - The application hosting this frame.public void addLabel(TabScenePanel panel, java.lang.String label, java.awt.Dimension dimension, java.awt.Point point) throws IllegalActionException, NameDuplicationException
panel - The panel on which to add the label.label - The label text.dimension - The dimensions of the label.point - The position to place the label.IllegalActionException - If the attribute is not of an
acceptable attribute for the container, or if the container is not
an instance of Settable.NameDuplicationException - If the name coincides with an
attribute already in the container.public void addNonVisualNamedObject(NamedObj object)
object - The NamedObj to be added to the list.public void addTab(java.lang.String tabName)
tabName - The name of the tab.public void addTab(java.lang.String tabTag,
java.lang.String tabName)
tabTag - The tag of the tab.tabName - The name of the tab.public void addVisualNamedObject(java.lang.String tag,
HomerWidgetElement element)
throws IllegalActionException
tag - The tag associated with the element.element - The NamedObj to be added.IllegalActionException - If the content area is not set.public void addVisualNamedObject(TabScenePanel panel, NamedObj object, java.awt.Dimension dimension, java.awt.Point point) throws IllegalActionException, NameDuplicationException
panel - The target panel.object - The NamedObj to be added to the list.dimension - The size of the widget.point - Location on the scene.IllegalActionException - If the appropriate widget cannot be loaded.NameDuplicationException - If the NamedObj duplicates a name of
an item already on the scene.public boolean contains(NamedObj key)
key - The NamedObj to check existence.public java.util.ArrayList<TabDefinition> getAllTabs()
public java.net.URL getLayoutURL()
public java.net.URL getModelURL()
public LayoutParser.ScreenOrientation getOrientation()
setOrientation(ptolemy.homer.kernel.LayoutParser.ScreenOrientation)public java.util.HashSet<NamedObj> getRemoteObjectSet()
public java.awt.Dimension getScreenSize()
setScreenSize(Dimension)public TabbedLayoutScene getTabbedLayoutScene()
public org.netbeans.api.visual.widget.Scene getTabContent(java.lang.String tabTag)
tabTag - The tag of the tab being retrieved.public void newLayout(java.net.URL modelURL)
modelURL - The url of the model file to be opened.public void openLayout(java.net.URL modelURL,
java.net.URL layoutURL)
modelURL - The url of the model file to be opened.layoutURL - The url of the layout file to be opened.public void remove(NamedObj object)
object - The NamedObj item to be removed.public void removeTab(int index)
index - The tab index to be removed.public void removeVisualNamedObject(PositionableElement element)
element - The screen element to be removed.public void saveLayoutAs(java.io.File layoutFile)
layoutFile - The target file for the "Save As" operation.public void setOrientation(LayoutParser.ScreenOrientation orientation)
orientation - The orientation of the scene.getOrientation()public void setScreenSize(java.awt.Dimension dimension)
dimension - The screen size.getScreenSize()public void setTabTitleAt(int position,
java.lang.String text)
position - The tab index being changed.text - The new tab text.public static boolean isLabelWidget(NamedObj object)
HomerConstants.TAB_NODE and the
value of the TAB_NODE is the name of the container of the
object.object - The object to be checked.public CompositeEntity getTopLevelActor()