added object cache

This commit is contained in:
bancika
2011-01-21 20:39:53 +00:00
parent c51357f58c
commit d1603161a3
2 changed files with 1 additions and 2 deletions
@@ -96,7 +96,7 @@ public abstract class AbstractLeadedComponent<T> extends AbstractTransparentComp
g2d.setColor(bodyColor);
g2d.fill(shape);
g2d.setComposite(oldComposite);
g2d.setStroke(Constants.BASIC_STROKE);
g2d.setStroke(ObjectCache.getInstance().fetchBasicStroke(1));
g2d.setColor(componentState == ComponentState.SELECTED
|| componentState == ComponentState.DRAGGING ? SELECTION_COLOR : borderColor);
g2d.draw(shape);
@@ -16,7 +16,6 @@ public class Constants {
public static Font LABEL_FONT = new Font("Tahoma", Font.PLAIN, 12);
public static final Stroke BASIC_STROKE = new BasicStroke();
public static final Stroke DASHED_STROKE = new BasicStroke(1.0f, BasicStroke.CAP_BUTT,
BasicStroke.JOIN_MITER, 10f, new float[] { 2.0f }, 0.0f);
}