Package org.insa.graphs.gui.drawing
Class BasicGraphPalette
- java.lang.Object
-
- org.insa.graphs.gui.drawing.BasicGraphPalette
-
- All Implemented Interfaces:
GraphPalette
- Direct Known Subclasses:
BlackAndWhiteGraphPalette
public class BasicGraphPalette extends java.lang.Object implements GraphPalette
-
-
Constructor Summary
Constructors Constructor Description BasicGraphPalette()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Color
getColorForArc(Arc arc)
int
getWidthForArc(Arc arc)
-
-
-
Method Detail
-
getColorForArc
public java.awt.Color getColorForArc(Arc arc)
- Specified by:
getColorForArc
in interfaceGraphPalette
- Parameters:
arc
- Arc for which color should be retrieved.- Returns:
- Color associated with the given arc.
-
getWidthForArc
public int getWidthForArc(Arc arc)
- Specified by:
getWidthForArc
in interfaceGraphPalette
- Parameters:
arc
- Arc for which width should be retrieved.- Returns:
- Width associated with the given arc.
-
-