de.grogra.imp
public abstract class View extends PanelDecorator implements EventListener, javax.swing.event.TreeModelListener, ModifiableMap.Producer, Manageable
View is a Panel which represents
a Graph in geometrical-graphical way
(e.g., using two- or three-dimensional graphics).
View is a subclass of PanelDecorator:
As such, it implements some common operations of views, while
the actual GUI component is provided by the decorated panel.| Modifier and Type | Class and Description |
|---|---|
protected class |
View.SceneListener |
static class |
View.Type |
EventListener.Bicast, EventListener.Multicaster| Modifier and Type | Field and Description |
|---|---|
static View.Type |
$TYPE |
static int |
ANAGLYPH_MAX |
static EnumerationType |
ANAGLYPH_VIEW_TYPE |
static UIProperty |
COMPONENT |
static SCOType.Field |
epsilon$FIELD |
static SCOType.Field |
graphDescriptor$FIELD |
static I18NBundle |
I18N |
protected EventListener.Multicaster |
listeners |
static int |
LOD_MAX |
static int |
LOD_MIN |
static EnumerationType |
LOD_TYPE |
static SCOType.Field |
magnitude$FIELD |
static int |
PREVIEW_MAX |
static int |
SCALE_COUNT |
static java.lang.String |
SCALES_CHANGED |
static java.lang.String |
SCALES_VISIBLE |
static int |
STEREO_MAX |
static EnumerationType |
STEREO_VIEW_TYPE |
static EnumerationType |
VIEW_PREVIEW1_TYPE |
static EnumerationType |
VIEW_PREVIEW2_TYPE |
static SCOType.Field |
visibleLayers$FIELD |
static SCOType.Field |
visibleScales$FIELD |
static SCOType.Field |
visualEpsilon$FIELD |
decorator, panelDEC_WAIT_CURSOR, DEFAULT_CURSOR, INC_WAIT_CURSOR, INHERIT_CURSOR, PANEL_ID, WAIT_CURSOR| Constructor and Description |
|---|
View() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(EventListener el) |
void |
addMappings(ModifiableMap out) |
static View |
create(View view,
Context ctx,
StringMap args) |
protected abstract ViewEventHandler |
createEventHandler() |
static void |
disableRepaint() |
void |
dispose() |
static void |
disposeRenderer(Item item,
java.lang.Object info,
Context ctx) |
static void |
enableRepaint() |
void |
eventOccured(java.util.EventObject e)
This method is invoked on registered event listeners when
event has occured. |
void |
fieldModified(PersistenceField field,
int[] indices,
Transaction t) |
static View |
get(Context c) |
static View |
get(GraphState gs) |
Tool |
getActiveTool() |
float |
getEpsilon() |
float |
getEpsilonSquared() |
ViewEventHandler |
getEventHandler() |
abstract IOFlavor |
getFlavor() |
Graph |
getGraph() |
float |
getMagnitude() |
float |
getMagnitudeSquared() |
Path |
getPathFor(GraphState gs,
java.lang.Object obj,
boolean node) |
static Selectable |
getSelectableGraph(Context ctx) |
static Selectable |
getSelectableLayers(Context ctx) |
static Selectable |
getSelectableScales(Context ctx) |
java.awt.Dimension |
getSize() |
int |
getStamp()
Returns a stamp for this object.
|
protected abstract UIProperty |
getToolProperty() |
ViewComponent |
getViewComponent()
Returns the view component which is used as a GUI component
to perform the actual visualization of the graph.
|
static ViewComponent |
getViewComponent(Context c) |
boolean[] |
getVisibleScales() |
float |
getVisualEpsilon() |
float |
getVisualEpsilonSquared() |
GraphState |
getWorkbenchGraphState() |
protected void |
initialize(Panel panel,
Map params) |
protected abstract void |
installImpl() |
boolean |
isInVisibleLayer(java.lang.Object o,
boolean asNode,
GraphState gs) |
boolean |
isInVisibleScale(java.lang.Object o,
boolean asNode,
GraphState gs) |
static boolean |
isRepaint() |
abstract boolean |
isToolGraph(Graph graph) |
Manageable |
manageableReadResolve() |
java.lang.Object |
manageableWriteReplace() |
abstract void |
pick(int x,
int y,
PickList list) |
void |
removeEventListener(EventListener el) |
static void |
render(Item item,
java.lang.Object info,
Context ctx) |
static void |
renderToFile(Item item,
java.lang.Object info,
Context ctx) |
protected void |
repaint(int flags) |
static void |
set(GraphState gs,
View view) |
void |
setActiveTool(Tool tool) |
void |
setDimensions(float magnitude) |
void |
setDimensions(float magnitude,
float epsilon,
float visualEpsilon) |
void |
setEpsilon(float epsilon) |
void |
setGraph() |
void |
setGraph(GraphDescriptor g) |
void |
setMagnitude(float magnitude) |
void |
setViewComponent(ViewComponent component) |
void |
setVisualEpsilon(float visualEpsilon) |
void |
substituteSelection(GraphState[] gs,
java.lang.Object[] object,
boolean[] asNode,
int index) |
void |
treeNodesChanged(javax.swing.event.TreeModelEvent e) |
void |
treeNodesInserted(javax.swing.event.TreeModelEvent e) |
void |
treeNodesRemoved(javax.swing.event.TreeModelEvent e) |
void |
treeStructureChanged(javax.swing.event.TreeModelEvent e) |
protected void |
uninstall() |
protected abstract void |
uninstallImpl() |
checkClose, getComponent, getContent, getDecorator, getMenu, getPanel, getPanelId, getUIPropertyMap, getWindow, getWorkbench, initDecorator, initPanel, resolve, setContent, setCursor, setMenu, showclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetManageableTypepublic static final View.Type $TYPE
public static int ANAGLYPH_MAX
public static final EnumerationType ANAGLYPH_VIEW_TYPE
public static final UIProperty COMPONENT
public static final SCOType.Field epsilon$FIELD
public static final SCOType.Field graphDescriptor$FIELD
public static final I18NBundle I18N
protected final EventListener.Multicaster listeners
public static int LOD_MAX
public static int LOD_MIN
public static final EnumerationType LOD_TYPE
public static final SCOType.Field magnitude$FIELD
public static int PREVIEW_MAX
public static int SCALE_COUNT
public static java.lang.String SCALES_CHANGED
public static java.lang.String SCALES_VISIBLE
public static int STEREO_MAX
public static final EnumerationType STEREO_VIEW_TYPE
public static final EnumerationType VIEW_PREVIEW1_TYPE
public static final EnumerationType VIEW_PREVIEW2_TYPE
public static final SCOType.Field visibleLayers$FIELD
public static final SCOType.Field visibleScales$FIELD
public static final SCOType.Field visualEpsilon$FIELD
public void addEventListener(EventListener el)
public void addMappings(ModifiableMap out)
addMappings in interface ModifiableMap.Producerprotected abstract ViewEventHandler createEventHandler()
public static void disableRepaint()
public final void dispose()
dispose in interface Disposabledispose in class PanelDecoratorpublic static void enableRepaint()
public void eventOccured(java.util.EventObject e)
EventListenerevent has occured. This general listener interface
does not restrict the possible kinds of events. Concrete sources
of events should specify which events they may fire.e - an eventpublic void fieldModified(PersistenceField field, int[] indices, Transaction t)
fieldModified in interface Manageablepublic static View get(GraphState gs)
public final Tool getActiveTool()
public float getEpsilon()
public float getEpsilonSquared()
public ViewEventHandler getEventHandler()
public abstract IOFlavor getFlavor()
public Graph getGraph()
public float getMagnitude()
public float getMagnitudeSquared()
public Path getPathFor(GraphState gs, java.lang.Object obj, boolean node)
public static Selectable getSelectableGraph(Context ctx)
public static Selectable getSelectableLayers(Context ctx)
public static Selectable getSelectableScales(Context ctx)
public java.awt.Dimension getSize()
public int getStamp()
ManageablegetStamp in interface Manageableprotected abstract UIProperty getToolProperty()
public ViewComponent getViewComponent()
public static ViewComponent getViewComponent(Context c)
public boolean[] getVisibleScales()
public float getVisualEpsilon()
public float getVisualEpsilonSquared()
public final GraphState getWorkbenchGraphState()
protected abstract void installImpl()
public boolean isInVisibleLayer(java.lang.Object o,
boolean asNode,
GraphState gs)
public boolean isInVisibleScale(java.lang.Object o,
boolean asNode,
GraphState gs)
public static boolean isRepaint()
public abstract boolean isToolGraph(Graph graph)
public Manageable manageableReadResolve()
manageableReadResolve in interface Manageablepublic java.lang.Object manageableWriteReplace()
manageableWriteReplace in interface Manageablepublic abstract void pick(int x,
int y,
PickList list)
public void removeEventListener(EventListener el)
protected void repaint(int flags)
public static void set(GraphState gs, View view)
public final void setActiveTool(Tool tool)
public final void setDimensions(float magnitude)
public final void setDimensions(float magnitude,
float epsilon,
float visualEpsilon)
public void setEpsilon(float epsilon)
public void setGraph()
public void setGraph(GraphDescriptor g)
public void setMagnitude(float magnitude)
public void setViewComponent(ViewComponent component)
public void setVisualEpsilon(float visualEpsilon)
public void substituteSelection(GraphState[] gs, java.lang.Object[] object, boolean[] asNode, int index)
public void treeNodesChanged(javax.swing.event.TreeModelEvent e)
treeNodesChanged in interface javax.swing.event.TreeModelListenerpublic void treeNodesInserted(javax.swing.event.TreeModelEvent e)
treeNodesInserted in interface javax.swing.event.TreeModelListenerpublic void treeNodesRemoved(javax.swing.event.TreeModelEvent e)
treeNodesRemoved in interface javax.swing.event.TreeModelListenerpublic void treeStructureChanged(javax.swing.event.TreeModelEvent e)
treeStructureChanged in interface javax.swing.event.TreeModelListenerprotected void uninstall()
protected abstract void uninstallImpl()