|
||||||||||
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
org.acm.seguin.uml.line.ScalablePanel
org.acm.seguin.uml.line.EndPointPanel
org.acm.seguin.uml.UMLType
public class UMLType
Displays the summary of a type object
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected int |
borderWidth
Description of the Field |
protected int |
lineSize
Description of the Field |
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 | |
---|---|
UMLType(UMLPackage initParent,
TypeSummary initType,
boolean foreign)
Create a new instance of a UMLType |
Method Summary | |
---|---|
AssociationRelationship |
convertToAssociation(UMLPackage packagePanel,
UMLField fieldPanel)
Convert an attribute to an association |
void |
convertToAttribute(UMLPackage packagePanel,
UMLField fieldPanel)
Convert from an association to an attribute |
void |
deselect()
Select this item |
java.awt.Color |
getBackgroundColor()
Return the background color |
UMLField |
getField(java.lang.String name)
Count the number of attributes |
java.lang.String |
getID()
Returns an identifier for a type |
java.awt.Dimension |
getMinimumSize()
Returns the minimum size |
UMLPackage |
getPackage()
Get the UML package that is holding this |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size |
Summary |
getSourceSummary()
Returns the type summary for this class |
TypeSummary |
getSummary()
Get the summary |
boolean |
isForeign()
Determine if this is foreign |
boolean |
isSelected()
Determine if this is selected |
void |
load(java.lang.String buffer)
Load the type |
void |
paint(java.awt.Graphics g)
Paint this object |
void |
print(java.awt.Graphics g,
int x,
int y)
Print this object |
void |
resize()
Resizes and repositions the compontents, and repaints them. |
void |
save(java.io.PrintWriter output)
Save the files |
void |
scale(double value)
Sets the scaling factor |
void |
select()
Select this item |
void |
setSelected(boolean way)
Sets the Selected attribute of the UMLType object |
void |
toggleSelect()
Toggle the selected state |
Methods inherited from class org.acm.seguin.uml.line.ScalablePanel |
---|
getScale, getUnscaledBounds, getUnscaledLocation, move, reshape, resize, resize, scaleInteger, setBounds, setBounds, setLocation, setLocation, setSize, setSize, shift, unscaleInteger |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setName, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int borderWidth
protected int lineSize
Constructor Detail |
---|
public UMLType(UMLPackage initParent, TypeSummary initType, boolean foreign)
initParent
- the parentinitType
- the initial type dataforeign
- Description of ParameterMethod Detail |
---|
public void setSelected(boolean way)
setSelected
in class EndPointPanel
way
- The new Selected valuepublic java.awt.Color getBackgroundColor()
public UMLField getField(java.lang.String name)
name
- Description of Parameter
public java.lang.String getID()
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class javax.swing.JComponent
public UMLPackage getPackage()
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public Summary getSourceSummary()
getSourceSummary
in interface ISourceful
public TypeSummary getSummary()
public boolean isForeign()
public boolean isSelected()
isSelected
in class EndPointPanel
public AssociationRelationship convertToAssociation(UMLPackage packagePanel, UMLField fieldPanel)
packagePanel
- the package panelfieldPanel
- the field panel
public void convertToAttribute(UMLPackage packagePanel, UMLField fieldPanel)
packagePanel
- the package panelfieldPanel
- the field panelpublic void deselect()
public void load(java.lang.String buffer)
buffer
- the bufferpublic void paint(java.awt.Graphics g)
paint
in class javax.swing.JComponent
g
- the graphics objectpublic void print(java.awt.Graphics g, int x, int y)
g
- the graphics objectx
- the x coordinatey
- the y coordinatepublic void resize()
public void save(java.io.PrintWriter output)
output
- the output streampublic void scale(double value)
scale
in class ScalablePanel
value
- scaling factorpublic void select()
public void toggleSelect()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |