|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.utils.ShapeCache
public class ShapeCache
This utility class can be used to implement shape caching withing any painter or component. This might be useful to improve component painting performance in case it uses complex shapes.
Constructor Summary | |
---|---|
ShapeCache()
|
Method Summary | ||
---|---|---|
static
|
getShape(java.awt.Component component,
java.lang.String shapeId,
DataProvider<T> shapeProvider,
java.lang.Object... settings)
Returns cached component shape. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShapeCache()
Method Detail |
---|
public static <T extends java.awt.Shape> T getShape(java.awt.Component component, java.lang.String shapeId, DataProvider<T> shapeProvider, java.lang.Object... settings)
T
- shape typecomponent
- component for which shape is cachedshapeId
- unique shape IDshapeProvider
- shape providersettings
- shape settings used as a shape key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |