|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kiml.VolatileLayoutConfig
public class VolatileLayoutConfig
A layout configuration that can be used to generate on-the-fly layout options.
Constructor Summary | |
---|---|
VolatileLayoutConfig()
|
Method Summary | ||
---|---|---|
void |
clearProperties()
Remove all stored layout options. |
|
void |
copyProperties(IPropertyHolder holder)
Copy all properties from another property holder to this one. |
|
Map<IProperty<?>,Object> |
getAllProperties()
Returns a map of all assigned properties with associated values. |
|
LayoutAlgorithmData |
getContainerLayouterData()
Returns null , since this layout configuration is not connected to a layout algorithm. |
|
LayoutAlgorithmData |
getContentLayouterData()
Returns null , since this layout configuration is not connected to a layout algorithm. |
|
LayoutAlgorithmData |
getLayouterData(String layoutHint,
String diagramType)
Throws an UnsupportedOperationException , since this configuration cannot be
used to handle layout providers. |
|
List<LayoutOptionData<?>> |
getOptionData()
Returns a list of available layout option descriptors. |
|
|
getProperty(IProperty<T> property)
Retrieves a property value. |
|
boolean |
isDefault(LayoutOptionData<?> optionData)
Returns true if the given option has its default value. |
|
void |
setDiagramDefault(LayoutOptionData<?> optionData,
Object value)
Throws an UnsupportedOperationException , since this configuration cannot be
used to change diagram options. |
|
void |
setFocus(Object element)
Set the focus of this layout configuration on the given element. |
|
void |
setProperty(IProperty<?> property,
Object value)
Sets a property value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VolatileLayoutConfig()
Method Detail |
---|
public void setFocus(Object element)
null
is
passed, the current focus is cleared.
setFocus
in interface ILayoutConfig
element
- a diagram element for which layout options shall be analyzed,
or null
public void setProperty(IProperty<?> property, Object value)
setProperty
in interface IPropertyHolder
property
- the property to setvalue
- the new valuepublic <T> T getProperty(IProperty<T> property)
getProperty
in interface IPropertyHolder
T
- type of propertyproperty
- the property to get
public void copyProperties(IPropertyHolder holder)
copyProperties
in interface IPropertyHolder
holder
- another property holderpublic Map<IProperty<?>,Object> getAllProperties()
getAllProperties
in interface IPropertyHolder
public boolean isDefault(LayoutOptionData<?> optionData)
isDefault
in interface ILayoutConfig
optionData
- a layout option data
public List<LayoutOptionData<?>> getOptionData()
getOptionData
in interface ILayoutConfig
public void clearProperties()
clearProperties
in interface ILayoutConfig
public LayoutAlgorithmData getContentLayouterData()
null
, since this layout configuration is not connected to a layout algorithm.
getContentLayouterData
in interface ILayoutConfig
null
public LayoutAlgorithmData getContainerLayouterData()
null
, since this layout configuration is not connected to a layout algorithm.
getContainerLayouterData
in interface ILayoutConfig
null
public void setDiagramDefault(LayoutOptionData<?> optionData, Object value)
UnsupportedOperationException
, since this configuration cannot be
used to change diagram options.
setDiagramDefault
in interface ILayoutConfig
optionData
- a layout optionvalue
- an option valuepublic LayoutAlgorithmData getLayouterData(String layoutHint, String diagramType)
UnsupportedOperationException
, since this configuration cannot be
used to handle layout providers.
getLayouterData
in interface ILayoutConfig
layoutHint
- a layout hintdiagramType
- a diagram type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |