net.xqhs.graphs.representation.graphical
Class GraphicalRepresentationElement
java.lang.Object
net.xqhs.util.config.Config
net.xqhs.graphs.representation.RepresentationElement
net.xqhs.graphs.representation.graphical.GraphicalRepresentationElement
- All Implemented Interfaces:
- net.xqhs.util.config.Configurable
public class GraphicalRepresentationElement
- extends RepresentationElement
Extension of RepresentationElement
for graphical representations.
Each graph component (as a VisualizableGraphComponent
corresponds to a Gel GElement
, which usually
also has a GLabel
.
- Author:
- Andrei Olaru
Nested classes/interfaces inherited from class net.xqhs.util.config.Config |
net.xqhs.util.config.Config.ConfigLockedException |
Methods inherited from class net.xqhs.util.config.Config |
build, ensureLocked, lock, locked, lockedEx, makeDefaults |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
type
GraphicalRepresentationElement.Type type
gelement
net.xqhs.graphical.GElement gelement
glabel
net.xqhs.graphical.GLabel glabel
gridPos
java.awt.Point gridPos
subSize
java.awt.Point subSize
label
java.lang.String label
widthFactor
float widthFactor
heightFactor
float heightFactor
connected
java.util.List<GraphicalRepresentationElement> connected
edgeType
GraphicalRepresentationElement.EdgeType edgeType
GraphicalRepresentationElement
public GraphicalRepresentationElement(GraphRepresentation root,
VisualizableGraphComponent component,
GraphicalRepresentationElement.Type elementType)
setEdge
public GraphicalRepresentationElement setEdge(GraphicalRepresentationElement.EdgeType type,
GraphicalRepresentationElement from,
GraphicalRepresentationElement to)
setSize
public GraphicalRepresentationElement setSize(java.awt.Point size)
setHighlighted
public GraphicalRepresentationElement setHighlighted(boolean doHighlight)
getGElement
public net.xqhs.graphical.GElement getGElement()
positionInGrid
public GraphicalRepresentationElement positionInGrid(java.awt.Point position,
float widthFactor,
float heightFactor)
positionInRadial
public GraphicalRepresentationElement positionInRadial(java.awt.Point position,
java.awt.geom.Point2D center,
float angleFactor,
float rangeFactor)