|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ericsson.tic.vi.VI
public class VI
VI holds the main method, all globally accessed static variables and constants as well as some static methods used for the initialization.
| Field Summary | |
|---|---|
static boolean |
barShadingOn
True if bar shading is turned on. |
static int |
barType
The current bar type. |
static boolean |
betterLightingOn
Enables better lighting. |
static Texture |
blankTex
World map texture. |
static float[] |
blueColor
Blue. |
static int |
brushedCategory
|
static Color |
BRUSHING_OFF_COLOR_DEFAULT
Brushing Suppressed color. |
static Color |
BRUSHING_PRIMARY_COLOR_DEFAULT
The primary brushing color. |
static Color |
BRUSHING_SECONDARY_COLOR_DEFAULT
The secondary brushing color. |
static Color |
brushingOffColor
Brushing Suppressed color. |
static boolean |
brushingOn
If brushing is on. |
static Color |
brushingPrimaryColor
The primary brushing color. |
static Color |
brushingSecondaryColor
The secondary brushing color. |
static ImageIcon |
brushOffIcon
An image. |
static ImageIcon |
brushOnIcon
An image. |
private static int |
build
The current buildnumber of this software. |
static Category[] |
categoryArr
A list of categories. |
static LinkedList<Category> |
categoryList
A list of categories as an array. |
static Hashtable<String,Integer> |
catID
A hashtable containing an ID, hostname pair. |
static Command[] |
commandArr
A list of commands. |
static int |
CONSOLE_INPUT_CAPACITY
The size of the console input buffer |
static RawBuffer |
consoleInputBuffer
A buffer used for storing user input messages. |
static LinkedList<ConsolePanel> |
consoleList
A list of console panels. |
static boolean |
coreRunning
If true, the core is running. |
static long |
currentTimeStamp
The current time. |
static ConsolePanel |
d
The console. |
static Data[] |
dataArr
A list of data |
static Hashtable<String,Integer> |
dataID
A hashtable containing an ID, data set name pair. |
static int |
DEFAULT_UDPIN_PORT
The default port number used for incoming messages from the TIC. |
static String |
DEFAULT_UDPOUT_HOST
The default host where the TIC listens for incoming messages. |
static int |
DEFAULT_UDPOUT_PORT
The default port on which the TIC is assumed to listen for messages from the VI ynode |
static float |
defaultValue
The default value used for the timeout. |
static ImageIcon |
downArrowIcon
An image. |
static boolean |
focusInView
If focus is in view. |
static boolean |
fogOn
True if fog is turned on. |
static int |
GLOBE_MOVE_DELAY
The default dealy time (in tics) for "movement inertia" |
static float |
GLOBE_ROT_ANGLE_DEFAULT
The default rot-angle. |
static float |
GLOBE_TILT_ANGLE_DEFAULT
The default tilt-angle. |
static float |
GLOBE_ZOOM_DEFAULT
The default zoom distance. |
static float |
GLOBE_ZOOM_MAX
The maximum zoom distance. |
static float |
GLOBE_ZOOM_MIN
The minimum allowed zooming distance. |
static boolean |
globeRotationOn
Automatic globe rotation. |
static boolean |
globeViewOn
If globe view is on. |
static float[] |
greenColor
Green. |
static float[] |
greyColor
Grey (80%). |
static boolean |
ignoreShift
If true, panning and tilting is not separated. |
static boolean |
infiniteMoveDelayOn
If true, tilting continues for eternity. |
static String |
keepAliveHost
The default host where the TIC listens for incoming messages. |
static int |
keepAlivePort
The default port on which the TIC is assumed to listen for messages from the VI ynode |
static ImageIcon |
leftArrowIcon
An image. |
static boolean |
lineAAOn
True if line shading is turned on. |
static int |
MESSAGE_MAX_WIDTH
The maximum size of incoming messages. |
static boolean |
mPressed
If m-key is pressed. |
static GraphNode[] |
nodeArr
A list of graph nodes as an array. |
static Hashtable<String,Integer> |
nodeID
A hashtable containing an ID, hostname pair. |
static LinkedList<GraphNode> |
nodeList
A list of graph nodes. |
static Data[] |
nodeMultiData
A list of multidimensional node data |
static LinkedList<Data> |
nodeMultiDataList
A list of multidimensional node data |
static String[] |
nodeMultiDataStrings
Strings used by the GUI to display node-multideimensional data. |
static GraphNodeRel[] |
nodeRelArr
A list of node relations as an array. |
static LinkedList<GraphNodeRel> |
nodeRelList
A list of node relations. |
static boolean |
nodeShadingOn
True if node shading is turned on. |
static Data[] |
nodeSingularData
A list of singular node data |
static LinkedList<Data> |
nodeSingularDataList
A list of singular node data |
static String[] |
nodeSingularDataStrings
Strings used by the GUI to display node-singular data. |
static NodeType[] |
nodeTypeArr
An array of nodes. |
static int |
NULL_CATEGORY
The null category. |
static String |
NULL_CHAR
A null character. |
static boolean |
panMoveDelayOn
If true, panning continues if the mouse is released. |
static boolean |
pauseGUI
pause the GUI. |
static float |
PLANE_PAN_X_MAX
The maximum x-panning distance. |
static float |
PLANE_PAN_Y_MAX
The maximum y-panning distance. |
static float |
PLANE_ZOOM_DEFAULT
The default zoom distance. |
static float |
PLANE_ZOOM_MAX
The maximum zoom distance. |
static float |
PLANE_ZOOM_MIN
The minimum allowed zooming distance. |
static boolean |
printServerMessages
If true, server messages are printed to the console. |
static float[] |
redColor
Red. |
static Hashtable<String,Integer> |
relID
A hashtable containing an ID, hostname pair. |
static Data[] |
relsData
A list of data tied to relations. |
static LinkedList<Data> |
relsDataList
A list of data tied to relations. |
static String[] |
relsDataStrings
Strings used by the GUI to display relation data. |
static boolean |
shiftPressed
If shift is pressed. |
static boolean |
skyboxOn
True if the skybox is turned on. |
static boolean |
skyboxRotationOn
Automatic skybox rotation. |
static Texture |
skyboxTexBottom
Skybox texture. |
static Texture |
skyboxTexSide1
Skybox texture. |
static Texture |
skyboxTexSide2
Skybox texture. |
static Texture |
skyboxTexSide3
Skybox texture. |
static Texture |
skyboxTexSide4
Skybox texture. |
static Texture |
skyboxTexTop
Skybox texture. |
static int |
socketBufferSize
The size of the socket input buffer size. |
static String |
SPACE
A space character. |
static float |
SPEED_DECAY_ROT
Controls the decay rate of rotational movement. |
static float |
SPEED_DECAY_TILT
Controls the decay rate of tiliting movement. |
static boolean |
startup
If true, no prior initialization has ocurred |
static boolean |
startupDialogRunning
If true, the startup dialog is running. |
static int |
STRAT_NODE_HOST_CAT_VALUE
Parsing strategy. |
static int |
STRAT_NODE_HOST_CAT_VALUE_N
Parsing strategy. |
static int |
STRAT_NODE_HOST_VALUE
Parsing strategy. |
static int |
STRAT_REL_HOST_VALUE
Parsing strategy. |
static int |
STRAT_REL_HOST_VALUE_2
Parsing strategy. |
static boolean |
texturesLoaded
If true, the predefined textures are loaded. |
static boolean |
tiltMoveDelayOn
If true, tilting continues if the mouse is released. |
static long |
timeOut
If this value is set to zero, time out time is assumed to be infinite. |
static int |
udpInPort
The default port number used for incoming messages from the TIC. |
static String |
udpOutHost
The default host where the TIC listens for incoming messages. |
static int |
udpOutPort
The default port on which the TIC is assumed to listen for messages from the VI ynode |
static String |
UNDERSCORE
An underscore. |
static int |
verticalSync
Enable vertical sync. |
private static int |
vid
The latest ViewID. |
static LinkedList<ViewPanel> |
viewList
A list of view panels. |
static int |
viewRefreshRate
Suggested update frequenzy for the OpenGL rendering engine. |
static float[] |
whiteColor
White. |
private static int |
wid
The latest WindowID. |
static LinkedList<GUI> |
windowList
A list of top level windows. |
static String |
windowTitle
The default window title. |
static Texture |
worldTex
World map texture. |
static float |
ZOOM_DECAY
Controls the decay rate of the zoom. |
| Constructor Summary | |
|---|---|
VI()
|
|
| Method Summary | |
|---|---|
static GraphNode[] |
cloneNodeArr()
Clones an array of nodes. |
static GraphNodeRel[] |
cloneNodeRelArr(GraphNode[] gNode)
Clones an array of relations. |
static void |
main(String[] args)
Initialize the environment and start the GUI. |
static float[] |
normalizedColor(float[] c1,
float[] c2,
float vn)
Calculate the normalized color from a normalized value and a color range. |
static void |
prepareDataStructures()
Prepares all global data structures. |
static void |
readSave(File file,
ViewPanel view)
Read a save file and load the settings into a view panel. |
static void |
readTopologyFromFile(String fileName)
Reads topology information from a file pointed to by the xml-file. |
static int |
requestViewID()
Request a new view ID.This method is thread safe. |
static int |
requestWindowID()
Request a new window ID. |
static void |
writeSave(File file,
ViewPanel view)
Writes the viewsettings to file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int socketBufferSize
public static boolean betterLightingOn
public static boolean fogOn
public static boolean barShadingOn
public static boolean nodeShadingOn
public static boolean lineAAOn
public static boolean skyboxOn
private static final int build
public static boolean startup
public static boolean startupDialogRunning
public static final int DEFAULT_UDPIN_PORT
public static final int DEFAULT_UDPOUT_PORT
public static final String DEFAULT_UDPOUT_HOST
public static int udpInPort
public static int udpOutPort
public static String udpOutHost
public static int keepAlivePort
public static String keepAliveHost
public static Command[] commandArr
public static ImageIcon leftArrowIcon
public static ImageIcon downArrowIcon
public static ImageIcon brushOnIcon
public static ImageIcon brushOffIcon
public static String windowTitle
public static final float[] greyColor
public static final float[] whiteColor
public static final float[] redColor
public static final float[] greenColor
public static final float[] blueColor
public static final int GLOBE_MOVE_DELAY
public static final float GLOBE_ZOOM_DEFAULT
public static final float GLOBE_ZOOM_MAX
public static final float GLOBE_ZOOM_MIN
public static final float PLANE_ZOOM_DEFAULT
public static final float PLANE_ZOOM_MAX
public static final float PLANE_ZOOM_MIN
public static final float PLANE_PAN_X_MAX
public static final float PLANE_PAN_Y_MAX
public static final float ZOOM_DECAY
public static final float SPEED_DECAY_ROT
public static final float SPEED_DECAY_TILT
public static final float GLOBE_TILT_ANGLE_DEFAULT
public static final float GLOBE_ROT_ANGLE_DEFAULT
public static boolean tiltMoveDelayOn
public static boolean panMoveDelayOn
public static boolean ignoreShift
public static boolean infiniteMoveDelayOn
public static boolean pauseGUI
public static boolean globeRotationOn
public static boolean skyboxRotationOn
public static boolean shiftPressed
public static boolean mPressed
public static boolean focusInView
public static boolean globeViewOn
public static boolean brushingOn
public static int brushedCategory
public static final Color BRUSHING_PRIMARY_COLOR_DEFAULT
public static final Color BRUSHING_SECONDARY_COLOR_DEFAULT
public static final Color BRUSHING_OFF_COLOR_DEFAULT
public static Color brushingPrimaryColor
public static Color brushingSecondaryColor
public static Color brushingOffColor
public static int viewRefreshRate
public static int verticalSync
public static boolean coreRunning
public static boolean printServerMessages
public static LinkedList<ViewPanel> viewList
public static LinkedList<ConsolePanel> consoleList
public static LinkedList<GUI> windowList
public static LinkedList<GraphNode> nodeList
public static GraphNode[] nodeArr
public static LinkedList<GraphNodeRel> nodeRelList
public static GraphNodeRel[] nodeRelArr
public static LinkedList<Category> categoryList
public static Category[] categoryArr
public static Data[] dataArr
public static LinkedList<Data> nodeSingularDataList
public static LinkedList<Data> nodeMultiDataList
public static LinkedList<Data> relsDataList
public static Data[] nodeSingularData
public static Data[] nodeMultiData
public static Data[] relsData
public static String[] nodeSingularDataStrings
public static String[] nodeMultiDataStrings
public static String[] relsDataStrings
public static Hashtable<String,Integer> nodeID
public static Hashtable<String,Integer> relID
public static Hashtable<String,Integer> catID
public static Hashtable<String,Integer> dataID
private static int wid
private static int vid
public static Texture worldTex
public static Texture blankTex
public static Texture skyboxTexTop
public static Texture skyboxTexBottom
public static Texture skyboxTexSide1
public static Texture skyboxTexSide2
public static Texture skyboxTexSide3
public static Texture skyboxTexSide4
public static boolean texturesLoaded
public static final int CONSOLE_INPUT_CAPACITY
public static final int MESSAGE_MAX_WIDTH
public static RawBuffer consoleInputBuffer
public static ConsolePanel d
public static int STRAT_NODE_HOST_VALUE
public static int STRAT_NODE_HOST_CAT_VALUE
public static int STRAT_NODE_HOST_CAT_VALUE_N
public static int STRAT_REL_HOST_VALUE
public static int STRAT_REL_HOST_VALUE_2
public static int NULL_CATEGORY
public static final String SPACE
public static final String UNDERSCORE
public static final String NULL_CHAR
public static long currentTimeStamp
public static long timeOut
public static float defaultValue
public static int barType
public static NodeType[] nodeTypeArr
| Constructor Detail |
|---|
public VI()
| Method Detail |
|---|
public static float[] normalizedColor(float[] c1,
float[] c2,
float vn)
c1 - A color RGB triple. Start color of the gradient.c2 - A color RGB triple. End color of the gradient.vn - A normalized value in the range [0.0 1.0].
public static int requestWindowID()
public static int requestViewID()
public static void readSave(File file,
ViewPanel view)
file - A save file.view - A view panel.
public static void writeSave(File file,
ViewPanel view)
file - a file to write to.view - a view.public static void readTopologyFromFile(String fileName)
C nodeID nodeTypeID nodeTypeName nodeHierarchyName Xpos Ypos ... relationID nodeAID nodeBID ... Example: 1 1 1 xnode 11b 0.4 1.102 2 2 ynode 11b 0.11 -0.3 rID 1 2
public static void prepareDataStructures()
public static GraphNode[] cloneNodeArr()
public static GraphNodeRel[] cloneNodeRelArr(GraphNode[] gNode)
gNode - An array of nodes.
public static void main(String[] args)
args - Not used.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||