Graph Common

pl.psnc.graph.ui
Class CustomGraphUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by org.jgraph.plaf.GraphUI
          extended by org.jgraph.plaf.basic.BasicGraphUI
              extended by pl.psnc.graph.ui.CustomGraphUI
All Implemented Interfaces:
java.io.Serializable

public class CustomGraphUI
extends org.jgraph.plaf.basic.BasicGraphUI

CustomGraphUI class - overridden class BasicGrapUI - it adds method for background image display

Author:
Dominik Stoklosa (~osa~)
See Also:
Serialized Form
Email address
osa@man.poznan.pl

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jgraph.plaf.basic.BasicGraphUI
org.jgraph.plaf.basic.BasicGraphUI.CellEditorHandler, org.jgraph.plaf.basic.BasicGraphUI.ComponentHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphDropTargetListener, org.jgraph.plaf.basic.BasicGraphUI.GraphIncrementAction, org.jgraph.plaf.basic.BasicGraphUI.GraphLayoutCacheHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphModelHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphSelectionHandler, org.jgraph.plaf.basic.BasicGraphUI.KeyHandler, org.jgraph.plaf.basic.BasicGraphUI.MouseHandler, org.jgraph.plaf.basic.BasicGraphUI.MouseInputHandler, org.jgraph.plaf.basic.BasicGraphUI.PropertyChangeHandler, org.jgraph.plaf.basic.BasicGraphUI.RootHandle
 
Field Summary
 
Fields inherited from class org.jgraph.plaf.basic.BasicGraphUI
cellEditor, cellEditorListener, componentListener, defaultDropTargetListener, defaultTransferHandler, DNDPREVIEW, dropAction, dropTarget, editingCell, editingComponent, editorHasDifferentSize, focus, graph, graphLayoutCache, graphLayoutCacheListener, graphModel, graphModelListener, graphSelectionListener, graphSelectionModel, handle, insertionLocation, keyListener, lastFocus, marquee, MAXCELLS, MAXCLIPCELLS, MAXHANDLES, mouseListener, preferredMinSize, preferredSize, propertyChangeListener, rendererPane, SCROLLBORDER, SCROLLSTEP, snapSelectedView, stopEditingInCompleteEditing, validCachedPreferredSize
 
Constructor Summary
CustomGraphUI()
          Creates a new instance of custom graph ui
 
Method Summary
 CustomGraph getScenarioGraph()
          Get current custom graph
protected  void paintBackground(java.awt.Graphics g)
           
 
Methods inherited from class org.jgraph.plaf.basic.BasicGraphUI
autoscroll, cancelEditing, completeEditing, completeEditing, completeUIInstall, completeUIUninstall, createCellEditorListener, createCellRendererPane, createComponentListener, createContext, createGraphLayoutCacheListener, createGraphModelListener, createGraphSelectionListener, createHandle, createKeyListener, createMouseListener, createPropertyChangeListener, createTransferHandler, createUI, drawGraph, getDropAction, getEditingCell, getEditorLocation, getFocusedCell, getHandle, getInsertionLocation, getMaximumSize, getMinimumSize, getPreferredMinSize, getPreferredSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isAddToSelectionEvent, isConstrainedMoveEvent, isEditing, isForceMarqueeEvent, isSnapSelectedView, isToggleSelectionEvent, paint, paintBackgroundComponent, paintBackgroundImage, paintCell, paintCells, paintForeground, paintGrid, paintOverlay, paintPorts, prepareForUIInstall, selectCellForEvent, selectCellsForEvent, selectCellsForEvent, setGraphLayoutCache, setInsertionLocation, setMarquee, setModel, setPreferredMinSize, setSelectionModel, setSnapSelectedView, startEditing, startEditingAtCell, stopEditing, toggleSelectionCellForEvent, uninstallComponents, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateCachedPreferredSize, updateHandle, updateSize
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomGraphUI

public CustomGraphUI()
Creates a new instance of custom graph ui

Method Detail

getScenarioGraph

public CustomGraph getScenarioGraph()
Get current custom graph

Returns:
current custom graph

paintBackground

protected void paintBackground(java.awt.Graphics g)
Overrides:
paintBackground in class org.jgraph.plaf.basic.BasicGraphUI

Graph Common

Copyright 2008 by VLAB Dominik Stoklosa