33 lines
705 B
Java
33 lines
705 B
Java
package org.insa.graphics.drawing;
|
|
|
|
import java.awt.Color;
|
|
|
|
import org.insa.graph.Arc;
|
|
|
|
public interface GraphPalette {
|
|
|
|
/**
|
|
* @return The default point width for this palette.
|
|
*/
|
|
public int getDefaultPointWidth();
|
|
|
|
/**
|
|
* @return The default point color for this palette.
|
|
*/
|
|
public Color getDefaultPointColor();
|
|
|
|
/**
|
|
* @param arc Arc for which color should be retrieved.
|
|
*
|
|
* @return Color associated with the given arc.
|
|
*/
|
|
public Color getColorForArc(Arc arc);
|
|
|
|
/**
|
|
* @param arc Arc for which width should be retrieved.
|
|
*
|
|
* @return Width associated with the given arc.
|
|
*/
|
|
public int getWidthForArc(Arc arc);
|
|
|
|
}
|