gishur.graph.gui
Class DisplayGraphElement
java.lang.Object
|
+--gishur.gui2.DrawAtom
|
+--gishur.gui2.DrawObject
|
+--gishur.gui2.DisplayObject
|
+--gishur.gui2.DisplayInteractiveObject
|
+--gishur.graph.gui.DisplayGraphElement
- Direct Known Subclasses:
- DisplayEdge, DisplayNode
- public abstract class DisplayGraphElement
- extends DisplayInteractiveObject
Base class for DisplayNode
and DisplayEdge
.
- Version:
- 1.0
- Author:
- Thomas Wolf
Methods inherited from class gishur.gui2.DisplayInteractiveObject |
activate, activate, active, checkActiveElement, createElementTransform, deactivate, elementTransform, refreshPropertyStatus, select, selected, setActiveElement, setSupportActivation, setSupportElementTransform, setSupportSelection, source, supportActivation, supportElementTransform, supportSelection, unselect |
Methods inherited from class gishur.gui2.DrawObject |
addDrawDependency, addPainter, blockRepaint, checkState, checkStateCleared, child, clear, clearCache, clearState, dirty, disableEvents, draw, draw, enableEvents, ensureRecalculate, findPainter, firstPainter, fullscreen, hide, hide, insert, levelMask, levelUsed, locate, makeDirty, makeDirty, next, nextPainter, prepeareRenderContext, prev, processEvent, propertyReader, recalculate, recalculate, remove, removeDrawDependency, repaint, screenTransformation, setFullscreen, setPaintBeforeMembers, setScreenTransformation, setState, show, show, state, state, unblockRepaint, unblockRepaint, visible |
Methods inherited from class gishur.gui2.DrawAtom |
addProperties, collectHits, displayManager, drawComponent, getBounds, getLocalProperty, getProperty, getProperty, getRequiredProperty, processMessage, properties, removeProperty, sendEvent, sendMessage, setBounds, setPropertiesTo, setProperty, setProperty, setProperty, setProperty, toString, toString, toTreeString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DisplayGraphElement
protected DisplayGraphElement(java.lang.String propertyprefix)
- Constructs a new
DisplayGraphElement
which uses
the specified property prefix for all properties it needs.
Selection support, activation support and element transformation
support will be enabled by default.
- Parameters:
propertyprefix
- the prefix string for all properties used
getVisualizationID
protected java.lang.String getVisualizationID()
- Returns the visualization id; a string, which is a key at the
properties of the
GraphElement
, where
the Visualization
is stored.
- Returns:
- the visualization id.
getDisplayID
protected java.lang.String getDisplayID()
- Returns the visualization id; a string, which is a key at the
properties of the
GraphElement
, where
the Visualization
is stored.
- Returns:
- the visualization id.
sourceGraphElement
public GraphElement sourceGraphElement()
- Returns the source object of
this
DisplayInteractiveObject
This method must be overwritten properly. The default implementation returns
null
.
- Returns:
- source object.
dispatchEvent
protected void dispatchEvent(java.awt.AWTEvent e)
- Dispatches the given event
e
.
This method is redefined here in order to enable RemoveGraphElementActor
and others to dispatch events.
- Overrides:
dispatchEvent
in class DrawAtom
- Parameters:
e
- event to dispatch
toStringDetail
public java.lang.String toStringDetail()
- Returns a string representation of the object, excluding class name
and details of the base
DrawAtom
(like properties or members list).
This method will be called by #toString(boolean,boolean,int)
and
DrawAtom.toString()
.
- Overrides:
toStringDetail
in class DrawAtom
- Returns:
- string representation of class details
dependency
protected DrawDependency dependency()
- Returns the
DrawDependency
of this
DisplayGraphElement
.
- Overrides:
dependency
in class DrawObject
- Returns:
- the
DrawDependency
of this
DisplayGraphElement
.
preprocessEvent
protected void preprocessEvent(int id,
DrawAtom sender)
- Preprocesses the event specified via its id sent by the given source.
This method will be called by events produced by the
DrawAtom
itself
and by DrawAtom
where this
depends from. The method
will be called before events are filtered out.
- Overrides:
preprocessEvent
in class DrawAtom
- Parameters:
id
- the event idsender
- the source of the event- See Also:
DrawEvent
next
public DrawObject next()
- Returns the next
DrawObject
in the group or null
if it is the last group element. This method 'jumps over'
elements in the drawing hierachy, that are no DrawObjects
.
- Overrides:
next
in class DisplayObject
- Returns:
- next DrawObject