|
|||||||||||
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
jcreek.cke.conceptview.DrawingSurface
Title: Description: Copyright: Copyright (c) 2002 Company:
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
protected Graph |
graph
List of relations from the model. |
protected double |
hSpacing
|
protected javax.swing.event.EventListenerList |
listeners
List of event listeners. |
protected int |
MAX_NUM_PAGE
|
protected CreekModel |
model
|
protected VisualEntity |
rootEnt
|
protected double |
vSpacing
|
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.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
DrawingSurface()
|
Method Summary | |
DPoint |
activateEntity(VisualEntity activator)
|
void |
addResizeListener(ResizeListener rl)
|
void |
addViewListener(ConceptViewListener l)
Adds a view listener to this object's listener list. |
void |
addViewPaintListener(ConceptViewPaintListener l)
Adds a view paint listener to this object's listener list. |
void |
attach(CreekModel model)
We're being attached to a document for the first time. |
void |
center()
|
DDimension |
contentsSize()
|
java.awt.image.BufferedImage |
createPrintImage()
|
void |
dataChanged(VertexList vl,
RelationList rl)
Deprectaed, use setGraph() |
void |
detach()
The view is being shut down. |
void |
drawObjects(java.awt.Graphics2D graphics)
|
void |
drawSelectedNodes()
|
int |
entitySize()
|
VisualEntity |
findVisualEntity(double x,
double y)
|
void |
fireContentsResize()
|
protected void |
firePaintAfter(java.awt.Graphics2D g)
Give all the paint listeners a chance to draw after the view has drawn the graph. |
protected void |
firePaintBefore(java.awt.Graphics2D g)
Give all the paint listeners a chance to draw before the view draws. |
java.awt.Rectangle |
getBounds()
|
java.awt.geom.Rectangle2D.Double |
getContentRect(java.awt.Graphics g)
|
Graph |
getGraph()
|
double |
getHSpacing()
changed |
java.awt.Point |
getMidPoint()
|
Matrix33 |
getMoveTransform()
|
DPoint |
getOffset()
|
java.awt.Dimension |
getPreferredSize()
|
VisualEntity |
getRoot()
|
double |
getScale()
|
Matrix33 |
getViewTransform()
|
double |
getWinHeight()
|
double |
getWinWidth()
|
double |
getVSpacing()
changed |
protected void |
paintComponent(java.awt.Graphics g)
|
void |
paintOver(java.awt.Graphics g)
|
int |
print(java.awt.Graphics pg,
java.awt.print.PageFormat pageFormat,
int pageIndex)
|
void |
propertyChange(java.beans.PropertyChangeEvent e)
|
void |
removeResizeListeners(ResizeListener rl)
|
void |
removeViewListener(ConceptViewListener l)
Removes a view listener from this object's listener list. |
void |
removeViewPaintListener(ConceptViewPaintListener l)
Removes a view paint listener from this object's listener list. |
void |
setGraph(Graph graph)
Updates the display to match the current state of the model. |
void |
setOffsets(double xoffset,
double yoffset,
boolean redraw)
|
void |
setRoot(VisualEntity vent)
|
void |
setScale(double new_scale)
|
void |
stateChanged(javax.swing.event.ChangeEvent event)
The settings object we're listening to has changed. |
java.lang.String |
toString()
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getWidth, getVisibleRect, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, 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, getBackground, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jcreek.cke.conceptview.ConceptView |
repaint, repaint |
Field Detail |
protected javax.swing.event.EventListenerList listeners
protected Graph graph
protected CreekModel model
protected double hSpacing
protected double vSpacing
protected VisualEntity rootEnt
protected int MAX_NUM_PAGE
Constructor Detail |
public DrawingSurface()
Method Detail |
public java.awt.Dimension getPreferredSize()
protected void paintComponent(java.awt.Graphics g)
public void paintOver(java.awt.Graphics g)
public void drawSelectedNodes()
drawSelectedNodes
in interface ConceptView
public void drawObjects(java.awt.Graphics2D graphics)
public DDimension contentsSize()
public DPoint getOffset()
public void setOffsets(double xoffset, double yoffset, boolean redraw)
setOffsets
in interface ConceptView
public void center()
public void addResizeListener(ResizeListener rl)
public void removeResizeListeners(ResizeListener rl)
public void fireContentsResize()
fireContentsResize
in interface ConceptView
public void addViewListener(ConceptViewListener l)
addViewListener
in interface ConceptView
l
- listener to add to view's listpublic void addViewPaintListener(ConceptViewPaintListener l)
addViewPaintListener
in interface ConceptView
l
- listener to add to view's listprotected void firePaintAfter(java.awt.Graphics2D g)
g
- graphics context to draw toprotected void firePaintBefore(java.awt.Graphics2D g)
g
- graphics context to draw topublic void removeViewListener(ConceptViewListener l)
removeViewListener
in interface ConceptView
l
- listener to remove from view's listpublic void removeViewPaintListener(ConceptViewPaintListener l)
removeViewPaintListener
in interface ConceptView
l
- listener to remove from view's listpublic void stateChanged(javax.swing.event.ChangeEvent event)
event
- change eventpublic void detach()
detach
in interface ConceptView
public void dataChanged(VertexList vl, RelationList rl)
dataChanged
in interface ConceptView
public void setGraph(Graph graph)
setGraph
in interface ConceptView
public void attach(CreekModel model)
attach
in interface ConceptView
public Matrix33 getViewTransform()
getViewTransform
in interface ConceptView
public Matrix33 getMoveTransform()
getMoveTransform
in interface ConceptView
public double getWinWidth()
getWinWidth
in interface ConceptView
public double getWinHeight()
getWinHeight
in interface ConceptView
public java.awt.Point getMidPoint()
getMidPoint
in interface ConceptView
public java.lang.String toString()
public void setScale(double new_scale)
setScale
in interface ConceptView
public double getScale()
getScale
in interface ConceptView
public java.awt.Rectangle getBounds()
getBounds
in interface ConceptView
public VisualEntity findVisualEntity(double x, double y)
findVisualEntity
in interface ConceptView
public double getHSpacing()
getHSpacing
in interface ConceptView
public double getVSpacing()
getVSpacing
in interface ConceptView
public VisualEntity getRoot()
getRoot
in interface ConceptView
public void setRoot(VisualEntity vent)
setRoot
in interface ConceptView
public int entitySize()
public Graph getGraph()
public DPoint activateEntity(VisualEntity activator)
activateEntity
in interface ConceptView
public java.awt.image.BufferedImage createPrintImage()
createPrintImage
in interface ConceptView
public java.awt.geom.Rectangle2D.Double getContentRect(java.awt.Graphics g)
public int print(java.awt.Graphics pg, java.awt.print.PageFormat pageFormat, int pageIndex) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
java.awt.print.PrinterException
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |