public Color getColor() { if (type.equals(INPUT_PARTITION_TYPE)) { return inputStream.getColor(); } return outputStream.getColor(); }
/** * Returns the colour of the input stream if the type of the partition * is <code>INPUT_PARTITION_TYPE</code>, otherwise it returns the output * stream colour * * @return the colour of one of the backing streams */ public Color getColor() { if (type.equals(INPUT_PARTITION_TYPE)) { return inputStream.getColor(); } return outputStream.getColor(); }