@Test public void testSetAlignment() { System.out.println("setAlignment"); float alignment = 0.1F; ComponentBorder instance = new ComponentBorder(new JButton("test")); instance.setAlignment(alignment); }
public final void setAlignment(float alignment) { this.alignment = alignment > 1.0f ? 1.0f : alignment < 0.0f ? 0.0f : alignment; }
ComponentBorder implements Border { public final void setAlignment(float alignment) { this.alignment = alignment > 1.0f ? 1.0f : alignment < 0.0f ? 0.0f : alignment; } }
ComponentBorder implements Border { public final void setAlignment(float alignment) { this.alignment = alignment > 1.0f ? 1.0f : alignment < 0.0f ? 0.0f : alignment; } ComponentBorder(JComponent component);  ComponentBorder(JComponent component, Edge edge);  ComponentBorder(JComponent component, Edge edge, float alignment); }
ComponentBorder implements Border { public final void setAlignment(float alignment) { this.alignment = alignment > 1.0f ? 1.0f : alignment < 0.0f ? 0.0f : alignment; } ComponentBorder(JComponent component);  ComponentBorder(JComponent component, Edge edge);  ComponentBorder(JComponent component, Edge edge, float alignment); boolean isAdjustInsets(); void setAdjustInsets(boolean adjustInsets); float getAlignment(); final void setAlignment(float alignment); Edge getEdge(); final void setEdge(Edge edge); int getGap(); void setGap(int gap); @Override Insets getBorderInsets(Component c); @Override boolean isBorderOpaque(); @Override void paintBorder(Component c, Graphics g, int x, int y, int width, int height); void install(JComponent parent); }
ComponentBorder implements Border { public final void setAlignment(float alignment) { this.alignment = alignment > 1.0f ? 1.0f : alignment < 0.0f ? 0.0f : alignment; } ComponentBorder(JComponent component);  ComponentBorder(JComponent component, Edge edge);  ComponentBorder(JComponent component, Edge edge, float alignment); boolean isAdjustInsets(); void setAdjustInsets(boolean adjustInsets); float getAlignment(); final void setAlignment(float alignment); Edge getEdge(); final void setEdge(Edge edge); int getGap(); void setGap(int gap); @Override Insets getBorderInsets(Component c); @Override boolean isBorderOpaque(); @Override void paintBorder(Component c, Graphics g, int x, int y, int width, int height); void install(JComponent parent); static final float LEADING; static final float CENTER; static final float TRAILING; }