Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
Other Resources:
JEuclid Core Source Code Files
JEuclid Source Code Files are provided
the
JEuclid GitHub Website.
You can browse JEuclid Source Code files below:
✍: FYIcenter
⏎ net/sourceforge/jeuclid/layout/LayoutInfo.java
/*
* Copyright 2002 - 2007 JEuclid, http://jeuclid.sf.net
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* $Id$ */
package net.sourceforge.jeuclid.layout;
import java.util.List;
/**
* Represented Information about a layouted object.
* <p>
*
* The completeness of this information depends on the objects
* {@link LayoutStage}.
* <p>
* Each object is described with:
* <ul>
* <li>Origin: {@link #getPosX(LayoutStage)}, {@link #getPosY(LayoutStage)})
* <li>Horizontal Size: {@link #getWidth(LayoutStage)})
* <li>Vertical Size: {@link #getAscentHeight(LayoutStage)},
* {@link #getDescentHeight(LayoutStage)}
* </ul>
* <p>
* Coordinates are given relative to the baseline. If the object has no
* descent, this means the origin of the object is the lower left corner.
* <p>
* The actual Graphical representation can be retrieved with
* {@link #getGraphicObjects()}.
* <p>
* The stretch information ( {@link #getStretchAscent()},
* {@link #getStretchDescent()}, {@link #getStretchWidth()}) is set during the
* parents layout and defines the size to which stretchable operators are
* scaled to.
*
* @version $Revision$
*/
public interface LayoutInfo {
/**
* The {@link LayoutStage} this element represents. The information will
* not be complete until the final LayoutStage ({@link LayoutStage#STAGE2}
* ) has been reached.
*
* @return current layout stage.
*/
LayoutStage getLayoutStage();
/**
* @param newStage
* new Layout Stage.
*/
void setLayoutStage(LayoutStage newStage);
/**
* Returns the current height of the upper part of this component from the
* baseline.
*
* @return Height of the upper part
* @param stage
* {@link LayoutStage} to get this information for (either
* {@link LayoutStage#STAGE1} or {@link LayoutStage#STAGE2})
*/
float getAscentHeight(LayoutStage stage);
/**
* Returns the current height of the lower part of this component from the
* baseline.
*
* @return Height of the lower part.
* @param stage
* {@link LayoutStage} to get this information for (either
* {@link LayoutStage#STAGE1} or {@link LayoutStage#STAGE2})
*/
float getDescentHeight(LayoutStage stage);
/**
* Returns the current width of this element.
*
* @return Width of this element.
* @param stage
* {@link LayoutStage} to get this information for (either
* {@link LayoutStage#STAGE1} or {@link LayoutStage#STAGE2})
*/
float getWidth(LayoutStage stage);
/**
* Retrieve the X-position of the horizontal center of the content. In
* most cases, this will be width / 2. This does not, however, take extra
* borders into account. An element may have different border width on
* left and right, in which case the center will be moved.
*
* @return X-position of the center of the content
* @param stage
* {@link LayoutStage} to get this information for (either
* {@link LayoutStage#STAGE1} or {@link LayoutStage#STAGE2})
*/
float getHorizontalCenterOffset(LayoutStage stage);
/**
* @param newOffset
* new horizontal offset.
* @param stage
* {@link LayoutStage} to get this information for (either
* {@link LayoutStage#STAGE1} or {@link LayoutStage#STAGE2})
*/
void setHorizontalCenterOffset(float newOffset, LayoutStage stage);
/**
* Retrieve the X position of this element relative to its parent.
*
* @return X position
* @param stage
* {@link LayoutStage} to get this information for (either
* {@link LayoutStage#STAGE1} or {@link LayoutStage#STAGE2})
*/
float getPosX(LayoutStage stage);
/**
* Retrieve the Y position of this element relative to its parent.
*
* @return Y position
* @param stage
* {@link LayoutStage} to get this information for (either
* {@link LayoutStage#STAGE1} or {@link LayoutStage#STAGE2})
*/
float getPosY(LayoutStage stage);
/**
* Move this element to the given position relative to its parent.
*
* @param x
* new X position
* @param y
* new Y position
* @param stage
* {@link LayoutStage} to get this information for (either
* {@link LayoutStage#STAGE1} or {@link LayoutStage#STAGE2})
*/
void moveTo(float x, float y, LayoutStage stage);
/**
* Shift vertically by given offset.
*
* @param offsetY
* offset to shift.
* @param stage
* Stage to manipulate.
*/
void shiftVertically(float offsetY, LayoutStage stage);
/**
* @param ascentHeight
* new ascentHeight.
* @param stage
* {@link LayoutStage} to get this information for (either
* {@link LayoutStage#STAGE1} or {@link LayoutStage#STAGE2})
*/
void setAscentHeight(float ascentHeight, LayoutStage stage);
/**
* @param descentHeight
* new descentHeight.
* @param stage
* {@link LayoutStage} to get this information for (either
* {@link LayoutStage#STAGE1} or {@link LayoutStage#STAGE2})
*/
void setDescentHeight(float descentHeight, LayoutStage stage);
/**
* @param width
* new width.
* @param stage
* {@link LayoutStage} to get this information for (either
* {@link LayoutStage#STAGE1} or {@link LayoutStage#STAGE2})
*/
void setWidth(float width, LayoutStage stage);
/**
* Set the stretch width for children, or %lt; 0 if children should be
* horizontally unstretched.
*
* @param stretchWidth
* new stretch width
*/
void setStretchWidth(float stretchWidth);
/**
* Retrieve the stretch width if set, or STAGE1.width if unset.
*
* @return stretch width.
*/
float getStretchWidth();
/**
* Set the stretch descent for children. Defaults to STAGE1.descent
*
* @param stretchDescent
* new stretch descent
*/
void setStretchDescent(float stretchDescent);
/**
* Retrieve the stretch descent if set, or STAGE1.descent if unset.
*
* @return stretch descent.
*/
float getStretchDescent();
/**
* Set the stretch ascent for children. Defaults to STAGE1.ascent
*
* @param stretchAscent
* new stretch ascent
*/
void setStretchAscent(float stretchAscent);
/**
* Retrieve the stretch ascent if set, or STAGE1.ascent if unset.
*
* @return stretch ascent.
*/
float getStretchAscent();
/**
* @param graphicsObject
* the GraphicsObject to set.
*/
void setGraphicsObject(GraphicsObject graphicsObject);
/**
* @return Graphic objects associated with this node.
*/
List<GraphicsObject> getGraphicObjects();
}
⏎ net/sourceforge/jeuclid/layout/LayoutInfo.java
Or download all of them as a single archive file:
File name: jeuclid-core-3.1.14-fyi.zip File size: 325716 bytes Release date: 2019-02-24 Download
⇒ Using JEuclid 3.1.9 on macOS
⇐ Download and Install jeuclid-core-3.1.14.jar
2025-08-15, ≈13🔥, 0💬
Popular Posts:
How to download and install JDK (Java Development Kit) 6? If you want to write Java applications, yo...
How to display types defined in an XML Schema file with the xs\QueryXS.java provided in the Apache X...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...
commons-io-2.6-sources.j aris the source JAR file for Apache Commons IO 2.6, which is a library of u...
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side...