All Packages Class Hierarchy This Package Previous Next Index
Class dispatcher.LinkedList
java.lang.Object
|
+----dispatcher.LinkedList
- public class LinkedList
- extends Object
- implements Cloneable
This class implements the main storage of drawn elements
-
head
- the head of shape list
-
clear()
- Clears the shape list (clears the picture)
-
clearSelection()
- Clears the current selection
-
cloneHead()
- Clones the list for possible recovery
-
enterText(String)
- Adds the given string to pic text stored in this node
-
find(int, int)
- Returns true iff exists shape in the list which contains the point (x, y)
-
getLength()
- Returns the number of nodes stored in the list
-
getObject()
- Returens the shape stored in the node
-
getPicText()
- Returns the pic text stored in the node
-
getTail()
- Returns the last element in the shape list
-
inverse()
- Inverses the Y coordinate after pic compiler activation
-
next()
- Returns the next node in the list
-
redraw(Graphics, Color)
- Redraws the picture with the given color
-
removeText(String)
- Cut the given string from pic text stored in this node
-
select(int, int, int, int)
- Selects the group within the given rectangular frame
defined by two diagonal points: (x1, y1) and (x2, y2)
-
selectGroup(Graphics)
- Selects the group accordingly to the current state
-
setCurrent(Graphics)
- Sets and draws the current element in the list
-
setPicText(String)
- Sets the pic text to the node
-
test(TextArea)
- Tests the LinkedList.
-
toString()
- Returns the pic text from calling element to the last node in the list
-
toString(LinkedList)
- Returns the pic text from calling element to the last_node
-
unselectGroup(Graphics)
- Unselects the selected group
head
public static LinkedList head
- the head of shape list
cloneHead
public static LinkedList cloneHead()
- Clones the list for possible recovery
getTail
public static LinkedList getTail()
- Returns the last element in the shape list
setPicText
public void setPicText(String text)
- Sets the pic text to the node
getPicText
public String getPicText()
- Returns the pic text stored in the node
getObject
public GenericShape getObject()
- Returens the shape stored in the node
next
public LinkedList next()
- Returns the next node in the list
getLength
public static int getLength()
- Returns the number of nodes stored in the list
find
public static boolean find(int x,
int y)
- Returns true iff exists shape in the list which contains the point (x, y)
clearSelection
public static void clearSelection()
- Clears the current selection
select
public static void select(int x1,
int y1,
int x2,
int y2)
- Selects the group within the given rectangular frame
defined by two diagonal points: (x1, y1) and (x2, y2)
redraw
public static void redraw(Graphics graphics,
Color c)
- Redraws the picture with the given color
clear
public static void clear()
- Clears the shape list (clears the picture)
setCurrent
public static void setCurrent(Graphics graphics)
- Sets and draws the current element in the list
toString
public String toString(LinkedList last_node)
- Returns the pic text from calling element to the last_node
toString
public String toString()
- Returns the pic text from calling element to the last node in the list
- Overrides:
- toString in class Object
inverse
public static void inverse()
- Inverses the Y coordinate after pic compiler activation
removeText
public void removeText(String text)
- Cut the given string from pic text stored in this node
enterText
public void enterText(String text)
- Adds the given string to pic text stored in this node
unselectGroup
public static void unselectGroup(Graphics graphics)
- Unselects the selected group
selectGroup
public static void selectGroup(Graphics graphics)
- Selects the group accordingly to the current state
test
public static void test(TextArea target)
- Tests the LinkedList. ( Used by Test module )
All Packages Class Hierarchy This Package Previous Next Index