com.google.gwt.dom.client.Style.BorderStyle Java Examples
The following examples show how to use
com.google.gwt.dom.client.Style.BorderStyle.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Arrow.java From bitcoin-transaction-explorer with MIT License | 6 votes |
public Arrow(final Orientation orientation, final int borderWidth) { setElement(d); this.orientation = orientation; this.borderWidth = borderWidth; d.appendChild(d1); d.appendChild(d2); d.getStyle().setPosition(Position.ABSOLUTE); d1.getStyle().setPosition(Position.ABSOLUTE); d1.getStyle().setHeight(0, Unit.PX); d1.getStyle().setWidth(0, Unit.PX); d1.getStyle().setPropertyPx(orientation.pos, 0); d1.getStyle().setPropertyPx(orientation.altPos, 0); d1.getStyle().setBorderStyle(BorderStyle.SOLID); d2.getStyle().setPosition(Position.ABSOLUTE); d2.getStyle().setHeight(0, Unit.PX); d2.getStyle().setWidth(0, Unit.PX); d2.getStyle().setPropertyPx(orientation.pos, borderWidth); d2.getStyle().setPropertyPx(orientation.altPos, borderWidth); d2.getStyle().setBorderStyle(BorderStyle.SOLID); topBottom = orientation == Orientation.TOP || orientation == Orientation.BOTTOM; }
Example #2
Source File: SimpleMapVerticalLegend.java From geowe-core with GNU General Public License v3.0 | 5 votes |
private HorizontalPanel getColorPanel(Layer layer) { HorizontalPanel colorPanel = new HorizontalPanel(); colorPanel.setSize("20px", "20px"); colorPanel.getElement().getStyle() .setBackgroundColor(getColor(layer, "fillColor")); colorPanel.setBorderWidth(2); colorPanel.getElement().getStyle().setBorderStyle(BorderStyle.SOLID); colorPanel.getElement().getStyle() .setBorderColor(getColor(layer, "strokeColor")); return colorPanel; }