Package org.jungrapht.visualization
Interface VisualizationComponent
-
- All Known Subinterfaces:
SatelliteVisualizationViewer<V,E>,VisualizationServer<V,E>,VisualizationViewer<V,E>
- All Known Implementing Classes:
AbstractSatelliteVisualizationViewer,AbstractVisualizationServer,AbstractVisualizationViewer,DefaultSatelliteVisualizationViewer,VisualizationImageServer
public interface VisualizationComponent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Componentadd(Component component)voidadd(Component component, Object layout)ColorgetBackground()RectanglegetBounds()JComponentgetComponent()FontgetFont()intgetHeight()DimensiongetPreferredSize()DimensiongetSize()StringgetToolTipText()intgetWidth()voidsetBackground(Color backgroundColor)voidsetCursor(Cursor cursor)voidsetFont(Font font)voidsetForeground(Color foregroundColor)voidsetLayout(LayoutManager layout)voidsetPreferredSize(Dimension preferredSize)
-
-
-
Method Detail
-
getComponent
JComponent getComponent()
-
getBounds
Rectangle getBounds()
- Returns:
- the rectangular bounds
-
getBackground
Color getBackground()
- Returns:
- the background color
-
setBackground
void setBackground(Color backgroundColor)
- Parameters:
backgroundColor- the color to set
-
setForeground
void setForeground(Color foregroundColor)
- Parameters:
foregroundColor- the color to set
-
setCursor
void setCursor(Cursor cursor)
- Parameters:
cursor- the cursor to set
-
getWidth
int getWidth()
-
getHeight
int getHeight()
-
getPreferredSize
Dimension getPreferredSize()
-
setPreferredSize
void setPreferredSize(Dimension preferredSize)
-
getSize
Dimension getSize()
-
getToolTipText
String getToolTipText()
-
setLayout
void setLayout(LayoutManager layout)
-
setFont
void setFont(Font font)
-
getFont
Font getFont()
-
-