public interface VisualGraphComponent extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addMouseListener(MouseListener l)
Adds a listener to receive mouse events on this VisualGraphComponent.
|
void |
addMouseMotionListener(MouseMotionListener l)
Adds a listener to receive mouse motion events on this VisualGraphComponent.
|
Rectangle |
getBounds()
Returns the bounding Rectangle of the VisualGraphComponent.
|
Rectangle2D |
getBounds2D()
Returns the bounding Rectangle of the VisualGraphComponent.
|
Color |
getFillcolor()
Returns the color used to fill the VisualGraphComponent
|
Font |
getFont()
Returns the font used to draw the String describing the VisualGraphComponent.
|
Color |
getFontcolor()
Returns the color used to draw the string representation of the VisualGraphComponent
|
FontMetrics |
getFontMetrics()
Return the FontMetrics for this VisualGraphComponent.,
which is used to define the width and height of the text and therefore also
of the component.
|
GeneralPath |
getGeneralPath()
Returns the GeneralPath used for rendering the outline of the VisualGraphComponent.
|
String |
getLabel()
Returns the text displayed for the VisualGraphComponent
|
Color |
getOutlinecolor()
Returns the color used to draw the outline of the VisualGraphComponent
|
VisualGraph |
getVisualGraph()
Returns the VisualGraph where the VisualGraphComponent is contained.
|
void |
processKeyEvent(KeyEvent e)
Processes key events occuring on this VisualGraphComponent.
|
void |
processMouseEvent(MouseEvent e)
Processes mouse events occuring on this VisualGraphComponent.
|
void |
processMouseMotionEvent(MouseEvent e)
Processes mouse motion events occuring on this VisualGraphComponent.
|
void |
removeMouseListener(MouseListener l)
Removes the specified mouse listener so that it no longer receives
mouse events from this VisualGraphComponent.
|
void |
removeMouseMotionListener(MouseMotionListener l)
Removes the specified mouse motion listener so that it no longer receives
mouse motion events from this VisualGraphComponent.
|
void |
rescale()
Rescales the VisualGraphComponent.
|
void |
setFillcolor(Color fillcolor)
Sets the fill color used to draw the VisualGraphComponent
|
void |
setFont(Font font)
Sets the font used to draw the String describing the VisualGraphComponent
|
void |
setFontcolor(Color fontcolor)
Sets the color of the font used to draw the String describing the VisualGraphComponent
|
void |
setGeneralPath(GeneralPath path)
Sets geometry used to draw the outline of the VisualGraphComponent.
|
void |
setGeneralPath(PathIterator pathIterator)
Sets geometry used to draw the outline of the VisualGraphComponent.
|
void |
setLabel(String text)
Sets the text displayed for the VisualGraphComponent
|
void |
setOutlinecolor(Color outlinecolor)
Sets the outline color used to draw the VisualGraphComponent
|
String |
toString()
String representation of the VisualGraphComponent.
|
String getLabel()
Color getFillcolor()
Color getOutlinecolor()
Font getFont()
FontMetrics getFontMetrics()
Color getFontcolor()
GeneralPath getGeneralPath()
VisualGraph getVisualGraph()
void setLabel(String text)
void setFillcolor(Color fillcolor)
c - The new Color object that will be used as the fill color
on the next painting of the VisualGraphComponentvoid setOutlinecolor(Color outlinecolor)
c - The new Color object that will be used as the outline color
on the next painting of the VisualGraphComponentvoid setFont(Font font)
f - The new Font that will be usedvoid setFontcolor(Color fontcolor)
fontcolor - Font color to be usedvoid setGeneralPath(GeneralPath path)
path - A GeneralPath object used to draw outline of the VisualGraphComponent.void setGeneralPath(PathIterator pathIterator)
pathIterator - A PathIterator object used to draw outline of the VisualGraphComponent.Rectangle getBounds()
void rescale()
Rectangle2D getBounds2D()
String toString()
void addMouseListener(MouseListener l)
l - The listener to receive mouse events.void addMouseMotionListener(MouseMotionListener l)
l - The listener to receive mouse motion events.void removeMouseListener(MouseListener l)
l - The listener to be removed.void removeMouseMotionListener(MouseMotionListener l)
l - The listener to receive mouse events.void processMouseEvent(MouseEvent e)
e - The mouse eventvoid processMouseMotionEvent(MouseEvent e)
e - The mouse eventvoid processKeyEvent(KeyEvent e)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.