rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
mbeanServer.registerMBean(stateManager, STATE_MANAGER_OBJECT_NAME);
public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); mbeanServer = findMBeanServer(); pm = new HSQLDBPersistenceManager(); txRepository = new TransactionRepository(pm); // TODO: is should be possible t...
clientManager.stop();
public synchronized void stop() throws Exception { if (!started) { return; } log.debug(this + " stopping"); clientManager.stop(); tearDownConnectionFactories(); // remove the JMS subsystem// mbeanServer.invoke(connector, "removeInvocationHandler",// ...
destinationManager.destroyAllDestinations(); pm = null; txRepository = null; ms = null; clientManager = null; destinationManager = null; stateManager = null;
public synchronized void stop() throws Exception { if (!started) { return; } log.debug(this + " stopping"); clientManager.stop(); tearDownConnectionFactories(); // remove the JMS subsystem// mbeanServer.invoke(connector, "removeInvocationHandler",// ...
mbeanServer.unregisterMBean(STATE_MANAGER_OBJECT_NAME);
public synchronized void stop() throws Exception { if (!started) { return; } log.debug(this + " stopping"); clientManager.stop(); tearDownConnectionFactories(); // remove the JMS subsystem// mbeanServer.invoke(connector, "removeInvocationHandler",// ...
if (log.isTraceEnabled()) log.trace("caching message " + id);
if (trace) log.trace("caching message " + id);
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; Object[] args = mi.getArguments(); if (args != null) { for(int i = 0; i < args.length; i++) ...
setContent(box.getContent());
public Box(Box box) { this(); x = box.x; y = box.y; width = box.width; height = box.height; setNode(box.getNode()); border = box.border; margin = box.margin; padding = box.padding; color = box.color; }
return (Element) getNode();
if (this.node == null) { return null; } return getContent().getElement();
public Element getElement() { return (Element) getNode(); }
if (isElement()) {
/*if (isElement()) {
public Element getRealElement() { if (isElement()) { return getElement(); } if (this.node == null) { return null; } return (Element) getNode().getParentNode(); }
}
}*/
public Element getRealElement() { if (isElement()) { return getElement(); } if (this.node == null) { return null; } return (Element) getNode().getParentNode(); }
return (Element) getNode().getParentNode();
return getContent().getElement();
public Element getRealElement() { if (isElement()) { return getElement(); } if (this.node == null) { return null; } return (Element) getNode().getParentNode(); }
if (this.node == null) {
/*if (this.node == null) {
public boolean isElement() { if (this.node == null) { return false; } if (getNode().getNodeType() == getNode().ELEMENT_NODE) { return true; } return false; }
if (getNode().getNodeType() == getNode().ELEMENT_NODE) {
if (getNode().getNodeType() == Node.ELEMENT_NODE) {
public boolean isElement() { if (this.node == null) { return false; } if (getNode().getNodeType() == getNode().ELEMENT_NODE) { return true; } return false; }
return false;
return false;*/ return true;
public boolean isElement() { if (this.node == null) { return false; } if (getNode().getNodeType() == getNode().ELEMENT_NODE) { return true; } return false; }
BoxRendering.paint(c, cell.sub_box);
BoxRendering.paint(c, cell.sub_box, false);
protected static void paintCell(Context c, CellBox cell) { if (cell.isReal()) { Rectangle oe = c.getExtents(); c.getGraphics().translate(oe.x, oe.y); c.setExtents(new Rectangle(0, 0, cell.width, cell.height)); //Uu.p("doing cell: " + cell); BoxRendering....
public JProgressBar(int minimum, int maximum) { }
public JProgressBar() { this(0, 100, HORIZONTAL); }
public JProgressBar(int minimum, int maximum) { // TODO } // JProgressBar()
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJProgressBar(this); } return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJProgressBar(this); return accessibleContext; }
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) { accessibleContext = new AccessibleJProgressBar(this); } // if return accessibleContext; } // getAccessibleContext()
public BoundedRangeModel getModel() { return null; }
public BoundedRangeModel getModel() { return model; }
public BoundedRangeModel getModel() { return null; // TODO } // getModel()
public String getUIClassID() { return uiClassID; }
public String getUIClassID() { return "ProgressBarUI"; }
public String getUIClassID() { return uiClassID; } // getUIClassID()
protected void paintBorder(Graphics graphics) { }
protected void paintBorder(Graphics graphics) { getBorder().paintBorder(this, graphics, 0, 0, getWidth(), getHeight()); }
protected void paintBorder(Graphics graphics) { // TODO } // paintBorder()
protected String paramString() { return null; }
protected String paramString() { return "JProgressBar"; }
protected String paramString() { return null; // TODO } // paramString()
public void setBorderPainted(boolean painted) { }
public void setBorderPainted(boolean painted) { if (painted != paintBorder) { boolean oldPainted = paintBorder; paintBorder = painted; firePropertyChange(BORDER_PAINTED_CHANGED_PROPERTY, oldPainted, paintBorder); } }
public void setBorderPainted(boolean painted) { // TODO } // setBorderPainted()
public void setMaximum(int maximum) { }
public void setMaximum(int maximum) { model.setMaximum(maximum); }
public void setMaximum(int maximum) { // TODO } // setMaximum()
public void setMinimum(int minimum) { }
public void setMinimum(int minimum) { model.setMinimum(minimum); }
public void setMinimum(int minimum) { // TODO } // setMinimum()
public void setModel(BoundedRangeModel model) { }
public void setModel(BoundedRangeModel model) { if (model != this.model) { this.model.removeChangeListener(changeListener); this.model = model; this.model.addChangeListener(changeListener); fireStateChanged(); } }
public void setModel(BoundedRangeModel model) { // TODO } // setModel()
public void setOrientation(int orientation) { }
public void setOrientation(int orientation) { if (orientation != VERTICAL && orientation != HORIZONTAL) throw new IllegalArgumentException("orientation must be one of VERTICAL or HORIZONTAL"); if (this.orientation != orientation) { int oldOrientation = this.orientation; this.orientation = orientation; firePropertyChang...
public void setOrientation(int orientation) { // TODO } // setOrientation()
public void setString(String string) { }
public void setString(String string) { if (((string == null || progressString == null) && string != progressString) || (string != null && ! string.equals(progressString))) { String oldString = progressString; progressString = string; firePropertyChange(STRING_CHANGED_PROPERTY, oldString, progressString); } }
public void setString(String string) { // TODO } // setString()
public void setStringPainted(boolean painted) { }
public void setStringPainted(boolean painted) { if (paintString != painted) { boolean oldPainted = paintString; paintString = painted; firePropertyChange(STRING_PAINTED_CHANGED_PROPERTY, oldPainted, paintString); } }
public void setStringPainted(boolean painted) { // TODO } // setStringPainted()
public void setValue(int value) { }
public void setValue(int value) { model.setValue(value); }
public void setValue(int value) { // TODO } // setValue()
public void updateUI() { setUI((ProgressBarUI) UIManager.get(this)); invalidate(); }
public void updateUI() { setUI((ProgressBarUI) UIManager.getUI(this)); invalidate(); }
public void updateUI() { setUI((ProgressBarUI) UIManager.get(this)); invalidate(); } // updateUI()
/*
public static void layoutContent(LayoutContext c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Obje...
int down = 0; if (child_box.getStyle().isClearLeft()) { down = Math.max(down, c.getBlockFormattingContext().getLeftDownDistance(child_box)); } if (child_box.getStyle().isClearRight()) { down = Math.max(down, c.getBlockFormattingContext().getRightDownDistance(child_box)); } int diff = down - child_box.y; if (...
int currentX = child_box.x; c.getBlockFormattingContext().clear(c, child_box); box.height += child_box.x - currentX;
public static void layoutContent(LayoutContext c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Obje...
*/
public static void layoutContent(LayoutContext c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Obje...
outerBox.height = 0; for (Iterator i = outerBox.getChildIterator(); i.hasNext();) { Box child = (Box) i.next(); outerBox.height += child.height; outerBox.adjustWidthForChild(child.getWidth());
if (outerBox.getChildCount() > 0) { Box table = (Box)outerBox.getChild(0); outerBox.height = table.height; outerBox.contentWidth = table.contentWidth;
private static void calculateOuterBoxDimensions(BlockBox outerBox) { outerBox.height = 0; for (Iterator i = outerBox.getChildIterator(); i.hasNext();) { Box child = (Box) i.next(); outerBox.height += child.height; outerBox.adjustWidthForChild(child.getWidth()); ...
cell.expandToMaxChildWidth();
private static CellBox layoutCell(LayoutContext c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } ...
tableBox.adjustWidthForChild(row.getWidth());
private static void layoutChildren(LayoutContext c, TableBox tableBox, Content content, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { Iterator contentIterator = content.getChildContent(c).iterator(); while (contentIterator.hasNext() && !c.shouldStop()) { Object o ...
public void start(String containerConfig) throws Exception
public void start(String containerConfig, boolean clearDatabase) throws Exception
public void start(String containerConfig) throws Exception { server.start(containerConfig); }
server.start(containerConfig);
server.start(containerConfig, clearDatabase);
public void start(String containerConfig) throws Exception { server.start(containerConfig); }
if ( panel.getContext().getNamespaceHandler().getLinkUri( elem ) != null ) { linkClicked( box, evt );
String uri = findLink(elem); if (uri != null) { linkClicked(uri);
public void mouseReleased( MouseEvent evt ) { Box box = panel.findBox( evt.getX(), evt.getY() ); if ( box == null ) { return; } Element elem = box.element; if ( elem == null ) { return; } if ( panel.getContext().getNamespaceHandler().getLinkUri(...
if ( panel.getContext().getNamespaceHandler().getLinkUri( box.element ) != null ) { if ( !panel.getCursor().equals( Cursor.getPredefinedCursor( Cursor.HAND_CURSOR ) ) ) { panel.setCursor( Cursor.getPredefinedCursor( Cursor.HAND_CURSOR ) );
if (findLink(box.element) != null) { if (!panel.getCursor().equals(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR))) { panel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
private void setCursor( Box box ) { if ( prev == box || box == null || box.element == null ) { return; } if ( panel.getContext().getNamespaceHandler().getLinkUri( box.element ) != null ) { if ( !panel.getCursor().equals( Cursor.getPredefinedCursor( Cursor.HAND_CURSOR ) ) )...
assertNotNull(expectedMessage);
public void testExpirationOnReceive() throws Exception { expectedMessage = new JBossMessage("placeholder-shouldnt-be-overwritten"); queueProducer.send(queueProducerSession.createMessage(), DeliveryMode.NON_PERSISTENT, 4, 2000); // allow the message to expire Thread.sleep(3000); final Latch...
if (c.isLayingOutTable()) { return false; }
public boolean crossesPageBreak(LayoutContext c) { PageBox pageBox = c.getRootLayer().getFirstPage(c, this); if (pageBox == null) { return false; } else { return getAbsY() + getHeight() >= pageBox.getBottom(); } }
if (c.isLayingOutTable()) { return; }
public void expandToPageBottom(LayoutContext c) { PageBox page = c.getRootLayer().getLastPage(c, this); int delta = page.getBottom() - (getAbsY() + getStyle().getMarginBorderPadding(c, CalculatedStyle.TOP) + this.height); this.height += delta; if (page == c.getRootLayer()...
if (c.isLayingOutTable()) { return 0; }
public int moveToNextPage(LayoutContext c) { PageBox page = c.getRootLayer().getFirstPage(c, this); if (page == null) { XRLog.layout(Level.WARNING, "Box has no page"); return 0; } else { if (page.getTop() == getAbsY()) { return 0; } els...
getLogger(where).log(level, msg);
if ( isLoggingEnabled()) getLogger(where).log(level, msg);
public static void log(String where, Level level, String msg) { if (initPending) { init(); } getLogger(where).log(level, msg); }
} else if (currentContent instanceof FloatedBlockContent) { bounds.height += new_inline.height;
public static void layoutContent(Context c, Box box, List contentList) { // Uu.p("+ InlineLayout.layoutContent(): " + box); Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; bounds.width -= box.margin.left + box.border.left + box.padding.left + box.p...
public SwingDialog(Dialog target) { super(target);
public SwingDialog(Dialog target, String title) { super(target, title);
public SwingDialog(Dialog target) { super(target); }
super(toolkit, target, new SwingDialog(target));
super(toolkit, target, new SwingDialog(target, target.getTitle()));
public SwingDialogPeer(SwingToolkit toolkit, Dialog target) { super(toolkit, target, new SwingDialog(target)); setTitle(target.getTitle()); setResizable(target.isResizable()); peerComponent.setIconifiable(true); peerComponent.setMaximizable(true); peerComponent.setClosable(...
} else { int delta = c.getBlockFormattingContext().getFloatManager().getClearDelta( c, (int) border.top() + (int) padding.top() + cell.height); if (delta > 0) { cell.height += delta; }
private static CellBox layoutCell(LayoutContext c, CellBox cell, Content content, boolean fixed, TableBox table, int col) { //OK, first set up the current style. All depends on this... CascadedStyle pushed = content.getStyle(); if (pushed != null) { c.pushStyle(pushed); } ...
cellBox.setContainingBlock(null);
private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil...
row.setContainingBlock(null);
private static RowBox layoutRow(LayoutContext c, TableRowContent tableRowContent, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { // copy the extents Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); RowBox row = new RowBox(); ...
setSystem(ActivationSystemTransient.getInstance());
setSystem(DefaultActivationSystem.get());
public static ActivationGroupID currentGroupID() { try { if (currentGroupId==null) { setSystem(ActivationSystemTransient.getInstance()); } } catch (ActivationException e) { InternalError ierr = new InternalError("Unable to activate AS"); ierr.ini...
return DefaultActivationSystem.get(); else
system = DefaultActivationSystem.get();
public static ActivationSystem getSystem() throws ActivationException { if (system == null) return DefaultActivationSystem.get(); else return system; }
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final BorderPropertySet border, final int sides, int currentSide, boolean isClipRegion) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : adjust); int leftCorner = (((sides & LEFT) == LEFT) ? border.left - adjust : 0); int topCorner = (((sides & TOP) == TOP) ? border.top - adjust : 0); int bottomCorner = (((sides & BOTTOM) == BOTTOM) ? border.bottom : adjust);
int rightCorner = (((sides & RIGHT) == RIGHT) ? (int)border.right() : adjust); int leftCorner = (((sides & LEFT) == LEFT) ? (int)border.left() - adjust : 0); int topCorner = (((sides & TOP) == TOP) ? (int)border.top() - adjust : 0); int bottomCorner = (((sides & BOTTOM) == BOTTOM) ? (int)border.bottom() : adjust);
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
if (border.top != 1) {
if ((int)border.top() != 1) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + border.top - adjust); poly.addPoint(bounds.x + leftCorner, bounds.y + border.top - adjust);
poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + (int)border.top() - adjust); poly.addPoint(bounds.x + leftCorner, bounds.y + (int)border.top() - adjust);
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
if (border.bottom != 1) {
if ((int)border.bottom() != 1) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + bounds.height - border.bottom);
poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + bounds.height - (int)border.bottom());
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
poly.addPoint(bounds.x + leftCorner, bounds.y + bounds.height - border.bottom);
poly.addPoint(bounds.x + leftCorner, bounds.y + bounds.height - (int)border.bottom());
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
if (border.right != 1) {
if ((int)border.right() != 1) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + bounds.height - bottomCorner + snuggle);
poly.addPoint(bounds.x + bounds.width - (int)border.right(), bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + bounds.width - (int)border.right(), bounds.y + bounds.height - bottomCorner + snuggle);
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
if (border.left != 1) {
if ((int)border.left() != 1) {
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
poly.addPoint(bounds.x + border.left - adjust, bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + border.left - adjust, bounds.y + bounds.height - bottomCorner + snuggle);
poly.addPoint(bounds.x + (int)border.left() - adjust, bounds.y + topCorner - snuggle); poly.addPoint(bounds.x + (int)border.left() - adjust, bounds.y + bounds.height - bottomCorner + snuggle);
private static Polygon getBevelledPolygon(final Rectangle bounds, final Border border, final int sides, int currentSide, boolean isClipRegion) { //adjust for bug in polygon filling final int adjust; //adjust inside corners to make sides fit snugly final int snuggle; if (isClipRegi...
BorderColor border_color = style.getBorderColor(); Border border = style.getBorderWidth(ctx); IdentValue topStyle = null; IdentValue leftStyle = null; IdentValue bottomStyle = null; IdentValue rightStyle = null;
BorderPropertySet border = style.getBorder(ctx);
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
topStyle = style.getIdent(CSSName.BORDER_STYLE_TOP); if (topStyle == IdentValue.NONE || border.top == 0) {
if ( border.noTop()) {
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
leftStyle = style.getIdent(CSSName.BORDER_STYLE_LEFT); if (leftStyle == IdentValue.NONE || border.left == 0) {
if ( border.noLeft() ) {
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
bottomStyle = style.getIdent(CSSName.BORDER_STYLE_BOTTOM); if (bottomStyle == IdentValue.NONE || border.bottom == 0) {
if ( border.noBottom()) {
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
rightStyle = style.getIdent(CSSName.BORDER_STYLE_RIGHT); if (rightStyle == IdentValue.NONE || border.right == 0) {
if ( border.noRight()) {
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
paintBorderSide(border, g, bounds, border_color, sides, TOP, topStyle, xOffset);
paintBorderSide(border, g, bounds, sides, TOP, border.topStyle(), xOffset);
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
paintBorderSide(border, g, bounds, border_color, sides, LEFT, leftStyle, xOffset);
paintBorderSide(border, g, bounds, sides, LEFT, border.leftStyle(), xOffset);
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
paintBorderSide(border, g, bounds, border_color, sides, BOTTOM, bottomStyle, xOffset);
paintBorderSide(border, g, bounds, sides, BOTTOM, border.bottomStyle(), xOffset);
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
paintBorderSide(border, g, bounds, border_color, sides, RIGHT, rightStyle, xOffset);
paintBorderSide(border, g, bounds, sides, RIGHT, border.rightStyle(), xOffset);
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { //Graphics g = c.getGraphics(); //CalculatedStyle style = c.getCurrentStyle(); BorderColor border_color = style.getBorderColor(); //int width = (int) bounds.getWi...
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) {
private static void paintBorderSide(final BorderPropertySet border, final Graphics g, final Rectangle bounds, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) {
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
Border bd2 = new Border(); bd2.top = border.top / 2; bd2.bottom = border.bottom / 2; bd2.left = border.left / 2; bd2.right = border.right / 2;
BorderPropertySet bd2 = new BorderPropertySet( (int)(border.top() / 2), (int)(border.right() / 2), (int)(border.bottom() / 2), (int)(border.left() / 2));
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
paintGoodBevel(g2, bounds, border, border_color.darker(borderSideStyle), border_color.brighter(borderSideStyle), sides, currentSide); paintGoodBevel(g2, bounds, bd2, border_color.brighter(borderSideStyle), border_color.darker(borderSideStyle), sides, currentSide);
paintGoodBevel(g2, bounds, border, border.darker(borderSideStyle), border.brighter(borderSideStyle), sides, currentSide); paintGoodBevel(g2, bounds, bd2, border.brighter(borderSideStyle), border.darker(borderSideStyle), sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
paintGoodBevel(g2, bounds, border, border_color.brighter(borderSideStyle), border_color.darker(borderSideStyle), sides, currentSide); paintGoodBevel(g2, bounds, bd2, border_color.darker(borderSideStyle), border_color.brighter(borderSideStyle), sides, currentSide);
paintGoodBevel(g2, bounds, border, border.brighter(borderSideStyle), border.darker(borderSideStyle), sides, currentSide); paintGoodBevel(g2, bounds, bd2, border.darker(borderSideStyle), border.brighter(borderSideStyle), sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
border_color.brighter(borderSideStyle), border_color.darker(borderSideStyle), sides, currentSide);
border.brighter(borderSideStyle), border.darker(borderSideStyle), sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
border_color.darker(borderSideStyle), border_color.brighter(borderSideStyle), sides, currentSide);
border.darker(borderSideStyle), border.brighter(borderSideStyle), sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
paintSolid(g2, bounds, border, border_color, sides, currentSide);
paintSolid(g2, bounds, border, border, sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
Border outer = new Border(); outer.top = border.top / 3; outer.bottom = border.bottom / 3; outer.left = border.left / 3; outer.right = border.right / 3; Border center = new Border(outer);
BorderPropertySet outer = new BorderPropertySet( (int)(border.top() / 3), (int)(border.bottom() / 3), (int)(border.left() / 3), (int)(border.right() / 3)); BorderPropertySet center = new BorderPropertySet(outer);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
Border inner = new Border(outer); if (border.top == 1) { outer.top = 1; center.top = 0;
BorderPropertySet inner = new BorderPropertySet(outer); if ((int)border.top() == 1) { outer.setTop(1f); center.setTop(0f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
if (border.bottom == 1) { outer.bottom = 1; center.bottom = 0;
if ((int)border.bottom() == 1) { outer.setBottom(1f); center.setBottom(0f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
if (border.left == 1) { outer.left = 1; center.left = 0;
if ((int)border.left() == 1) { outer.setLeft(1f); center.setLeft(0f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
if (border.right == 1) { outer.right = 1; center.right = 0;
if ((int)border.right() == 1) { outer.setRight(1f); center.setRight(0f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
if (border.top == 2) { outer.top = 1; center.top = 0; inner.top = 1;
if ((int)border.top() == 2) { outer.setTop(1f); center.setTop(0f); inner.setTop(1f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
if (border.bottom == 2) { outer.bottom = 1; center.bottom = 0; inner.bottom = 1;
if ((int)border.bottom() == 2) { outer.setBottom(1f); center.setBottom(0f); inner.setBottom(1f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
if (border.left == 2) { outer.left = 1; center.left = 0; inner.left = 1;
if ((int)border.left() == 2) { outer.setLeft(1f); center.setLeft(0f); inner.setLeft(1f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
if (border.right == 2) { outer.right = 1; center.right = 0; inner.right = 1;
if ((int)border.right() == 2) { outer.setRight(1f); center.setRight(0f); inner.setRight(1f);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
paintSolid((Graphics2D) g, bounds, outer, border_color, sides, currentSide);
paintSolid((Graphics2D) g, bounds, outer, border, sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
paintSolid((Graphics2D) g, b2, inner, border_color, sides, currentSide);
paintSolid((Graphics2D) g, b2, inner, border, sides, currentSide);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
if (currentSide == TOP) thickness = border.top; if (currentSide == BOTTOM) thickness = border.bottom; if (currentSide == RIGHT) thickness = border.right; if (currentSide == LEFT) thickness = border.left;
if (currentSide == TOP) thickness = (int)border.top(); if (currentSide == BOTTOM) thickness = (int)border.bottom(); if (currentSide == RIGHT) thickness = (int)border.right(); if (currentSide == LEFT) thickness = (int)border.left();
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
paintPatternedRect(g2, bounds, border, border_color, new float[]{8.0f + thickness * 2, 4.0f + thickness}, sides, currentSide, xOffset);
paintPatternedRect(g2, bounds, border, border, new float[]{8.0f + thickness * 2, 4.0f + thickness}, sides, currentSide, xOffset);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
paintPatternedRect(g2, bounds, border, border_color, new float[]{thickness, thickness}, sides, currentSide, xOffset);
paintPatternedRect(g2, bounds, border, border, new float[]{thickness, thickness}, sides, currentSide, xOffset);
private static void paintBorderSide(final Border border, final Graphics g, final Rectangle bounds, final BorderColor border_color, final int sides, int currentSide, final IdentValue borderSideStyle, int xOffset) { Graphics2D g2 = (Graphics2D) g; if (borderSideStyle == IdentValue.RIDGE || borderSideSty...
private static void paintGoodBevel(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides, int currentSide) {
private static void paintGoodBevel(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet high, final BorderPropertySet low, final int sides, int currentSide) {
private static void paintGoodBevel(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides, int currentSide) { if (currentSide == TOP) { paintSolid(g2, bounds, border, high, sides, currentSide); } else if (currentSide ...
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) {
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet color, final float[] pattern, final int sides, final int currentSide, int xOffset) {
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); Shape old_clip = ...
g2.setColor(color.topColor); g2.setStroke(new BasicStroke(border.top, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + border.top / 2, x + w - 1, y + border.top / 2);
g2.setColor(color.topColor()); g2.setStroke(new BasicStroke((int)border.top(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + (int)(border.top() / 2), x + w - 1, y + (int)(border.top() / 2));
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); Shape old_clip = ...
g2.setColor(color.leftColor); g2.setStroke(new BasicStroke(border.left, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + border.left / 2, y, x + border.left / 2, y + h - 1);
g2.setColor(color.leftColor()); g2.setStroke(new BasicStroke((int)border.left(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + (int)(border.left() / 2), y, x + (int)(border.left() / 2), y + h - 1);
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); Shape old_clip = ...
g2.setColor(color.rightColor); g2.setStroke(new BasicStroke(border.right, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + w - border.right / 2, y, x + w - border.right / 2, y + h);
g2.setColor(color.rightColor()); g2.setStroke(new BasicStroke((int)border.right(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, 0)); g2.drawLine(x + w - (int)(border.right() / 2), y, x + w - (int)(border.right() / 2), y + h);
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); Shape old_clip = ...
g2.setColor(color.bottomColor); g2.setStroke(new BasicStroke(border.bottom, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + h - border.bottom / 2, x + w, y + h - border.bottom / 2);
g2.setColor(color.bottomColor()); g2.setStroke(new BasicStroke((int)border.bottom(), BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0, pattern, xOffset)); g2.drawLine(x, y + h - (int)(border.bottom() / 2), x + w, y + h - (int)(border.bottom() / 2));
private static void paintPatternedRect(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final float[] pattern, final int sides, final int currentSide, int xOffset) { Polygon clip = getBevelledPolygon(bounds, border, sides, currentSide, true); Shape old_clip = ...
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) {
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final BorderPropertySet border, final BorderPropertySet bcolor, final int sides, int currentSide) {
private static void paintSolid(final Graphics2D g2, final Rectangle bounds, final Border border, final BorderColor color, final int sides, int currentSide) { //Bug in polygon painting paints an extra pixel to the right and bottom //But clipping works fine! Polygon poly = getBevelledPolygon(boun...