public abstract class AbstractVisualGraphComponent extends Object implements VisualGraphComponent
These attributes include:
| Constructor and Description |
|---|
AbstractVisualGraphComponent() |
| 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
|
Painter |
getPainter()
Returns the Painter that is used to paint this 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 |
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
|
void |
setPainter(Painter newPainter)
Assigns a new Painter delegate which will be responsible for further
painting of this VisualGraphComponent.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrescale, toStringpublic String getLabel()
getLabel in interface VisualGraphComponentpublic Color getFillcolor()
getFillcolor in interface VisualGraphComponentpublic Color getOutlinecolor()
getOutlinecolor in interface VisualGraphComponentpublic Font getFont()
getFont in interface VisualGraphComponentpublic FontMetrics getFontMetrics()
getFontMetrics in interface VisualGraphComponentpublic Color getFontcolor()
getFontcolor in interface VisualGraphComponentpublic GeneralPath getGeneralPath()
getGeneralPath in interface VisualGraphComponentpublic Painter getPainter()
public VisualGraph getVisualGraph()
getVisualGraph in interface VisualGraphComponentpublic void setFillcolor(Color fillcolor)
setFillcolor in interface VisualGraphComponentc - The new Color object that will be used as the fill color
on the next painting of the VisualGraphComponentpublic void setLabel(String text)
setLabel in interface VisualGraphComponentpublic void setOutlinecolor(Color outlinecolor)
setOutlinecolor in interface VisualGraphComponentc - The new Color object that will be used as the outline color
on the next painting of the VisualGraphComponentpublic void setFont(Font font)
setFont in interface VisualGraphComponentf - The new Font that will be usedpublic void setFontcolor(Color fontcolor)
setFontcolor in interface VisualGraphComponentfontcolor - Font color to be usedpublic void setGeneralPath(GeneralPath path)
setGeneralPath in interface VisualGraphComponentpath - A GeneralPath object used to draw outline of the VisualGraphComponent.public void setGeneralPath(PathIterator pathIterator)
VisualGraphComponentsetGeneralPath in interface VisualGraphComponentpathIterator - A PathIterator object used to draw outline of the VisualGraphComponent.public void setPainter(Painter newPainter)
newPainter - The new Painter delegate.public Rectangle getBounds()
getBounds in interface VisualGraphComponentpublic Rectangle2D getBounds2D()
getBounds2D in interface VisualGraphComponentpublic void addMouseListener(MouseListener l)
addMouseListener in interface VisualGraphComponentl - The listener to receive mouse events.public void addMouseMotionListener(MouseMotionListener l)
addMouseMotionListener in interface VisualGraphComponentl - The listener to receive mouse motion events.public void removeMouseListener(MouseListener l)
removeMouseListener in interface VisualGraphComponentl - The listener to be removed.public void removeMouseMotionListener(MouseMotionListener l)
removeMouseMotionListener in interface VisualGraphComponentl - The listener to receive mouse events.public void processMouseEvent(MouseEvent e)
processMouseEvent in interface VisualGraphComponente - The mouse eventpublic void processMouseMotionEvent(MouseEvent e)
processMouseMotionEvent in interface VisualGraphComponente - The mouse eventpublic void processKeyEvent(KeyEvent e)
Currently, this method does not do anything.
processKeyEvent in interface VisualGraphComponentCopyright © 2019 JULIE Lab, Germany. All rights reserved.