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
-
-
Field Summary
Fields Modifier and Type Field Description private static java.awt.ColorBIG_ROAD_COLORprivate static java.awt.ColorCOASTLINE_COLORprivate static java.awt.ColorMOTORWAY_COLORprivate static java.awt.ColorSMALL_ROAD_COLOR
-
Constructor Summary
Constructors Constructor Description BasicGraphPalette()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetColorForArc(Arc arc)intgetWidthForArc(Arc arc)
-
-
-
Method Detail
-
getColorForArc
public java.awt.Color getColorForArc(Arc arc)
- Specified by:
getColorForArcin 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:
getWidthForArcin interfaceGraphPalette- Parameters:
arc- Arc for which width should be retrieved.- Returns:
- Width associated with the given arc.
-
-