public interface TimeLineNode extends VetoableChangeListener
This code was developed by NASA, Goddard Space Flight Center, Code 588 for the Scientist's Expert Assistant (SEA) project.
Modifier and Type | Field and Description |
---|---|
static String |
BIC |
static Font |
DEFAULT_FONT |
static double |
DEFAULT_LABEL_SPACE |
static String |
END_TIME |
static String |
HIT_LEFT_EDGE |
static String |
HIT_RIGHT_EDGE |
static int |
LEFT_HANDLE_SELECTED |
static String |
MODE |
static Cursor |
MOVE_CURSOR |
static String |
NAME |
static String |
NODE |
static String |
NODE_MAX_SIZE_EXCEEDED |
static String |
NODE_MIN_SIZE_EXCEEDED |
static String |
NODE_OVERLAP |
static int |
NODE_SELECTED |
static Font |
REVERSE_ROTATED_FONT |
static int |
RIGHT_HANDLE_SELECTED |
static Font |
ROTATED_FONT |
static String |
SELECTED_COLOR |
static String |
START_TIME |
static int |
UNSELECTED |
static String |
UNSELECTED_COLOR |
Modifier and Type | Method and Description |
---|---|
void |
addVetoableChangeListener(VetoableChangeListener listener)
add a property change listener to the node
|
boolean |
containsPoint(Point pt)
returns whether the specified point is in the node
|
int |
getAreaForPoint(Point pt)
returns what area of a time line node a point exists in
|
Point |
getCenterPoint()
returns the center point for the time line node
|
Cursor |
getCursor(MouseEvent evt)
get the cursor for the specified point
|
String |
getDescription(Point pt)
returns a description for the area at the specified point
|
Time |
getDuration()
get the duration of the time line node
|
Time |
getEndTime()
get the time that this node ends
|
TimeLineNodeModel |
getModel()
get the node's underlying model
|
TimeLine |
getParent()
get the parent time line
|
Color |
getSelectedColor()
get the the selected color the time line node
|
int |
getSelectionMode()
get the selection mode of the time line node
|
Time |
getStartTime()
get the time that this node starts
|
String |
getTimeLineNodeName()
get the name of the time line node
|
Color |
getUnselectedColor()
get the the unselected color the time line node
|
void |
handleKeyEvent(KeyEvent evt)
handle key event
|
void |
handleMouseDragEvent(MouseEvent evt)
handle mouse events
|
void |
handleMouseEvent(MouseEvent evt)
handle mouse events
|
void |
handleMouseMoveEvent(MouseEvent evt)
handle mouse events
|
boolean |
intersects(TimeLineNode node)
returns whether the node intersects the passed in node
|
boolean |
isDragging()
returns whether the node is currently being dragged
|
boolean |
isSelected()
returns whther the node is currently selected
|
void |
moveTimeLineNodeBy(Time time)
move node by specified time
|
void |
paintTimeLineNode(Graphics2D graphics)
paint the time line node
|
void |
removeVetoableChangeListener(VetoableChangeListener listener)
remove a propertyChangeListener to the node
|
void |
revertToPrevious()
revert the time line node to its previous position
|
void |
setDuration(Time durationLength)
set the duration of the time line node
|
void |
setEndTime(Time time)
set the time that this node ends
|
void |
setModel(TimeLineNodeModel model)
set the time line node's underlying model
|
void |
setParent(TimeLine timeLine)
set the parent time line
|
void |
setSelectedColor(Color color)
set the selected color for the time line node
|
void |
setSelectionMode(int mode)
set the selection mode of the time linenode
|
void |
setStartTime(Time time)
set the point on the time line that this node starts
|
void |
setTimeLineNode(Time start,
Time end)
move node to a specified location
|
void |
setTimeLineNodeName(String name)
give the time line node a name
|
void |
setUnselectedColor(Color color)
set the unselected color for the time line node
|
vetoableChange
static final int UNSELECTED
static final int LEFT_HANDLE_SELECTED
static final int NODE_SELECTED
static final int RIGHT_HANDLE_SELECTED
static final Font DEFAULT_FONT
static final Font ROTATED_FONT
static final Font REVERSE_ROTATED_FONT
static final Cursor MOVE_CURSOR
static final double DEFAULT_LABEL_SPACE
static final String NODE_OVERLAP
static final String NODE_MIN_SIZE_EXCEEDED
static final String NODE_MAX_SIZE_EXCEEDED
static final String HIT_LEFT_EDGE
static final String HIT_RIGHT_EDGE
static final String BIC
static final String MODE
static final String SELECTED_COLOR
static final String UNSELECTED_COLOR
static final String START_TIME
static final String END_TIME
static final String NODE
static final String NAME
void setSelectionMode(int mode)
int getSelectionMode()
void setUnselectedColor(Color color)
Color getUnselectedColor()
void setSelectedColor(Color color)
Color getSelectedColor()
Time getStartTime()
void setStartTime(Time time) throws DetailedPropertyVetoException
DetailedPropertyVetoException
Time getEndTime()
void setEndTime(Time time) throws DetailedPropertyVetoException
DetailedPropertyVetoException
void moveTimeLineNodeBy(Time time) throws DetailedPropertyVetoException
DetailedPropertyVetoException
Time getDuration()
void setDuration(Time durationLength) throws DetailedPropertyVetoException
DetailedPropertyVetoException
void setTimeLineNodeName(String name)
String getTimeLineNodeName()
void paintTimeLineNode(Graphics2D graphics)
graphics
- the graphics component to paintvoid addVetoableChangeListener(VetoableChangeListener listener)
void removeVetoableChangeListener(VetoableChangeListener listener)
void handleMouseEvent(MouseEvent evt)
void handleMouseDragEvent(MouseEvent evt)
void handleMouseMoveEvent(MouseEvent evt)
void handleKeyEvent(KeyEvent evt) throws DetailedPropertyVetoException
DetailedPropertyVetoException
void setParent(TimeLine timeLine)
TimeLine getParent()
boolean isDragging()
boolean isSelected()
void revertToPrevious()
boolean intersects(TimeLineNode node)
int getAreaForPoint(Point pt)
Point getCenterPoint()
void setTimeLineNode(Time start, Time end) throws DetailedPropertyVetoException
DetailedPropertyVetoException
boolean containsPoint(Point pt)
String getDescription(Point pt)
TimeLineNodeModel getModel()
void setModel(TimeLineNodeModel model)
Cursor getCursor(MouseEvent evt)
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.