|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.view.SizeConstraintProvider.Default
public static class SizeConstraintProvider.Default
Default implementation of interface SizeConstraintProvider
that can be used by NodeRealizers to
provide minimum and maximum sizes to layout algorithms.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface y.view.SizeConstraintProvider |
---|
SizeConstraintProvider.Default |
Constructor Summary | |
---|---|
SizeConstraintProvider.Default()
Creates an instance of Default that will have 0 |
|
SizeConstraintProvider.Default(double minWidth,
double minHeight,
double maxWidth,
double maxHeight)
Creates an instance of Default that will return the given parameters as minimum and maximum sizes. |
|
SizeConstraintProvider.Default(YDimension minSize,
YDimension maxSize)
Creates an instance of Default that will return the given parameters as minimum and maximum sizes. |
Method Summary | |
---|---|
YDimension |
getMaximumSize()
Returns the maximum size that of this SizeConstraintProvider. |
YDimension |
getMinimumSize()
Returns the minimum size that of this SizeConstraintProvider. |
void |
setMaximumSize(YDimension maxSize)
Sets the maximum size that of this SizeConstraintProvider. |
void |
setMinimumSize(YDimension minSize)
Sets the minimum size that of this SizeConstraintProvider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SizeConstraintProvider.Default()
0 minimum width and height and
Double.MAX_VALUE as maximum width and height.
public SizeConstraintProvider.Default(double minWidth, double minHeight, double maxWidth, double maxHeight)
minWidth
- the minimum widthminHeight
- the minimum heightmaxWidth
- the maximum widthmaxHeight
- the maximum heightpublic SizeConstraintProvider.Default(YDimension minSize, YDimension maxSize)
minSize
- the minimum sizemaxSize
- the maximum sizeMethod Detail |
---|
public void setMinimumSize(YDimension minSize)
minSize
- the minimum size.public YDimension getMinimumSize()
getMinimumSize
in interface SizeConstraintProvider
public void setMaximumSize(YDimension maxSize)
maxSize
- the maximum size.public YDimension getMaximumSize()
getMaximumSize
in interface SizeConstraintProvider
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |