|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.model.ModelShell
nz.ac.waikato.mcennis.rat.graph.algorithm.visual.DisplayAll
public class DisplayAll
Class that displays an entire graph inside a Prefuse display window. Each relation is assigned a color. Each actor is assigned a color. Properties are accessed via a side panel, where relation name and ID are displayed.
| Field Summary | |
|---|---|
static float[] |
CATEGORY_HUES
|
| Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
listener |
| Constructor Summary | |
|---|---|
DisplayAll()
create a new display algorithm with deafult properties |
|
| Method Summary | |
|---|---|
void |
execute(Graph g)
execute the algorithm against the given graph |
static int[] |
getCategoryPalette(int size,
float s1,
float s2,
float b,
float a)
Stolen from BSD licensed Jung2 toolkit. |
java.util.List<IODescriptor> |
getInputType()
The input type describes all the different kinds of graph objects that are utilized (and hence required) by this object. |
java.util.List<IODescriptor> |
getOutputType()
The output type describes all the different kinds of graph objects that are created during the execution of this algorithm. |
Properties |
getParameter()
List of all parameters this component accepts. |
Parameter |
getParameter(java.lang.String param)
Returns the specific parameter identified by its key-name. |
void |
init(Properties map)
Initializes the algorithm. |
DisplayAll |
prototype()
All Components implement the prototype pattern. |
| Methods inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
addListener, fireChange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model |
|---|
addListener |
| Field Detail |
|---|
public static final float[] CATEGORY_HUES
| Constructor Detail |
|---|
public DisplayAll()
| Method Detail |
|---|
public void execute(Graph g)
Algorithm
execute in interface Algorithmg - graph to be modifiedpublic java.util.List<IODescriptor> getInputType()
Component
getInputType in interface ComponentIODescriptorpublic java.util.List<IODescriptor> getOutputType()
Component
getOutputType in interface ComponentIODescriptorpublic Properties getParameter()
Component
getParameter in interface Componentpublic Parameter getParameter(java.lang.String param)
Component
getParameter in interface Componentparam - key-name of the parameter
public void init(Properties map)
init in interface Componentmap - property set to initialize the algorithm with.public DisplayAll prototype()
Component
prototype in interface Componentprototype in interface Algorithm
public static int[] getCategoryPalette(int size,
float s1,
float s2,
float b,
float a)
size - the size of the color palettes1 - the initial saturation to uses2 - the final (most distant) saturation to useb - the brightness value to usea - the alpha value to use
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||