net.xqhs.graphs.representation.graphical
Class GraphicalRepresentationElement

java.lang.Object
  extended by net.xqhs.util.config.Config
      extended by net.xqhs.graphs.representation.RepresentationElement
          extended by 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 Class Summary
(package private) static class GraphicalRepresentationElement.EdgeType
           
(package private) static class GraphicalRepresentationElement.Type
          The type of the representation.
 
Nested classes/interfaces inherited from class net.xqhs.util.config.Config
net.xqhs.util.config.Config.ConfigLockedException
 
Field Summary
(package private)  java.util.List<GraphicalRepresentationElement> connected
           
(package private)  GraphicalRepresentationElement.EdgeType edgeType
           
(package private)  net.xqhs.graphical.GElement gelement
           
(package private)  net.xqhs.graphical.GLabel glabel
           
(package private)  java.awt.Point gridPos
           
(package private)  float heightFactor
           
(package private)  java.lang.String label
           
(package private)  java.awt.Point subSize
           
(package private)  GraphicalRepresentationElement.Type type
           
(package private)  float widthFactor
           
 
Constructor Summary
GraphicalRepresentationElement(GraphRepresentation root, VisualizableGraphComponent component, GraphicalRepresentationElement.Type elementType)
           
 
Method Summary
 net.xqhs.graphical.GElement getGElement()
           
 GraphicalRepresentationElement positionInGrid(java.awt.Point position, float widthFactor, float heightFactor)
           
 GraphicalRepresentationElement positionInRadial(java.awt.Point position, java.awt.geom.Point2D center, float angleFactor, float rangeFactor)
           
 GraphicalRepresentationElement setEdge(GraphicalRepresentationElement.EdgeType type, GraphicalRepresentationElement from, GraphicalRepresentationElement to)
           
 GraphicalRepresentationElement setHighlighted(boolean doHighlight)
           
 GraphicalRepresentationElement setSize(java.awt.Point size)
           
 
Methods inherited from class net.xqhs.graphs.representation.RepresentationElement
getParentRepresentation, getRepresentedComponent, getRootRepresentation
 
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
 

Field Detail

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
Constructor Detail

GraphicalRepresentationElement

public GraphicalRepresentationElement(GraphRepresentation root,
                                      VisualizableGraphComponent component,
                                      GraphicalRepresentationElement.Type elementType)
Method Detail

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)