001 /* 002 * Copyright 2002 - 2007 JEuclid, http://jeuclid.sf.net 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017 /* $Id: LayoutView.java,v 8afef6dd0d58 2007/09/14 08:29:58 maxberger $ */ 018 019 package net.sourceforge.jeuclid.layout; 020 021 import java.awt.Graphics2D; 022 023 /** 024 * @version $Revision: 8afef6dd0d58 $ 025 */ 026 public interface LayoutView { 027 028 /** 029 * Retrieve the Info object for a given child. 030 * 031 * @param child 032 * the node 033 * @return an LayoutInfo object. 034 */ 035 LayoutInfo getInfo(LayoutableNode child); 036 037 /** 038 * @return the Layout Graphics Context. 039 */ 040 Graphics2D getGraphics(); 041 042 }